2011-02-01 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 21:57:49 +0000 (21:57 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Feb 2011 21:57:49 +0000 (21:57 +0000)
commit159f997cfef62be4ece66f43f706dca88717bcbd
tree640c76831825690369cec6c00a1ce935366bad9f
parentbee373a27d1cade72521fd79675f2c286f3e99f7
2011-02-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam Roben.

        Make LayerTreeHost ref counted
        https://bugs.webkit.org/show_bug.cgi?id=53530

        LayerTreeHostMac will soon be able to trigger layout, which could cause
        the page to leave accelerated compositing mode and free the LayerTreeHostMac object.

        Making LayerTreeHost ref counted will let LayerTreeHostMac protect itself while triggering layout.

        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::DrawingAreaImpl::setRootCompositingLayer):
        * WebProcess/WebPage/DrawingAreaImpl.h:
        * WebProcess/WebPage/LayerTreeHost.cpp:
        (WebKit::LayerTreeHost::create):
        * WebProcess/WebPage/LayerTreeHost.h:
        * WebProcess/WebPage/mac/LayerTreeHostMac.h:
        * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
        (WebKit::LayerTreeHostMac::create):
        (WebKit::LayerTreeHostMac::LayerTreeHostMac):
        (WebKit::LayerTreeHostMac::~LayerTreeHostMac):
        (WebKit::LayerTreeHostMac::invalidate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@77293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.h
Source/WebKit2/WebProcess/WebPage/LayerTreeHost.cpp
Source/WebKit2/WebProcess/WebPage/LayerTreeHost.h
Source/WebKit2/WebProcess/WebPage/mac/LayerTreeHostMac.h
Source/WebKit2/WebProcess/WebPage/mac/LayerTreeHostMac.mm