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

Unified Diff: Source/core/frame/Frame.cpp

Issue 842033003: Cleanup RemotePlatformLayer when disconnecting RemoteFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « Source/core/frame/Frame.h ('k') | Source/core/frame/RemoteFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Frame.cpp
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp
index e960868969c61d7ff3a3378a5b243e349949ccf3..429f52066ea6465ad21174364aa1ab8c10034d1b 100644
--- a/Source/core/frame/Frame.cpp
+++ b/Source/core/frame/Frame.cpp
@@ -37,7 +37,6 @@
#include "core/frame/Settings.h"
#include "core/html/HTMLFrameElementBase.h"
#include "core/inspector/InspectorInstrumentation.h"
-#include "core/layout/Layer.h"
#include "core/loader/EmptyClients.h"
#include "core/loader/FrameLoaderClient.h"
#include "core/page/Chrome.h"
@@ -46,8 +45,6 @@
#include "core/page/FocusController.h"
#include "core/page/Page.h"
#include "core/rendering/RenderPart.h"
-#include "platform/graphics/GraphicsLayer.h"
-#include "public/platform/WebLayer.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefCountedLeakCounter.h"
@@ -264,20 +261,6 @@ RenderPart* Frame::ownerRenderer() const
return toRenderPart(object);
}
-void Frame::setRemotePlatformLayer(WebLayer* layer)
-{
- if (m_remotePlatformLayer)
- GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer);
- m_remotePlatformLayer = layer;
- if (m_remotePlatformLayer)
- GraphicsLayer::registerContentsLayer(layer);
-
- ASSERT(owner());
- toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate();
- if (RenderPart* renderer = ownerRenderer())
- renderer->layer()->updateSelfPaintingLayer();
-}
-
Settings* Frame::settings() const
{
if (m_host)
@@ -290,7 +273,6 @@ Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner)
, m_host(host)
, m_owner(owner)
, m_client(client)
- , m_remotePlatformLayer(nullptr)
, m_isLoading(false)
{
ASSERT(page());
« no previous file with comments | « Source/core/frame/Frame.h ('k') | Source/core/frame/RemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698