Correct the way that ui::Layers are reparented
commitcee49b5f0eb907e7106e2c7e671b8ac8da113ea9
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 May 2014 00:38:18 +0000 (29 00:38 +0000)
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 May 2014 00:38:18 +0000 (29 00:38 +0000)
tree42e3ecdeed9eaf57e9f2aed22207852ae962545a
parent58a129453ab7a60e5ce3d8f1c095a0d6190e041a
Correct the way that ui::Layers are reparented

In the case of the ui::Compositor's root_layer_, the ui::Layer does not
have a parent_, but its cc_layer_ does. The logic in SwitchToLayer does
not handle this correctly.

Remove the workaround for this in RenderWidgetHostViewMac.

BUG=314190

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273421 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/render_widget_host_view_mac.mm
ui/compositor/layer.cc