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

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

Issue 2303443003: CSS: Additional asserts for style invalidation (Closed)
Patch Set: Created 4 years, 4 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 18d29abe552fb900fc462fb563ab51613d222661..fa14a01c6dcb837794380913f8f02e859fc9028f 100644
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
@@ -104,7 +104,9 @@ bool InvalidationSet::invalidatesElement(Element& element) const
void InvalidationSet::combine(const InvalidationSet& other)
{
- ASSERT(type() == other.type());
+ RELEASE_ASSERT(m_isAlive);
+ RELEASE_ASSERT(other.m_isAlive);
+ RELEASE_ASSERT(type() == other.type());
if (type() == InvalidateSiblings) {
SiblingInvalidationSet& siblings = toSiblingInvalidationSet(*this);
const SiblingInvalidationSet& otherSiblings = toSiblingInvalidationSet(other);

Powered by Google App Engine
This is Rietveld 408576698