Text should be constructable.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 12:52:28 +0000 (12:52 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 12:52:28 +0000 (12:52 +0000)
commit7c8ac34c5e72eceeda416db29b275bb98b212fbe
tree43b06fc22832bebba66d9a5905af6e4038c3b86f
parentaf87312989d40bbc9e5cacb5ce8ea7c8e26dd86e
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')".

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: https://svn.webkit.org/repository/webkit/trunk@161876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Text/text-constructor-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Text/text-constructor.html [new file with mode: 0644]
LayoutTests/fast/dom/dom-constructors-expected.txt
LayoutTests/fast/dom/dom-constructors.html
Source/WebCore/ChangeLog
Source/WebCore/dom/Text.cpp
Source/WebCore/dom/Text.h
Source/WebCore/dom/Text.idl