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

Unified Diff: cc/layers/solid_color_scrollbar_layer.cc

Issue 2743653003: Revert of Remove indirection: setup scrollbar scroll layers in the scrollbar constructor (Closed)
Patch Set: 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 | « cc/layers/solid_color_scrollbar_layer.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_scrollbar_layer.cc
diff --git a/cc/layers/solid_color_scrollbar_layer.cc b/cc/layers/solid_color_scrollbar_layer.cc
index d67c5e35e7f744f0487caf709ed721bda9641e81..2eb5484c855035419083a89ce65e147cff1a62f2 100644
--- a/cc/layers/solid_color_scrollbar_layer.cc
+++ b/cc/layers/solid_color_scrollbar_layer.cc
@@ -99,6 +99,14 @@
return solid_color_scrollbar_layer_inputs_.scroll_layer_id;
}
+void SolidColorScrollbarLayer::SetScrollLayer(int layer_id) {
+ if (layer_id == solid_color_scrollbar_layer_inputs_.scroll_layer_id)
+ return;
+
+ solid_color_scrollbar_layer_inputs_.scroll_layer_id = layer_id;
+ SetNeedsFullTreeSync();
+}
+
ScrollbarOrientation SolidColorScrollbarLayer::orientation() const {
return solid_color_scrollbar_layer_inputs_.orientation;
}
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698