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

Unified Diff: Source/core/rendering/RenderPart.cpp

Issue 104433003: Attach a WebLayer to a frame element for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing null check Created 7 years 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 | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderPart.cpp
diff --git a/Source/core/rendering/RenderPart.cpp b/Source/core/rendering/RenderPart.cpp
index 33db879892691d68b3f0ce64515ea8630b8b1be1..c0cbf9578813b5844ab954faf510d103e3f92c17 100644
--- a/Source/core/rendering/RenderPart.cpp
+++ b/Source/core/rendering/RenderPart.cpp
@@ -25,8 +25,9 @@
#include "config.h"
#include "core/rendering/RenderPart.h"
-#include "core/html/HTMLFrameElementBase.h"
+#include "core/frame/Frame.h"
#include "core/frame/FrameView.h"
+#include "core/html/HTMLFrameElementBase.h"
#include "core/plugins/PluginView.h"
#include "core/rendering/HitTestResult.h"
#include "core/rendering/RenderLayer.h"
@@ -85,6 +86,9 @@ bool RenderPart::requiresAcceleratedCompositing() const
return false;
HTMLFrameOwnerElement* element = toHTMLFrameOwnerElement(node());
+ if (element->contentFrame() && element->contentFrame()->remotePlatformLayer())
+ return true;
+
if (Document* contentDocument = element->contentDocument()) {
if (RenderView* view = contentDocument->renderView())
return view->usesCompositing();
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698