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() |