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

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

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 years, 3 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 59fafd85c84d2605bf8fb46e9c8d340ab60558cf..b020bbc30ef2afe552f1e7ae33e999892295b32b 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -950,6 +950,11 @@ void GraphicsLayer::setRenderingContext(int context)
m_contentsLayer->setRenderingContext(m_renderingContext3d);
}
+bool GraphicsLayer::masksToBounds() const
+{
+ return m_layer->layer()->masksToBounds();
+}
+
void GraphicsLayer::setMasksToBounds(bool masksToBounds)
{
m_layer->layer()->setMasksToBounds(masksToBounds);

Powered by Google App Engine
This is Rietveld 408576698