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

Unified Diff: webkit/renderer/compositor_bindings/web_compositor_support_impl.cc

Issue 234603002: Add support for setting TrackStart on solid color layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more unit test compile Created 6 years, 8 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: webkit/renderer/compositor_bindings/web_compositor_support_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc b/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc
index fe6c1f2c2f2fffb10d438aa1d19753ce597f64ca..09af014a874727788bdc4e45d51554e584f66001 100644
--- a/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_compositor_support_impl.cc
@@ -87,10 +87,22 @@ WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
}
WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer(
- WebScrollbar::Orientation orientation, int thumb_thickness,
- bool is_left_side_vertical_scrollbar) {
- return new WebScrollbarLayerImpl(orientation, thumb_thickness,
- is_left_side_vertical_scrollbar);
+ WebScrollbar::Orientation orientation,
+ int thumb_thickness,
+ int track_start,
+ bool is_left_side_vertical_scrollbar) {
+ return new WebScrollbarLayerImpl(orientation,
+ thumb_thickness,
+ track_start,
+ is_left_side_vertical_scrollbar);
+}
+
+WebScrollbarLayer* WebCompositorSupportImpl::createSolidColorScrollbarLayer(
+ WebScrollbar::Orientation orientation,
+ int thumb_thickness,
+ bool is_left_side_vertical_scrollbar) {
+ return new WebScrollbarLayerImpl(
+ orientation, thumb_thickness, 0, is_left_side_vertical_scrollbar);
}
WebAnimation* WebCompositorSupportImpl::createAnimation(

Powered by Google App Engine
This is Rietveld 408576698