Text should be constructable.
https://bugs.webkit.org/show_bug.cgi?id=115640

Patch by László Langó <llango.u-szeged@partner.samsung.com> on 2014-01-13
Reviewed by Csaba Osztrogonác.

Source/WebCore:

http://dom.spec.whatwg.org/#interface-text
Make Text constructable so that one can do "new Text('abc')"
instead of "document.createTexte('abc')".

Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08

Test: fast/dom/Text/text-constructor.html

* dom/Text.cpp:
(WebCore::Text::create):
* dom/Text.h:
* dom/Text.idl:

LayoutTests:

* fast/dom/Text/text-constructor-expected.txt: Added.
* fast/dom/Text/text-constructor.html: Added.
* fast/dom/dom-constructors-expected.txt:
* fast/dom/dom-constructors.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@161877 268f45cc-cd09-0410-ab3c-d52691b4dbfc