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

Unified Diff: cc/layers/painted_overlay_scrollbar_layer.cc

Issue 2777093005: Repaint overlay scrollbar if resource is disposed. (Closed)
Patch Set: Formatting Created 3 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 | « no previous file | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_overlay_scrollbar_layer.cc
diff --git a/cc/layers/painted_overlay_scrollbar_layer.cc b/cc/layers/painted_overlay_scrollbar_layer.cc
index df323479d491beefb789fadc7e550a36b538f2b6..81a515edf1cefd80fa6456b997ac642adaaefe68 100644
--- a/cc/layers/painted_overlay_scrollbar_layer.cc
+++ b/cc/layers/painted_overlay_scrollbar_layer.cc
@@ -138,7 +138,7 @@ bool PaintedOverlayScrollbarLayer::Update() {
}
bool PaintedOverlayScrollbarLayer::PaintThumbIfNeeded() {
- if (!scrollbar_->NeedsPaintPart(THUMB))
+ if (!scrollbar_->NeedsPaintPart(THUMB) && thumb_resource_)
return false;
gfx::Rect paint_rect = OriginThumbRectForPainting();
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698