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

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

Issue 1293533005: HTMLPluginElement should use setNeedsCompositingUpdate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLPlugInElement.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"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698