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

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

Issue 1185423004: Avoid resetting rule features when removing style-less shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« 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/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 1c73f4e1b0e1fabc11be95cc75480c2f2d8feed0..5574120de126a787d69bc2f7bb711077a150b602 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -240,12 +240,13 @@ void StyleResolver::addTreeBoundaryCrossingScope(ContainerNode& scope)
void StyleResolver::resetAuthorStyle(TreeScope& treeScope)
{
m_treeBoundaryCrossingRules.removeScope(treeScope.rootNode());
- resetRuleFeatures();
ScopedStyleResolver* resolver = treeScope.scopedStyleResolver();
if (!resolver)
return;
+ resetRuleFeatures();
+
if (treeScope.rootNode().isDocumentNode()) {
resolver->resetAuthorStyle();
return;
« 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