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

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

Issue 1058763002: Introduce Node::needsDistributionRecalc and use it in ElementShadow to fix the wrong assertions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Todo in the comment 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 | « Source/core/dom/Node.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/ElementShadow.cpp
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp
index ee565a50aa5bab72fa1e5ecd1c304e54e49e05be..48cabb20f559fa8b54a2cbf53c0566f9c9b03cc5 100644
--- a/Source/core/dom/shadow/ElementShadow.cpp
+++ b/Source/core/dom/shadow/ElementShadow.cpp
@@ -240,7 +240,7 @@ bool ElementShadow::hasSameStyles(const ElementShadow* other) const
const InsertionPoint* ElementShadow::finalDestinationInsertionPointFor(const Node* key) const
{
- ASSERT(key && !key->document().childNeedsDistributionRecalc());
+ ASSERT(key && !key->needsDistributionRecalc());
NodeToDestinationInsertionPoints::const_iterator it = m_nodeToInsertionPoints.find(key);
#if ENABLE(OILPAN)
return it == m_nodeToInsertionPoints.end() ? nullptr : it->value->last().get();
@@ -251,7 +251,7 @@ const InsertionPoint* ElementShadow::finalDestinationInsertionPointFor(const Nod
const DestinationInsertionPoints* ElementShadow::destinationInsertionPointsFor(const Node* key) const
{
- ASSERT(key && !key->document().childNeedsDistributionRecalc());
+ ASSERT(key && !key->needsDistributionRecalc());
NodeToDestinationInsertionPoints::const_iterator it = m_nodeToInsertionPoints.find(key);
#if ENABLE(OILPAN)
return it == m_nodeToInsertionPoints.end() ? nullptr : it->value.get();
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698