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

Unified Diff: cc/blink/web_layer_impl.cc

Issue 1642093002: Purge the ScrollBlocksOn code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build failures Created 4 years, 11 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.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl.cc
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc
index cd1033845a2eb042d5396fd056c297e45e21b25c..335861ecb9a4459b3ea49576cd1bf6bc352653df 100644
--- a/cc/blink/web_layer_impl.cc
+++ b/cc/blink/web_layer_impl.cc
@@ -431,28 +431,6 @@ WebVector<WebRect> WebLayerImpl::touchEventHandlerRegion() const {
return result;
}
-static_assert(static_cast<ScrollBlocksOn>(blink::WebScrollBlocksOnNone) ==
- SCROLL_BLOCKS_ON_NONE,
- "ScrollBlocksOn and WebScrollBlocksOn enums must match");
-static_assert(static_cast<ScrollBlocksOn>(blink::WebScrollBlocksOnStartTouch) ==
- SCROLL_BLOCKS_ON_START_TOUCH,
- "ScrollBlocksOn and WebScrollBlocksOn enums must match");
-static_assert(static_cast<ScrollBlocksOn>(blink::WebScrollBlocksOnWheelEvent) ==
- SCROLL_BLOCKS_ON_WHEEL_EVENT,
- "ScrollBlocksOn and WebScrollBlocksOn enums must match");
-static_assert(
- static_cast<ScrollBlocksOn>(blink::WebScrollBlocksOnScrollEvent) ==
- SCROLL_BLOCKS_ON_SCROLL_EVENT,
- "ScrollBlocksOn and WebScrollBlocksOn enums must match");
-
-void WebLayerImpl::setScrollBlocksOn(blink::WebScrollBlocksOn blocks) {
- layer_->SetScrollBlocksOn(static_cast<ScrollBlocksOn>(blocks));
-}
-
-blink::WebScrollBlocksOn WebLayerImpl::scrollBlocksOn() const {
- return static_cast<blink::WebScrollBlocksOn>(layer_->scroll_blocks_on());
-}
-
void WebLayerImpl::setIsContainerForFixedPositionLayers(bool enable) {
layer_->SetIsContainerForFixedPositionLayers(enable);
}
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698