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()); |
} |