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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 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/layout/svg/LayoutSVGImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
index 76092d593be9e77aa18fef859fda74b676fafd18..c1b6fbd80e53bbb5666511a87c7f793b8385736e 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp
@@ -106,7 +106,7 @@ bool LayoutSVGImage::UpdateBoundingBox() {
object_bounding_box_.SetSize(CalculateObjectSize());
if (old_object_bounding_box != object_bounding_box_) {
- SetShouldDoFullPaintInvalidation();
+ SetShouldDoFullPaintInvalidation(PaintInvalidationReason::kImage);
needs_boundaries_update_ = true;
}
@@ -199,7 +199,7 @@ void LayoutSVGImage::ImageChanged(WrappedImagePtr, const IntRect*) {
SetNeedsLayout(LayoutInvalidationReason::kSizeChanged);
}
- SetShouldDoFullPaintInvalidation();
+ SetShouldDoFullPaintInvalidation(PaintInvalidationReason::kImage);
}
void LayoutSVGImage::AddOutlineRects(Vector<LayoutRect>& rects,

Powered by Google App Engine
This is Rietveld 408576698