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

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: Rebase 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
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutListItem.cpp
diff --git a/Source/core/layout/LayoutListItem.cpp b/Source/core/layout/LayoutListItem.cpp
index 8404db10a2d92e31cfdef38c7e112140cde07814..a114f0aeab2288e9363ad754ca490ccab2ab750b 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);
}
}
@@ -457,7 +457,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();
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698