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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 809343002: ScopedStyleResolver should be cleared when ShadowRoot is removed from document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Imported test from https://codereview.chromium.org/808333002/ 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 | « LayoutTests/fast/html/resources/marquee-crash.svg ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index cdb307c31809a4780d51822e552546e10b21e54f..0254d133c28f7bda090ec07fae5392c9758ec41e 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -254,13 +254,14 @@ void StyleResolver::processScopedRules(const RuleSet& authorRules, CSSStyleSheet
void StyleResolver::resetAuthorStyle(TreeScope& treeScope)
{
+ m_treeBoundaryCrossingRules.reset(&treeScope.rootNode());
+ resetRuleFeatures();
+
ScopedStyleResolver* resolver = treeScope.scopedStyleResolver();
if (!resolver)
return;
- m_treeBoundaryCrossingRules.reset(&treeScope.rootNode());
resolver->resetAuthorStyle();
- resetRuleFeatures();
if (treeScope.rootNode().isDocumentNode())
return;
« no previous file with comments | « LayoutTests/fast/html/resources/marquee-crash.svg ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698