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

Unified Diff: sky/engine/core/css/CSSStyleSheet.cpp

Issue 774953002: Always Reconstruct when stylesheets change. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/core.gni ('k') | sky/engine/core/css/invalidation/StyleSheetInvalidationAnalysis.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSStyleSheet.cpp
diff --git a/sky/engine/core/css/CSSStyleSheet.cpp b/sky/engine/core/css/CSSStyleSheet.cpp
index 00dcdcbfa9ed2db76f94775b475244a0f266e110..376aff1416b68a07a2740c238a19b83b5ed9cc32 100644
--- a/sky/engine/core/css/CSSStyleSheet.cpp
+++ b/sky/engine/core/css/CSSStyleSheet.cpp
@@ -163,10 +163,7 @@ void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType)
if (!owner)
return;
- // Need FullStyleUpdate when insertRule or deleteRule,
- // because StyleSheetCollection::analyzeStyleSheetChange cannot detect partial rule update.
- StyleResolverUpdateMode updateMode = updateType != PartialRuleUpdate ? AnalyzedStyleUpdate : FullStyleUpdate;
- owner->modifiedStyleSheet(this, updateMode);
+ owner->modifiedStyleSheet(this);
}
void CSSStyleSheet::reattachChildRuleCSSOMWrappers()
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/css/invalidation/StyleSheetInvalidationAnalysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698