Fix crash in taking a screenshot of a closed popup
commitcf337a958289161fa9106a51ff5acd19468bcda3
authorenne <enne@chromium.org>
Fri, 27 Mar 2015 18:36:14 +0000 (27 11:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Mar 2015 18:38:09 +0000 (27 18:38 +0000)
treea3d4ae84cbecad07d54871e83e6b7001edbade0e
parent849cf4b2ae0cd74c9f618b0950fee69f075de492
Fix crash in taking a screenshot of a closed popup

You can't assume that there's a root layer always during layout, even if
there's a composite and readback.  WebTestProxyBase::CapturePixelsAsync
iterates through popups (which may get closed between that call and
Layout).  If it's closed, then its root layer goes away.

BUG=470817

Review URL: https://codereview.chromium.org/1038133003

Cr-Commit-Position: refs/heads/master@{#322611}
content/renderer/gpu/render_widget_compositor.cc