• commit-queue@webkit.org's avatar
    2010-11-04 Kenichi Ishibashi <bashi@google.com> · e4ef6e21
    commit-queue@webkit.org authored
            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: http://svn.webkit.org/repository/webkit/trunk@71373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e4ef6e21
window-property-descriptors-expected.txt 41.9 KB