OLD | NEW |
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" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) | 179 void RemoteFrame::setRemotePlatformLayer(WebLayer* layer) |
180 { | 180 { |
181 if (m_remotePlatformLayer) | 181 if (m_remotePlatformLayer) |
182 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); | 182 GraphicsLayer::unregisterContentsLayer(m_remotePlatformLayer); |
183 m_remotePlatformLayer = layer; | 183 m_remotePlatformLayer = layer; |
184 if (m_remotePlatformLayer) | 184 if (m_remotePlatformLayer) |
185 GraphicsLayer::registerContentsLayer(layer); | 185 GraphicsLayer::registerContentsLayer(layer); |
186 | 186 |
187 ASSERT(owner()); | 187 ASSERT(owner()); |
188 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); | 188 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); |
189 if (LayoutPart* layoutObject = ownerLayoutObject()) | |
190 layoutObject->layer()->updateSelfPaintingLayer(); | |
191 } | 189 } |
192 | 190 |
193 } // namespace blink | 191 } // namespace blink |
OLD | NEW |