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

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: nit 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
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 521ba090cdb9cc9c4eaf02fbe6941b2e3f591e7c..92197574dbd2836de7bc0fc522f5af4d657a83b2 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1094,6 +1094,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