Commit 5833f849 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Set initial font size as FontDef() constructor initialize it to 0.

(I think a more correct fix here would be to explicitly set to 'initial' each shorthand
subproperty at parsing time and let the selector applies them individually)

BUG: 336940
FIXED-IN: 4.13.3
parent 69703201
......@@ -4027,9 +4027,9 @@ void CSSStyleSelector::applyRule( int id, DOM::CSSValueImpl *value )
fontDirty |= style->setFontDef( fontDef );
} else if (isInitial) {
FontDef fontDef;
fontDef.size = m_fontSizes[3];
style->setLineHeight(RenderStyle::initialLineHeight());
if (style->setFontDef( fontDef ))
fontDirty = true;
fontDirty |= style->setFontDef(fontDef);
} else if ( value->isFontValue() ) {
FontValueImpl *font = static_cast<FontValueImpl *>(value);
if ( !font->style || !font->variant || !font->weight ||
......
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