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

Unified Diff: Source/core/dom/shadow/ElementShadow.h

Issue 77863002: Update styleRecalc so that it traverses shadow insertion points in 2 pass algorithms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make styleRecalc traverse shadow trees in 2 pass algorithm Created 7 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
Index: Source/core/dom/shadow/ElementShadow.h
diff --git a/Source/core/dom/shadow/ElementShadow.h b/Source/core/dom/shadow/ElementShadow.h
index 9017ddcafb749cd8dba150e69abdcc23885c3877..3f32f46d0238d3ee772d3dee098aa7a14a0ed169 100644
--- a/Source/core/dom/shadow/ElementShadow.h
+++ b/Source/core/dom/shadow/ElementShadow.h
@@ -67,6 +67,7 @@ public:
void distributeIfNeeded();
void setNeedsDistributionRecalc();
+ bool needsDistributionRecalc() const { return m_needsDistributionRecalc; }
const InsertionPoint* finalDestinationInsertionPointFor(const Node*) const;
const DestinationInsertionPoints* destinationInsertionPointsFor(const Node*) const;
@@ -118,6 +119,13 @@ inline ShadowRoot* Element::youngestShadowRoot() const
return 0;
}
+inline ShadowRoot* Element::oldestShadowRoot() const
+{
+ if (ElementShadow* shadow = this->shadow())
+ return shadow->oldestShadowRoot();
+ return 0;
+}
+
inline ElementShadow* ElementShadow::containingShadow() const
{
if (ShadowRoot* parentRoot = host()->containingShadowRoot())

Powered by Google App Engine
This is Rietveld 408576698