| 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 44228468db9f65f7681215fe8d5ec67c0325f9e0..498ffc0a3b77a319234c4a47dd7ffa96f105c4af 100644
|
| --- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| +++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
|
| @@ -326,7 +326,7 @@ bool FontFaceSet::hasForBinding(ScriptState*, FontFace* fontFace, ExceptionState
|
| const HeapListHashSet<Member<FontFace>>& FontFaceSet::cssConnectedFontFaceList() const
|
| {
|
| Document* d = document();
|
| - d->ensureStyleResolver(); // Flush pending style changes.
|
| + d->styleEngine().updateActiveStyle();
|
| return d->styleEngine().fontSelector()->fontFaceCache()->cssConnectedFontFaces();
|
| }
|
|
|
| @@ -463,6 +463,7 @@ bool FontFaceSet::resolveFontStyle(const String& fontString, Font& font)
|
|
|
| style->font().update(style->font().getFontSelector());
|
|
|
| + document()->styleEngine().updateActiveStyle();
|
| document()->ensureStyleResolver().computeFont(style.get(), *parsedStyle);
|
|
|
| font = style->font();
|
|
|