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

Unified Diff: Source/core/dom/shadow/ShadowRoot.cpp

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | « Source/core/dom/shadow/InsertionPoint.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp
index 3ed9f8960f5e02a314ec4644377e24b843051f13..67492245aa32db842372667ca730bad50b222470 100644
--- a/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/Source/core/dom/shadow/ShadowRoot.cpp
@@ -208,7 +208,7 @@ void ShadowRoot::setApplyAuthorStyles(bool value)
ASSERT(host());
ASSERT(host()->shadow());
if (host()->shadow()->didAffectApplyAuthorStyles())
- host()->setNeedsStyleRecalc();
+ host()->setNeedsStyleRecalc(SubtreeStyleChange);
// Since styles in shadow trees can select shadow hosts, set shadow host's needs-recalc flag true.
// FIXME: host->setNeedsStyleRecalc() should take care of all elements in its shadow tree.
@@ -216,7 +216,7 @@ void ShadowRoot::setApplyAuthorStyles(bool value)
// no recalc style is invoked for any elements in its shadow tree.
// This problem occurs when using getComputedStyle() API.
// So currently host and shadow root's needsStyleRecalc flags are set to be true.
- setNeedsStyleRecalc();
+ setNeedsStyleRecalc(SubtreeStyleChange);
}
void ShadowRoot::setResetStyleInheritance(bool value)
@@ -231,7 +231,7 @@ void ShadowRoot::setResetStyleInheritance(bool value)
if (!isActive())
return;
- setNeedsStyleRecalc();
+ setNeedsStyleRecalc(SubtreeStyleChange);
}
void ShadowRoot::attach(const AttachContext& context)
« no previous file with comments | « Source/core/dom/shadow/InsertionPoint.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698