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

Unified Diff: cc/layers/layer.h

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Bug fix Created 3 years, 6 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
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index c88721b0fa6e1e82ad3728900e1d3f93b7cc566b..1de176b3471199f88bb43f49c4e8b203d84bcaf0 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -174,6 +174,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
return inputs_.sticky_position_constraint;
}
+ void SetOffsetForStickyPositionFromMainThread(const gfx::Size& offset);
+ const gfx::Size offset_for_sticky_position_from_main_thread() const {
+ return inputs_.offset_for_sticky_position_from_main_thread;
+ }
+
void SetTransform(const gfx::Transform& transform);
const gfx::Transform& transform() const { return inputs_.transform; }
@@ -577,6 +582,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
LayerPositionConstraint position_constraint;
LayerStickyPositionConstraint sticky_position_constraint;
+ gfx::Size offset_for_sticky_position_from_main_thread;
ElementId element_id;
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698