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

Unified Diff: content/renderer/child_frame_compositing_helper.cc

Issue 147023002: Notify parent frame renderer when OOP child frame renderer crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Iframe displays green rectangle on child frame crash Created 6 years, 11 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 | « content/renderer/child_frame_compositing_helper.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index f98433af463868b5fbfbcc4b1362b9d6428ea823..433d652175429289ea8c3b928d790aaf3c21f70e 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -279,6 +279,13 @@ void ChildFrameCompositingHelper::OnContainerDestroy() {
web_layer_.reset();
}
+void ChildFrameCompositingHelper::ChildFrameGone() {
+ background_layer_->SetBackgroundColor(SkColorSetARGBInline(255, 0, 128, 0));
+ background_layer_->RemoveAllChildren();
+ background_layer_->SetIsDrawable(true);
+ background_layer_->SetContentsOpaque(true);
+}
+
void ChildFrameCompositingHelper::OnBuffersSwappedPrivate(
const SwapBuffersInfo& mailbox,
unsigned sync_point,
« no previous file with comments | « content/renderer/child_frame_compositing_helper.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698