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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 339873003: Add NULL renderer check when setting layer for a remote frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 1da9bd2f555b412039aabe83f3fb361836eefa02..55a2de14e016a97b880825cff2767081799e7554 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -565,7 +565,8 @@ void WebLocalFrameImpl::setRemoteWebLayer(WebLayer* webLayer)
// FIXME: This should be moved to WebRemoteFrame.
ASSERT(frame()->deprecatedLocalOwner());
frame()->deprecatedLocalOwner()->setNeedsCompositingUpdate();
- frame()->ownerRenderer()->layer()->updateSelfPaintingLayer();
+ if (RenderPart* renderer = frame()->ownerRenderer())
+ renderer->layer()->updateSelfPaintingLayer();
}
void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClient)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698