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

Unified Diff: cc/layers/scrollbar_layer.cc

Issue 21839004: cc: Push valid property values when CalcDrawProps skips layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pushpaintprops: Call SavePaintProps when needed in tests Created 7 years, 4 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 | « cc/layers/picture_layer.cc ('k') | 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/scrollbar_layer.cc
diff --git a/cc/layers/scrollbar_layer.cc b/cc/layers/scrollbar_layer.cc
index 927ae7b5993fb13addc9e67e39ddf93730bf7cce..4a6383504fc5750bb706b694764e664fff59309a 100644
--- a/cc/layers/scrollbar_layer.cc
+++ b/cc/layers/scrollbar_layer.cc
@@ -302,10 +302,12 @@ bool ScrollbarLayer::Update(ResourceUpdateQueue* queue,
if (layer_tree_host()->settings().solid_color_scrollbars)
return false;
+ bool updated = false;
+
{
base::AutoReset<bool> ignore_set_needs_commit(&ignore_set_needs_commit_,
true);
- ContentsScalingLayer::Update(queue, occlusion);
+ updated = ContentsScalingLayer::Update(queue, occlusion);
}
dirty_rect_.Union(update_rect_);
@@ -318,8 +320,8 @@ bool ScrollbarLayer::Update(ResourceUpdateQueue* queue,
gfx::Rect content_rect = ScrollbarLayerRectToContentRect(
gfx::Rect(scrollbar_->Location(), bounds()));
- bool updated = UpdatePart(track_updater_.get(), track_.get(), content_rect,
- queue);
+ updated |= UpdatePart(track_updater_.get(), track_.get(), content_rect,
+ queue);
if (scrollbar_->HasThumb()) {
thumb_thickness_ = scrollbar_->ThumbThickness();
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698