2010-05-04 Steven Lai <steven_lai@asia.apple.com>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 May 2010 17:42:39 +0000 (17:42 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 May 2010 17:42:39 +0000 (17:42 +0000)
commit253691fc22c230b95aeacca549213631bc49c339
treee19c4aa6fde34dfa9574f783b6d40585cce07110
parent3c058e5f2eaf0a5f327b759efaf90ab2cd6b4483
2010-05-04  Steven Lai  <steven_lai@asia.apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=37900
        <rdar://problem/7806164> cloneNode() does not preserve z-index with more than six digits

        * fast/dom/HTMLInputElement/clone-input-checked-expected.txt: Added.
        * fast/dom/HTMLInputElement/clone-input-checked.html: Added.
        * fast/dom/clone-node-z-index-expected.txt: Added.
        * fast/dom/clone-node-z-index.html: Added.
2010-05-04  Steven Lai  <steven_lai@asia.apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=37900
        <rdar://problem/7806164> cloneNode() does not preserve z-index with more than six digits

        Tests: fast/dom/HTMLInputElement/clone-input-checked.html
               fast/dom/clone-node-z-index.html

        * dom/Element.cpp: undid the order change of calling copyNonAttributeProperties() before setAttributes()
        (WebCore::Element::cloneElementWithoutChildren): uncheck the previous radio button in the same radio button group only when the checked radio box is appended to the dom tree
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::updateCheckedRadioButtons):
        (WebCore::HTMLInputElement::attach):
        (WebCore::HTMLInputElement::setChecked):
        * html/HTMLInputElement.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLInputElement/clone-input-checked-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLInputElement/clone-input-checked.html [new file with mode: 0644]
LayoutTests/fast/dom/clone-node-z-index-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/clone-node-z-index.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp
WebCore/html/HTMLInputElement.cpp
WebCore/html/HTMLInputElement.h