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

Unified Diff: Source/core/layout/LayoutListItem.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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: Source/core/layout/LayoutListItem.cpp
diff --git a/Source/core/layout/LayoutListItem.cpp b/Source/core/layout/LayoutListItem.cpp
index 50d4fdd5911b38b2bb024972013b03293f01f44f..2320403ca7db20895f8712670eb76f82418e52d5 100644
--- a/Source/core/layout/LayoutListItem.cpp
+++ b/Source/core/layout/LayoutListItem.cpp
@@ -253,7 +253,7 @@ void LayoutListItem::updateValue()
if (!m_hasExplicitValue) {
m_isValueUpToDate = false;
if (m_marker)
- m_marker->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ m_marker->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::ListValueChange);
}
}
@@ -443,7 +443,7 @@ const String& LayoutListItem::markerText() const
void LayoutListItem::explicitValueChanged()
{
if (m_marker)
- m_marker->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ m_marker->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::ListValueChange);
Node* listNode = enclosingList(this);
for (LayoutListItem* item = this; item; item = nextListItem(listNode, item))
item->updateValue();

Powered by Google App Engine
This is Rietveld 408576698