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

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

Issue 845453006: Add ASSERT childNeedsDistributionRecalc in ComposedTreeTraversal (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix for fast\images\element-gcd-while-generating-alt-content.html Created 5 years, 11 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
« Source/core/dom/Text.cpp ('K') | « Source/core/dom/Text.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ComposedTreeTraversal.h
diff --git a/Source/core/dom/shadow/ComposedTreeTraversal.h b/Source/core/dom/shadow/ComposedTreeTraversal.h
index 8062cc6df3feea71a1f74376fd6b8c4fc13dcb7e..f4e6ce986d3d1779d82d71f7d66bcde615ef6a1c 100644
--- a/Source/core/dom/shadow/ComposedTreeTraversal.h
+++ b/Source/core/dom/shadow/ComposedTreeTraversal.h
@@ -27,6 +27,7 @@
#ifndef ComposedTreeTraversal_h
#define ComposedTreeTraversal_h
+#include "core/dom/Document.h"
#include "core/dom/NodeRenderingTraversal.h"
#include "core/dom/shadow/InsertionPoint.h"
#include "core/dom/shadow/ShadowRoot.h"
@@ -62,6 +63,7 @@ private:
static void assertPrecondition(const Node& node)
{
#if ENABLE(ASSERT)
+ ASSERT(!node.document().childNeedsDistributionRecalc());
ASSERT(node.canParticipateInComposedTree());
#endif
}
« Source/core/dom/Text.cpp ('K') | « Source/core/dom/Text.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698