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

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

Issue 15680005: Element::recalcStyle() overly reattach()-es InsertionPoints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test and test expectations Created 7 years, 7 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
Index: Source/core/dom/shadow/ContentDistributor.h
diff --git a/Source/core/dom/shadow/ContentDistributor.h b/Source/core/dom/shadow/ContentDistributor.h
index 91a480c3cdf1f34b730238fe813a5d5d3b6ca153..107fab1330030f8fb10c4a6521d4773239e87673 100644
--- a/Source/core/dom/shadow/ContentDistributor.h
+++ b/Source/core/dom/shadow/ContentDistributor.h
@@ -134,10 +134,10 @@ public:
void willAffectSelector(Element* host);
static void ensureDistribution(ShadowRoot*);
-
+ static void ensureDistribution(ElementShadow*);
private:
void distribute(Element* host);
- bool invalidate(Element* host);
+ bool invalidate(Element* host, Vector<RefPtr<Node> >& nodesNeedingReattach);
void populate(Node*, ContentDistribution&);
void collectSelectFeatureSetFrom(ShadowRoot*);
@@ -149,6 +149,8 @@ private:
bool needsDistribution() const;
bool needsInvalidation() const { return m_validity != Invalidated; }
+ static void ensureDistribution(Element* host);
+
HashMap<const Node*, RefPtr<InsertionPoint> > m_nodeToInsertionPoint;
SelectRuleFeatureSet m_selectFeatures;
unsigned m_needsSelectFeatureSet : 1;

Powered by Google App Engine
This is Rietveld 408576698