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

Unified Diff: Source/core/dom/Element.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/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 2ff1f47f7e2b8123da0183888c329ed76967bc23..d6fda29e7a971e4c5af076e89e78cf8b1a41c184 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -51,6 +51,7 @@ class ElementShadow;
class ExceptionState;
class Image;
class InputMethodContext;
+class InsertionPoint;
class IntSize;
class Locale;
class MutableStylePropertySet;
@@ -304,7 +305,7 @@ public:
virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*);
virtual bool rendererIsNeeded(const RenderStyle&);
- void recalcStyle(StyleRecalcChange, Text* nextTextSibling = 0);
+ void recalcStyle(StyleRecalcChange, Text* nextTextSibling = 0, InsertionPoint* shadowInsertionPoint = 0);
void didAffectSelector(AffectedSelectorMask);
bool supportsStyleSharing() const;
@@ -314,6 +315,7 @@ public:
PassRefPtr<ShadowRoot> createShadowRoot(ExceptionState&);
ShadowRoot* shadowRoot() const;
ShadowRoot* youngestShadowRoot() const;
+ ShadowRoot* oldestShadowRoot() const;
bool hasAuthorShadowRoot() const { return shadowRoot(); }
virtual void didAddShadowRoot(ShadowRoot&);
@@ -574,7 +576,7 @@ private:
MutableStylePropertySet* ensureMutableInlineStyle();
StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
- void recalcChildStyle(StyleRecalcChange);
+ void recalcChildStyle(StyleRecalcChange, InsertionPoint* shadowInsertionPoint);
esprehn 2013/12/11 09:53:27 = 0, so you don't need to pass it below.
// FIXME: These methods should all be renamed to something better than "check",
// since it's not clear that they alter the style bits of siblings and children.

Powered by Google App Engine
This is Rietveld 408576698