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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp

Issue 1995203002: Rewrite Shadow DOM distribution engine to support partial synchronous distribution for v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No longer FAIL: imported/wpt/shadow-dom/HTMLSlotElement-interface.html Created 4 years, 7 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/dom/shadow/ElementShadow.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
index 597c4bf6444d43d43d26eee9908485db2862cb39..1d312a87b970b9f592687f10fc5e2e1e0b0ddd1f 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
@@ -254,9 +254,7 @@ bool ElementShadow::hasSameStyles(const ElementShadow* other) const
const InsertionPoint* ElementShadow::finalDestinationInsertionPointFor(const Node* key) const
{
DCHECK(key);
-#if DCHECK_IS_ON()
DCHECK(!key->needsDistributionRecalc());
-#endif
NodeToDestinationInsertionPoints::const_iterator it = m_nodeToInsertionPoints.find(key);
return it == m_nodeToInsertionPoints.end() ? nullptr : it->value->last();
}
@@ -264,9 +262,7 @@ const InsertionPoint* ElementShadow::finalDestinationInsertionPointFor(const Nod
const DestinationInsertionPoints* ElementShadow::destinationInsertionPointsFor(const Node* key) const
{
DCHECK(key);
-#if DCHECK_IS_ON()
DCHECK(!key->needsDistributionRecalc());
-#endif
NodeToDestinationInsertionPoints::const_iterator it = m_nodeToInsertionPoints.find(key);
return it == m_nodeToInsertionPoints.end() ? nullptr : it->value;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698