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

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: rebased Created 5 years, 6 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
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 464d20080ca350f4115ed4eecdeb03949efb32d3..4447571601b23982ef6087e10a4445c3d3f1ac03 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -609,7 +609,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()
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698