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

Side by Side Diff: Source/core/frame/RemoteFrame.cpp

Issue 931003002: Move and rename RenderPart to LayoutPart. (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 unified diff | Download patch
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/frame/RemoteFrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/frame/RemoteFrame.h" 6 #include "core/frame/RemoteFrame.h"
7 7
8 #include "bindings/core/v8/WindowProxy.h" 8 #include "bindings/core/v8/WindowProxy.h"
9 #include "bindings/core/v8/WindowProxyManager.h" 9 #include "bindings/core/v8/WindowProxyManager.h"
10 #include "core/dom/RemoteSecurityContext.h" 10 #include "core/dom/RemoteSecurityContext.h"
11 #include "core/frame/RemoteDOMWindow.h" 11 #include "core/frame/RemoteDOMWindow.h"
12 #include "core/frame/RemoteFrameClient.h" 12 #include "core/frame/RemoteFrameClient.h"
13 #include "core/frame/RemoteFrameView.h" 13 #include "core/frame/RemoteFrameView.h"
14 #include "core/html/HTMLFrameOwnerElement.h" 14 #include "core/html/HTMLFrameOwnerElement.h"
15 #include "core/layout/Layer.h" 15 #include "core/layout/Layer.h"
16 #include "core/rendering/RenderPart.h" 16 #include "core/layout/LayoutPart.h"
17 #include "platform/graphics/GraphicsLayer.h" 17 #include "platform/graphics/GraphicsLayer.h"
18 #include "platform/weborigin/SecurityPolicy.h" 18 #include "platform/weborigin/SecurityPolicy.h"
19 #include "public/platform/WebLayer.h" 19 #include "public/platform/WebLayer.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram eOwner* owner) 23 inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram eOwner* owner)
24 : Frame(client, host, owner) 24 : Frame(client, host, owner)
25 , m_securityContext(RemoteSecurityContext::create()) 25 , m_securityContext(RemoteSecurityContext::create())
26 , m_domWindow(RemoteDOMWindow::create(*this)) 26 , m_domWindow(RemoteDOMWindow::create(*this))
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) 144 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer)
145 { 145 {
146 if (m_remotePlatformLayer) 146 if (m_remotePlatformLayer)
147 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); 147 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer);
148 m_remotePlatformLayer = layer; 148 m_remotePlatformLayer = layer;
149 if (m_remotePlatformLayer) 149 if (m_remotePlatformLayer)
150 GraphicsLayer::registerContentsLayer(layer); 150 GraphicsLayer::registerContentsLayer(layer);
151 151
152 ASSERT(owner()); 152 ASSERT(owner());
153 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); 153 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate();
154 if (RenderPart* renderer = ownerRenderer()) 154 if (LayoutPart* renderer = ownerRenderer())
155 renderer->layer()->updateSelfPaintingLayer(); 155 renderer->layer()->updateSelfPaintingLayer();
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/frame/RemoteFrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698