| Index: third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.cpp b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| index 03f185fa6c69128cc6fd912566a56572a534bcac..30d3253acd05b2b60126e46ad2c1c8695367cab3 100644
|
| --- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| +++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| @@ -310,9 +310,9 @@ bool FontFaceSet::hasForBinding(ScriptState*,
|
|
|
| const HeapListHashSet<Member<FontFace>>& FontFaceSet::cssConnectedFontFaceList()
|
| const {
|
| - Document* d = document();
|
| - d->ensureStyleResolver(); // Flush pending style changes.
|
| - return d->styleEngine()
|
| + Document* document = this->document();
|
| + document->updateActiveStyle();
|
| + return document->styleEngine()
|
| .fontSelector()
|
| ->fontFaceCache()
|
| ->cssConnectedFontFaces();
|
| @@ -467,6 +467,7 @@ bool FontFaceSet::resolveFontStyle(const String& fontString, Font& font) {
|
|
|
| style->font().update(style->font().getFontSelector());
|
|
|
| + document()->updateActiveStyle();
|
| document()->ensureStyleResolver().computeFont(style.get(), *parsedStyle);
|
|
|
| font = style->font();
|
|
|