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

Unified Diff: Source/core/layout/LayoutListMarker.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/LayoutListMarker.cpp
diff --git a/Source/core/layout/LayoutListMarker.cpp b/Source/core/layout/LayoutListMarker.cpp
index 9a31487dd122f0a6a4821837e0d36f84b8475228..2400c7da6cfcd0d66ad7d8849946025897acec42 100644
--- a/Source/core/layout/LayoutListMarker.cpp
+++ b/Source/core/layout/LayoutListMarker.cpp
@@ -1078,7 +1078,7 @@ LayoutListMarker* LayoutListMarker::createAnonymous(LayoutListItem* item)
void LayoutListMarker::styleWillChange(StyleDifference diff, const LayoutStyle& newStyle)
{
if (style() && (newStyle.listStylePosition() != style()->listStylePosition() || newStyle.listStyleType() != style()->listStyleType()))
- setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::StyleChange);
LayoutBox::styleWillChange(diff, newStyle);
}
@@ -1158,7 +1158,7 @@ void LayoutListMarker::imageChanged(WrappedImagePtr o, const IntRect*)
return;
if (size() != m_image->imageSize(this, style()->effectiveZoom()) || m_image->errorOccurred())
- setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::ImageChanged);
else
setShouldDoFullPaintInvalidation();
}

Powered by Google App Engine
This is Rietveld 408576698