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

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

Issue 1159833003: New SELECT Popup: Recalc style when a web font is loaded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index ac540ebdadbc4d517b723ac45d3f74ba5a61df43..d8d8aa5837ee3bd8355a4784e2ecb5cb3c525fec 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -678,7 +678,13 @@ void StyleEngine::fontsNeedUpdate(CSSFontSelector*)
void StyleEngine::setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSelector)
{
+#if !ENABLE(OILPAN)
+ if (m_fontSelector)
+ m_fontSelector->unregisterForInvalidationCallbacks(this);
+#endif
m_fontSelector = fontSelector;
+ if (m_fontSelector)
+ m_fontSelector->registerForInvalidationCallbacks(this);
}
void StyleEngine::platformColorsChanged()

Powered by Google App Engine
This is Rietveld 408576698