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

Unified Diff: cc/blink/web_layer_impl.cc

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into scroll-boundary Created 3 years, 9 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/blink/web_layer_impl.cc
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc
index ff07c7c0b1fdd073f0fb9588bd2f7fdfdcdacdef..5479d27956606f989add8bfd922efdd5530580d7 100644
--- a/cc/blink/web_layer_impl.cc
+++ b/cc/blink/web_layer_impl.cc
@@ -38,6 +38,7 @@ using blink::WebVector;
using blink::WebRect;
using blink::WebSize;
using blink::WebColor;
+using blink::WebScrollBoundaryBehavior;
namespace cc_blink {
@@ -475,4 +476,10 @@ void WebLayerImpl::setHasWillChangeTransformHint(bool has_will_change) {
layer_->SetHasWillChangeTransformHint(has_will_change);
}
+void WebLayerImpl::setScrollBoundaryBehavior(
+ blink::WebScrollBoundaryBehavior behavior) {
+ layer_->SetScrollBoundaryBehavior(
+ static_cast<cc::ScrollBoundaryBehavior>(behavior));
+}
+
} // namespace cc_blink

Powered by Google App Engine
This is Rietveld 408576698