Index: third_party/WebKit/Source/core/layout/ImageQualityController.cpp |
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp |
index 44b4bb933716d692cc2a628d2e4cef07ddf02471..d1a7ffac7c01b2104dbebe4fa7806e7dc9fc7405 100644 |
--- a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp |
+++ b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp |
@@ -148,8 +148,8 @@ void ImageQualityController::HighQualityRepaintTimerFired(TimerBase*) { |
if (!i.value.is_resizing) |
continue; |
- // TODO(wangxianzhu): Use LayoutObject::getMutableForPainting(). |
- const_cast<LayoutObject*>(i.key)->SetShouldDoFullPaintInvalidation(); |
+ i.key->GetMutableForPainting().SetShouldDoFullPaintInvalidation( |
+ PaintInvalidationReason::kImage); |
i.value.is_resizing = false; |
} |
frame_time_when_timer_started_ = 0.0; |