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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 66483002: fontSelector should be reset when removing stylesheets which has @font-face rule. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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/resolver/StyleResolver.h ('k') | Source/core/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 6dfb08aa3c2c651ec64586430ac7b64ccfcab7cf..4f16f96e3e9582e4a14c0b081a98be7bf78bcedf 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -249,6 +249,17 @@ void StyleResolver::processScopedRules(const RuleSet& authorRules, const KURL& s
}
}
+void StyleResolver::resetFontSelector()
+{
+ ASSERT(m_fontSelector);
+ m_fontSelector->unregisterForInvalidationCallbacks(this);
+ m_fontSelector->clearDocument();
+ invalidateMatchedPropertiesCache();
+
+ m_fontSelector = CSSFontSelector::create(&m_document);
+ m_fontSelector->registerForInvalidationCallbacks(this);
+}
+
void StyleResolver::resetAuthorStyle(const ContainerNode* scopingNode)
{
// FIXME: When chanking scoped attribute, scopingNode's hasScopedHTMLStyleChild has been already modified.
« no previous file with comments | « Source/core/css/resolver/StyleResolver.h ('k') | Source/core/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698