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

Unified Diff: Source/core/html/HTMLStyleElement.cpp

Issue 27537009: Avoid always style recalc when removing stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months 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/html/HTMLStyleElement.cpp
diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
index f44bebeac2ae16bdd11aa8278589b0c1372b8f05..31f0e1856df55f390d30d88cef5c31707fd7f7f5 100644
--- a/Source/core/html/HTMLStyleElement.cpp
+++ b/Source/core/html/HTMLStyleElement.cpp
@@ -124,6 +124,9 @@ void HTMLStyleElement::scopedAttributeChanged(bool scoped)
registerWithScopingNode(false);
document().styleEngine()->addStyleSheetCandidateNode(this, false);
+ // FIXME: currently need to use FullStyleUpdate here.
+ // Because ShadowTreeStyleSheetCollection doesn't know old scoping node.
+ // So setNeedsStyleRecalc for old scoping node is not invoked.
document().modifiedStyleSheet(sheet());
}
« Source/core/css/resolver/StyleResolver.cpp ('K') | « Source/core/dom/StyleSheetScopingNodeList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698