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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityController.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/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;
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698