2010-11-04 Kenichi Ishibashi <bashi@google.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Nov 2010 00:57:50 +0000 (00:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Nov 2010 00:57:50 +0000 (00:57 +0000)
commit8d3746171bba8ab25e70a3ec6f848aabc850929a
treecf039b315a7dc8a99c04d023b37def99a55b034e
parent3c2a7063f9961e983b1467c4e4dbebf41ab1d97c
2010-11-04  Kenichi Ishibashi  <bashi@google.com>

        Reviewed by Kent Tamura.

        [HTML5][Forms] Support for <output> element
        https://bugs.webkit.org/show_bug.cgi?id=29363

        Adds tests for the DOMSettableTokenList and the output element.

        * fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt: Added.
        * fast/dom/HTMLOutputElement/dom-settable-token-list.html: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-expected.txt: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-reset-event-expected.txt: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-reset-event.html: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-validity-expected.txt: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-validity.html: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-value-expected.txt: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement-value.html: Added.
        * fast/dom/HTMLOutputElement/htmloutputelement.html: Added.
        * fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js: Added.
        (createElement):
        * fast/dom/HTMLOutputElement/script-tests/htmloutputelement-reset-event.js: Added.
        * fast/dom/HTMLOutputElement/script-tests/htmloutputelement-validity.js: Added.
        * fast/dom/HTMLOutputElement/script-tests/htmloutputelement-value.js: Added.
        * fast/dom/Window/window-properties-expected.txt: Updated expectation.
        * fast/dom/Window/window-property-descriptors-expected.txt: Updated expectation.
        * fast/dom/prototype-inheritance-2-expected.txt: Updated expectation.
        * fast/dom/prototype-inheritance-expected.txt: Updated expectation.
        * fast/js/global-constructors-expected.txt: Updated expectation.
        * platform/chromium/fast/dom/prototype-inheritance-expected.txt: Updated expectation.
        * platform/gtk/fast/dom/Window/window-properties-expected.txt: Updated expectation.
        * platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt: Updated expectation.
        * platform/gtk/fast/dom/prototype-inheritance-expected.txt: Updated expectation.
        * platform/gtk/fast/js/global-constructors-expected.txt: Updated expectation.
        * platform/qt/fast/dom/Window/window-properties-expected.txt: Updated expectation.
        * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt: Updated expectation.
        * platform/qt/fast/dom/prototype-inheritance-expected.txt: Updated expectation.
        * platform/qt/fast/js/global-constructors-expected.txt: Updated expectation.
        * platform/win/fast/dom/Window/window-property-descriptors-expected.txt: Updated expectation.
        * platform/win/fast/dom/prototype-inheritance-2-expected.txt: Updated expectation.
        * platform/win/fast/dom/prototype-inheritance-expected.txt: Updated expectation.
        * platform/win/fast/js/global-constructors-expected.txt: Updated expectation.
2010-11-04  Kenichi Ishibashi  <bashi@google.com>

        Reviewed by Kent Tamura.

        [HTML5][Forms] Support for <output> element
        https://bugs.webkit.org/show_bug.cgi?id=29363

        Support for <output> element.

        Tests: fast/dom/HTMLOutputElement/dom-settable-token-list.html
               fast/dom/HTMLOutputElement/htmloutputelement-reset-event.html
               fast/dom/HTMLOutputElement/htmloutputelement-validity.html
               fast/dom/HTMLOutputElement/htmloutputelement-value.html
               fast/dom/HTMLOutputElement/htmloutputelement.html

        * Android.derived.jscbindings.mk: Added JSHTMLOutputElement.h.
        * Android.derived.v8bindings.mk: Added V8HTMLOutputElement.h.
        * Android.jscbindings.mk: Added JSHTMLOutputElementCustom.cpp.
        * Android.mk: Added HTMLOutputElement.cpp.
        * Android.v8bindings.mk: Added V8HTMLOutputElementCustom.cpp.
        * CMakeLists.txt: Added HTMLOutputElement.{idl,cpp} and JSHTMLOutputElementCustom.cpp.
        * DerivedSources.cpp: Added JSHTMLOutputElement.cpp.
        * DerivedSources.make: Added HTMLOutputElement entry.
        * GNUmakefile.am: Added JSHTMLOutputElement.{cpp,h}
        * WebCore.gypi: Added HTMLOutputElement.{idl,cpp,h}, JSHTMLOutputElementCustom.cpp and V8HTMLOutputElementCustom.cpp
        * WebCore.pri: Added HTMLOutputElement.idl.
        * WebCore.pro: Added V8HTMLOutputElementCustom.cpp, JSHTMLOutputElementCustom.cpp and HTMLOutputElement.cpp.
        * WebCore.vcproj/WebCore.vcproj: Added entries for JSHTMLOutputElement.{cpp,h} and JSHTMLOutputElementCustom.cpp.
        * WebCore.xcodeproj/project.pbxproj: Added entries for JSHTMLOutputElementCustom.cpp, HTMLOutputElement.{cpp,h,idl}, JSHTMLOutputElement.{cpp,h}
        * bindings/js/JSBindingsAllInOne.cpp: Added JSHTMLOutputElementCustom.cpp.
        * bindings/js/JSHTMLOutputElementCustom.cpp: Added.
        (WebCore::JSHTMLOutputElement::htmlFor):
        (WebCore::JSHTMLOutputElement::setHtmlFor):
        * bindings/v8/custom/V8DOMSettableTokenListCustom.cpp: Modified.
        (WebCore::V8DOMSettableTokenList::indexedPropertyGetter): Returns null if the index is out of range.
        * bindings/v8/custom/V8HTMLOutputElementCustom.cpp: Added.
        (WebCore::V8HTMLOutputElement::htmlForAccessorGetter):
        (WebCore::V8HTMLOutputElement::htmlForAccessorSetter):
        * css/html.css: Added a default style of output element.
        (output):
        * html/DOMSettableTokenList.cpp: Fix bugs.
        (WebCore::DOMSettableTokenList::item): Returns null string if the index is out of range.
        (WebCore::DOMSettableTokenList::addInternal): Added check m_tokens.isNull().
        (WebCore::DOMSettableTokenList::setValue): Set the value case sensitive.
        * html/HTMLOutputElement.cpp: Added.
        (WebCore::HTMLOutputElement::HTMLOutputElement):
        (WebCore::HTMLOutputElement::create):
        (WebCore::HTMLOutputElement::formControlType):
        (WebCore::HTMLOutputElement::parseMappedAttribute):
        (WebCore::HTMLOutputElement::htmlFor):
        (WebCore::HTMLOutputElement::setFor):
        (WebCore::HTMLOutputElement::setForm):
        (WebCore::HTMLOutputElement::childrenChanged):
        (WebCore::HTMLOutputElement::reset):
        (WebCore::HTMLOutputElement::value):
        (WebCore::HTMLOutputElement::setValue):
        (WebCore::HTMLOutputElement::defaultValue):
        (WebCore::HTMLOutputElement::setDefaultValue):
        (WebCore::HTMLOutputElement::setTextContentInternal):
        * html/HTMLOutputElement.h: Added.
        (WebCore::HTMLOutputElement::isEnumeratable):
        (WebCore::HTMLOutputElement::willValidate):
        * html/HTMLOutputElement.idl: Added.
        * html/HTMLTagNames.in: Added "output".
        * page/DOMWindow.idl: Added an attribute for HTMLOutputElement.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
59 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-reset-event-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-reset-event.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-validity-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-validity.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-value-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-value.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement.html [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/script-tests/htmloutputelement-reset-event.js [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/script-tests/htmloutputelement-validity.js [new file with mode: 0644]
LayoutTests/fast/dom/HTMLOutputElement/script-tests/htmloutputelement-value.js [new file with mode: 0644]
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/fast/dom/prototype-inheritance-expected.txt
LayoutTests/fast/js/global-constructors-expected.txt
LayoutTests/platform/chromium/fast/dom/prototype-inheritance-expected.txt
LayoutTests/platform/gtk/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/platform/gtk/fast/dom/prototype-inheritance-expected.txt
LayoutTests/platform/gtk/fast/js/global-constructors-expected.txt
LayoutTests/platform/qt/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/qt/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt
LayoutTests/platform/qt/fast/js/global-constructors-expected.txt
LayoutTests/platform/win/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/platform/win/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/platform/win/fast/dom/prototype-inheritance-expected.txt
LayoutTests/platform/win/fast/js/global-constructors-expected.txt
WebCore/Android.derived.jscbindings.mk
WebCore/Android.derived.v8bindings.mk
WebCore/Android.jscbindings.mk
WebCore/Android.mk
WebCore/Android.v8bindings.mk
WebCore/CMakeLists.txt
WebCore/ChangeLog
WebCore/DerivedSources.cpp
WebCore/DerivedSources.make
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.pri
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/js/JSBindingsAllInOne.cpp
WebCore/bindings/js/JSHTMLOutputElementCustom.cpp [new file with mode: 0644]
WebCore/bindings/v8/custom/V8DOMSettableTokenListCustom.cpp
WebCore/bindings/v8/custom/V8HTMLOutputElementCustom.cpp [new file with mode: 0644]
WebCore/css/html.css
WebCore/html/DOMSettableTokenList.cpp
WebCore/html/HTMLOutputElement.cpp [new file with mode: 0644]
WebCore/html/HTMLOutputElement.h [new file with mode: 0644]
WebCore/html/HTMLOutputElement.idl [new file with mode: 0644]
WebCore/html/HTMLTagNames.in
WebCore/page/DOMWindow.idl