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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Remove parent_relative_sticky_box_offset related logic 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: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 690e5ac6734038642fbd035132b96015463050a8..a3dc0bc19eedf91e77391e9ae62483af07cdca7e 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1098,6 +1098,10 @@ void GraphicsLayer::SetStickyPositionConstraint(
layer_->Layer()->SetStickyPositionConstraint(sticky_constraint);
}
+void GraphicsLayer::SetStickyMainThreadOffset(const WebSize& offset) {
+ layer_->Layer()->SetStickyMainThreadOffset(offset);
+}
+
void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) {
if (image_layer_)
image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality);

Powered by Google App Engine
This is Rietveld 408576698