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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
index 0c2c95cce51e986cfacb35d8d41e365f414bde5a..8178f36e0275a1968983e5326baab68fbeee6be7 100644
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
@@ -57,6 +57,7 @@ InvalidationSet::InvalidationSet(InvalidationType type)
, m_customPseudoInvalid(false)
, m_treeBoundaryCrossing(false)
, m_insertionPointCrossing(false)
+ , m_invalidatesSlotted(false)
{
}
@@ -132,6 +133,9 @@ void InvalidationSet::combine(const InvalidationSet& other)
if (other.insertionPointCrossing())
setInsertionPointCrossing();
+ if (other.invalidatesSlotted())
+ setInvalidatesSlotted();
+
if (other.m_classes) {
for (const auto& className : *other.m_classes)
addClass(className);
@@ -226,6 +230,7 @@ void InvalidationSet::setWholeSubtreeInvalid()
m_customPseudoInvalid = false;
m_treeBoundaryCrossing = false;
m_insertionPointCrossing = false;
+ m_invalidatesSlotted = false;
m_classes = nullptr;
m_ids = nullptr;
m_tagNames = nullptr;
@@ -246,6 +251,8 @@ void InvalidationSet::toTracedValue(TracedValue* value) const
value->setBoolean("treeBoundaryCrossing", true);
if (m_insertionPointCrossing)
value->setBoolean("insertionPointCrossing", true);
+ if (m_invalidatesSlotted)
+ value->setBoolean("invalidatesSlotted", true);
if (m_ids) {
value->beginArray("ids");

Powered by Google App Engine
This is Rietveld 408576698