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

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

Issue 1076143002: Make ComposedTreeTraversal assert a node with Node::needsDistributionRecalc(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | 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 818047a44d14703355eae93436088a117f807784..07eb955b17af2a9d269e552a7d0c500c7b1ccb2e 100644
--- a/Source/core/dom/shadow/ComposedTreeTraversal.h
+++ b/Source/core/dom/shadow/ComposedTreeTraversal.h
@@ -118,7 +118,7 @@ private:
static void assertPrecondition(const Node& node)
{
#if ENABLE(ASSERT)
- ASSERT(node.inDocument() ? !node.document().childNeedsDistributionRecalc() : !node.childNeedsDistributionRecalc());
+ ASSERT(!node.needsDistributionRecalc());
ASSERT(node.canParticipateInComposedTree());
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698