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

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

Issue 210953003: Make style independent of the presence of the <shadow> element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/ShadowRoot.h ('k') | no next file » | 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 bbe536bd8dcbc74cd20f13ad4dcdf25841459d18..0672fbfc175e734d5927796788f2dffe23d242bc 100644
--- a/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/Source/core/dom/shadow/ShadowRoot.cpp
@@ -171,18 +171,6 @@ void ShadowRoot::recalcStyle(StyleRecalcChange change)
clearChildNeedsStyleRecalc();
}
-bool ShadowRoot::isActiveForStyling() const
-{
- if (!youngerShadowRoot())
- return true;
-
- if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) {
- if (point->containingShadowRoot())
- return true;
- }
- return false;
-}
-
void ShadowRoot::setApplyAuthorStyles(bool value)
{
if (isOrphan())
@@ -192,8 +180,6 @@ void ShadowRoot::setApplyAuthorStyles(bool value)
return;
m_applyAuthorStyles = value;
- if (!isActiveForStyling())
- return;
ASSERT(host());
ASSERT(host()->shadow());
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698