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

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

Issue 198783003: Recalc sibling styles for forward positional rules on mutations only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issue. 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') | Source/core/dom/shadow/ShadowRootRareData.h » ('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 05c549722492176647e4cd85a3bfc285ac87d480..736858e7c689cee2c4cfe56999fce030dd6d6e2f 100644
--- a/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/Source/core/dom/shadow/ShadowRoot.cpp
@@ -390,6 +390,7 @@ bool ShadowRoot::childrenSupportStyleSharing() const
return !m_shadowRootRareData->childrenAffectedByFirstChildRules()
&& !m_shadowRootRareData->childrenAffectedByLastChildRules()
&& !m_shadowRootRareData->childrenAffectedByDirectAdjacentRules()
+ && !m_shadowRootRareData->childrenAffectedByIndirectAdjacentRules()
&& !m_shadowRootRareData->childrenAffectedByForwardPositionalRules()
&& !m_shadowRootRareData->childrenAffectedByBackwardPositionalRules();
}
@@ -414,6 +415,11 @@ bool ShadowRoot::childrenAffectedByDirectAdjacentRules() const
return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByDirectAdjacentRules();
}
+bool ShadowRoot::childrenAffectedByIndirectAdjacentRules() const
+{
+ return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByIndirectAdjacentRules();
+}
+
bool ShadowRoot::childrenAffectedByForwardPositionalRules() const
{
return m_shadowRootRareData && m_shadowRootRareData->childrenAffectedByForwardPositionalRules();
@@ -434,6 +440,11 @@ void ShadowRoot::setChildrenAffectedByDirectAdjacentRules()
ensureShadowRootRareData()->setChildrenAffectedByDirectAdjacentRules(true);
}
+void ShadowRoot::setChildrenAffectedByIndirectAdjacentRules()
+{
+ ensureShadowRootRareData()->setChildrenAffectedByIndirectAdjacentRules(true);
+}
+
void ShadowRoot::setChildrenAffectedByBackwardPositionalRules()
{
ensureShadowRootRareData()->setChildrenAffectedByBackwardPositionalRules(true);
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/dom/shadow/ShadowRootRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698