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

Unified Diff: cc/trees/scroll_node.cc

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Update WebScrollBoundaryBehavior. Created 3 years, 7 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.cc
diff --git a/cc/trees/scroll_node.cc b/cc/trees/scroll_node.cc
index 050dbf00294a9e283da0a5752a7a38c8f6a95127..f746a6913029ee8055f4af0a3490f053361bed19 100644
--- a/cc/trees/scroll_node.cc
+++ b/cc/trees/scroll_node.cc
@@ -25,7 +25,9 @@ ScrollNode::ScrollNode()
should_flatten(false),
user_scrollable_horizontal(false),
user_scrollable_vertical(false),
- transform_id(0) {}
+ transform_id(0),
+ scroll_boundary_behavior(
+ ScrollBoundaryBehavior::kScrollBoundaryBehaviorTypeAuto) {}
ScrollNode::ScrollNode(const ScrollNode& other) = default;
@@ -45,7 +47,8 @@ bool ScrollNode::operator==(const ScrollNode& other) const {
should_flatten == other.should_flatten &&
user_scrollable_horizontal == other.user_scrollable_horizontal &&
user_scrollable_vertical == other.user_scrollable_vertical &&
- element_id == other.element_id && transform_id == other.transform_id;
+ element_id == other.element_id && transform_id == other.transform_id &&
+ scroll_boundary_behavior == other.scroll_boundary_behavior;
}
void ScrollNode::AsValueInto(base::trace_event::TracedValue* value) const {
@@ -64,6 +67,8 @@ void ScrollNode::AsValueInto(base::trace_event::TracedValue* value) const {
element_id.AddToTracedValue(value);
value->SetInteger("transform_id", transform_id);
+ value->SetInteger("scroll_boundary_behavior_x", scroll_boundary_behavior.x);
+ value->SetInteger("scroll_boundary_behavior_y", scroll_boundary_behavior.y);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698