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

Unified Diff: cc/layers/layer.h

Issue 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: Created 4 years, 2 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/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 5f98c71f480001db300392e3eb4bc8a572ad95c8..5f9f4865d0fa8500ae278afff21858083458ad47 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -500,6 +500,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// layer id for the corresponding Layer on the engine.
void SetLayerIdForTesting(int id);
+ void SetScrollbarsHiddenFromImplSide(bool hidden);
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -721,6 +723,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool force_render_surface_for_testing_ : 1;
bool subtree_property_changed_ : 1;
bool may_contain_video_ : 1;
+ bool scrollbars_hidden_ : 1;
SkColor safe_opaque_background_color_;
// draw_blend_mode may be different than blend_mode_,
// when a RenderSurface re-parents the layer's blend_mode.

Powered by Google App Engine
This is Rietveld 408576698