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

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: sync. Created 4 years, 4 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 fe76a63614b9016ca49950efab9374ee4d8b1172..e589990432a35630e7c0a6b849235bb97d0a7df5 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -121,7 +121,6 @@ GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client)
, m_contentsOpaque(false)
, m_shouldFlattenTransform(true)
, m_backfaceVisibility(true)
- , m_masksToBounds(false)
, m_drawsContent(false)
, m_contentsVisible(true)
, m_isRootForIsolatedGroup(false)
@@ -958,10 +957,14 @@ void GraphicsLayer::setRenderingContext(int context)
m_contentsLayer->setRenderingContext(m_3dRenderingContext);
}
+bool GraphicsLayer::masksToBounds() const
+{
+ return m_layer->layer()->masksToBounds();
+}
+
void GraphicsLayer::setMasksToBounds(bool masksToBounds)
{
- m_masksToBounds = masksToBounds;
- m_layer->layer()->setMasksToBounds(m_masksToBounds);
+ m_layer->layer()->setMasksToBounds(masksToBounds);
}
void GraphicsLayer::setDrawsContent(bool drawsContent)

Powered by Google App Engine
This is Rietveld 408576698