Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index fd039ac38b58e3e29613f0e80ec0f852397b575c..a31d6bd15db7637af69ee98d71bc5115b53e8b9a 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -714,7 +714,7 @@ PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnap |
PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(StyleResolverState& state, CSSPropertyID property, CSSValue& value) |
{ |
StyleBuilder::applyProperty(property, state, &value); |
- state.fontBuilder().createFont(state.document().styleEngine()->fontSelector(), state.style(), state.parentStyle()); |
+ state.fontBuilder().createFont(state.document().styleEngine()->fontSelector(), state.style()); |
return CSSAnimatableValueFactory::create(property, *state.style()); |
} |
@@ -917,7 +917,7 @@ PassRefPtr<RenderStyle> StyleResolver::defaultStyleForElement() |
RefPtr<RenderStyle> style = RenderStyle::create(); |
FontBuilder fontBuilder(document()); |
fontBuilder.setInitial(style->effectiveZoom()); |
- fontBuilder.createFont(document().styleEngine()->fontSelector(), style.get(), nullptr); |
+ fontBuilder.createFont(document().styleEngine()->fontSelector(), style.get()); |
return style.release(); |
} |
@@ -933,7 +933,7 @@ PassRefPtr<RenderStyle> StyleResolver::styleForText(Text* textNode) |
void StyleResolver::updateFont(StyleResolverState& state) |
{ |
- state.fontBuilder().createFont(document().styleEngine()->fontSelector(), state.style(), state.parentStyle()); |
+ state.fontBuilder().createFont(document().styleEngine()->fontSelector(), state.style()); |
state.setConversionFontSizes(CSSToLengthConversionData::FontSizes(state.style(), state.rootElementStyle())); |
state.setConversionZoom(state.style()->effectiveZoom()); |
} |
@@ -1363,8 +1363,6 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc |
// Unfortunately the link status is treated like an inherited property. We need to explicitly restore it. |
state.style()->setInsideLink(linkStatus); |
- state.fontBuilder().setFontDescription(state.style()->fontDescription()); |
- |
updateFont(state); |
return; |
@@ -1392,7 +1390,7 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc |
} |
if (cachedMatchedProperties && cachedMatchedProperties->renderStyle->effectiveZoom() != state.style()->effectiveZoom()) { |
- state.fontBuilder().setFontDirty(true); |
+ state.fontBuilder().didChangeEffectiveZoom(); |
applyInheritedOnly = false; |
} |