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

Side by Side Diff: cc/proto/layer_sticky_position_constraint.proto

Issue 2401903002: Compute and include the offset of the sticky box to its enclosing composited layer. (Closed)
Patch Set: Merge with master and fix long line. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 import "point.proto";
7 import "rect.proto"; 8 import "rect.proto";
8 import "transform.proto"; 9 import "transform.proto";
9 10
10 option optimize_for = LITE_RUNTIME; 11 option optimize_for = LITE_RUNTIME;
11 12
12 package cc.proto; 13 package cc.proto;
13 14
14 message LayerStickyPositionConstraint { 15 message LayerStickyPositionConstraint {
15 optional bool is_sticky = 1; 16 optional bool is_sticky = 1;
16 optional bool is_anchored_left = 2; 17 optional bool is_anchored_left = 2;
17 optional bool is_anchored_right = 3; 18 optional bool is_anchored_right = 3;
18 optional bool is_anchored_top = 4; 19 optional bool is_anchored_top = 4;
19 optional bool is_anchored_bottom = 5; 20 optional bool is_anchored_bottom = 5;
20 21
21 optional float left_offset = 6; 22 optional float left_offset = 6;
22 optional float right_offset = 7; 23 optional float right_offset = 7;
23 optional float top_offset = 8; 24 optional float top_offset = 8;
24 optional float bottom_offset = 9; 25 optional float bottom_offset = 9;
25 26
27 optional Point parent_relative_sticky_box_offset = 12;
26 optional Rect scroll_container_relative_sticky_box_rect = 10; 28 optional Rect scroll_container_relative_sticky_box_rect = 10;
27 optional Rect scroll_container_relative_containing_block_rect = 11; 29 optional Rect scroll_container_relative_containing_block_rect = 11;
28 }; 30 };
OLDNEW
« no previous file with comments | « cc/layers/layer_sticky_position_constraint.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698