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

Unified Diff: Source/core/css/CSSParser-in.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
Index: Source/core/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index 3b8b2a65075ceab7552b8ac4120a8d40e95e2835..c358df94b5df50c38373635f088d3205822e1eaa 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -11244,6 +11244,8 @@ StyleRuleBase* CSSParser::createFontFaceRule()
StyleRuleFontFace* result = rule.get();
m_parsedRules.append(rule.release());
endRuleBody();
+ if (m_styleSheet)
+ m_styleSheet->setHasFontFaceRule(true);
return result;
}
« no previous file with comments | « LayoutTests/fast/css/remove-style-after-remove-font-face-expected.html ('k') | Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698