CTTE: Autoscroll renderer is always a RenderBox.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 14:33:53 +0000 (14:33 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 14:33:53 +0000 (14:33 +0000)
commit665b07c66ad8118ee40fe20b67f95da95b65d0be
tree3b383608a66ffd34fe15ade11891d9fb01ac8bd9
parent7c8ac34c5e72eceeda416db29b275bb98b212fbe
CTTE: Autoscroll renderer is always a RenderBox.
<https://webkit.org/b/126884>

Reviewed by Antti Koivisto.

* page/EventHandler.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::autoscrollRenderer):

    Make autoscrollRenderer() return a RenderBox*.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::willBeDestroyed):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::willBeDestroyed):

    Only check if the autoscroll renderer is being torn down
    in RenderBox::willBeDestroyed() since it's not relevant for
    other renderer types.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp
Source/WebCore/page/EventHandler.h
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderObject.cpp