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

Unified Diff: cc/scrollbar_layer.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revisions, force PZ scrollbars to always draw. Created 7 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
Index: cc/scrollbar_layer.cc
diff --git a/cc/scrollbar_layer.cc b/cc/scrollbar_layer.cc
index 3d83aebf30f541d6036e683f2ef32d9363dd2fa7..e6be5352133cde8875121472224d8e63ac6bf133 100644
--- a/cc/scrollbar_layer.cc
+++ b/cc/scrollbar_layer.cc
@@ -61,6 +61,10 @@ void ScrollbarLayer::SetScrollLayerId(int id) {
SetNeedsFullTreeSync();
}
+bool ScrollbarLayer::DoNotSkipOnZeroOpacity() const {
+ return scroll_layer_id_ == Layer::PINCH_ZOOM_ROOT_SCROLL_LAYER_ID;
+}
+
WebKit::WebScrollbar::Orientation ScrollbarLayer::Orientation() const {
return scrollbar_->orientation();
}
« cc/layer_tree_host.cc ('K') | « cc/scrollbar_layer.h ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698