Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2198463003: DevTools: add CSS.FontsUpdated event to signify that WebFont has loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index f601b79e16e7396e7a76ba240211c21fa8863a9b..f739839f9b39e6d90d334df236eb63c7d8c3ba62 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -575,6 +575,7 @@ void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
if (m_resolver)
m_resolver->invalidateMatchedPropertiesCache();
document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Fonts));
+ InspectorInstrumentation::fontsUpdated(m_document);
}
void StyleEngine::setFontSelector(CSSFontSelector* fontSelector)

Powered by Google App Engine
This is Rietveld 408576698