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

Unified Diff: cc/trees/scroll_node.h

Issue 2714043002: Store non-fast scrollable regions on ScrollNode (Closed)
Patch Set: Created 3 years, 10 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/trees/scroll_node.h
diff --git a/cc/trees/scroll_node.h b/cc/trees/scroll_node.h
index 3e4f4e98ea2ef5bba3cb6e0f0fb7bf073f8fa603..7138f3ab5c80d235d589f8e08bd6cb7c99ba2316 100644
--- a/cc/trees/scroll_node.h
+++ b/cc/trees/scroll_node.h
@@ -6,6 +6,7 @@
#define CC_TREES_SCROLL_NODE_H_
#include "cc/base/cc_export.h"
+#include "cc/base/region.h"
#include "cc/output/filter_operations.h"
#include "ui/gfx/geometry/size.h"
@@ -37,7 +38,8 @@ struct CC_EXPORT ScrollNode {
bool scrollable;
uint32_t main_thread_scrolling_reasons;
- bool contains_non_fast_scrollable_region;
+
+ Region non_fast_scrollable_region;
wkorman 2017/02/27 23:59:24 Just to note, this replaces a per-node bool with a
pdr. 2017/02/28 19:36:47 This is a good point and I hadn't fully groked it.
wkorman 2017/02/28 20:50:16 I don't think we need a comment, I was just noting
// Size of the clipped area, not including non-overlay scrollbars. Overlay
// scrollbars do not affect the clipped area.

Powered by Google App Engine
This is Rietveld 408576698