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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h

Issue 1717703002: Use invalidation sets to invalidate slotted elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed expected text Created 4 years, 10 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: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
index ff60f308f2308bb28d26026b6fd8159a6e8b5822..35f8a426173084353abcf8db145fdb26028ea985 100644
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h
@@ -109,7 +109,10 @@ public:
void setCustomPseudoInvalid() { m_customPseudoInvalid = true; }
bool customPseudoInvalid() const { return m_customPseudoInvalid; }
- bool isEmpty() const { return !m_classes && !m_ids && !m_tagNames && !m_attributes && !m_customPseudoInvalid && !m_insertionPointCrossing; }
+ void setInvalidatesSlotted() { m_invalidatesSlotted = true; }
+ bool invalidatesSlotted() const { return m_invalidatesSlotted; }
+
+ bool isEmpty() const { return !m_classes && !m_ids && !m_tagNames && !m_attributes && !m_customPseudoInvalid && !m_insertionPointCrossing && !m_invalidatesSlotted; }
void toTracedValue(TracedValue*) const;
@@ -164,6 +167,9 @@ private:
// If true, insertion point descendants must be invalidated.
unsigned m_insertionPointCrossing : 1;
+
+ // If true, distributed nodes of <slot> elements need to be invalidated.
+ unsigned m_invalidatesSlotted : 1;
};
class CORE_EXPORT DescendantInvalidationSet final : public InvalidationSet {

Powered by Google App Engine
This is Rietveld 408576698