Commit b2a6b6b4 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Fix background position initialization.

parent 51cabd09
......@@ -107,6 +107,8 @@ StyleVisualData::StyleVisualData(const StyleVisualData& o )
BackgroundLayer::BackgroundLayer()
:m_image(RenderStyle::initialBackgroundImage()),
m_xPosition(RenderStyle::initialBackgroundXPosition()),
m_yPosition(RenderStyle::initialBackgroundYPosition()),
m_bgAttachment(RenderStyle::initialBackgroundAttachment()),
m_bgClip(RenderStyle::initialBackgroundClip()),
m_bgOrigin(RenderStyle::initialBackgroundOrigin()),
......
......@@ -1464,8 +1464,8 @@ public:
static ETextTransform initialTextTransform() { return TTNONE; }
static EVisibility initialVisibility() { return VISIBLE; }
static EWhiteSpace initialWhiteSpace() { return NORMAL; }
static Length initialBackgroundXPosition() { return Length(); }
static Length initialBackgroundYPosition() { return Length(); }
static Length initialBackgroundXPosition() { return Length(0.0, Percent); }
static Length initialBackgroundYPosition() { return Length(0.0, Percent); }
static short initialBorderHorizontalSpacing() { return 0; }
static short initialBorderVerticalSpacing() { return 0; }
static ECursor initialCursor() { return CURSOR_AUTO; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment