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

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

Issue 2443633002: Avoid element id collisions with the visual viewport (Closed)
Patch Set: fix typo. Created 4 years, 2 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 18d7bc3970f992c42e2468c61fbd5260de52b425..59b67731d48d7a9578daa5c425a2eb435169fe7d 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1155,6 +1155,12 @@ void GraphicsLayer::setElementId(const CompositorElementId& id) {
layer->setElementId(id);
}
+CompositorElementId GraphicsLayer::elementId() const {
+ if (WebLayer* layer = platformLayer())
+ return layer->elementId();
+ return CompositorElementId();
+}
+
void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) {
if (WebLayer* layer = platformLayer())
layer->setCompositorMutableProperties(properties);

Powered by Google App Engine
This is Rietveld 408576698