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

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

Issue 82643002: Should not override styleResolverUpdateType to Reset when some existing stylesheet still has @font-… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetCollection.cpp
diff --git a/Source/core/dom/StyleSheetCollection.cpp b/Source/core/dom/StyleSheetCollection.cpp
index 8613a43a31a19997faaf3af465639dee4c086dc1..ba7adecc0a7b2bdde4de6c3c5bc23866cd0acc5e 100644
--- a/Source/core/dom/StyleSheetCollection.cpp
+++ b/Source/core/dom/StyleSheetCollection.cpp
@@ -200,9 +200,7 @@ void StyleSheetCollection::analyzeStyleSheetChange(StyleResolverUpdateMode updat
// fontSelector should be always reset. After creating RuleSet for each StyleSheetContents,
// we can avoid appending all stylesheetcontents in reset case.
// So we can remove "styleSheetContentsHasFontFaceRule(newSheets)".
- if (cssStyleSheetHasFontFaceRule(newCollection.activeAuthorStyleSheets()))
- change.styleResolverUpdateType = ResetStyleResolverAndFontSelector;
esprehn 2013/11/22 05:13:35 Just add an else, the ternary makes this a bit har
tasak 2013/11/22 06:16:40 I strongly agree. Done. I missed ")".
- change.styleResolverUpdateType = Reset;
+ change.styleResolverUpdateType = cssStyleSheetHasFontFaceRule(newCollection.activeAuthorStyleSheets() ? ResetStyleResolverAndFontSelector : Reset;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698