LayoutTests:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2007 21:39:53 +0000 (21:39 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2007 21:39:53 +0000 (21:39 +0000)
commit99f525452d5ee1f52dff3f9ad789ac3e1530a7e3
tree04a2de1068f6bf7003963ff430def35166e5ecd3
parentc382d09e62d08b8b49309109fa4ae07e542d59f5
LayoutTests:

        Reviewed by Mitz.

        Add tests for innerWidth/innerHeight and clientWidth/clientHeight in quirks mode.

        Modify the strict clientWidth/clientHeight test to test the behavior with scrollbars visible.

        * fast/dom/client-width-height-quirks-expected.txt: Added.
        * fast/dom/client-width-height-quirks.html: Added.
        * fast/dom/client-width-height.html:
        * fast/dom/inner-width-height-expected.txt: Added.
        * fast/dom/inner-width-height.html: Added.

WebCore:

        Reviewed by Mitz.

        Make window.innerWidth/innerHeight include the size of any present scrollbar to match Firefox.

        Make document.body.clientWidth/clientHeight return the width/height of the visible content when in
        quirks mode to match WinIE.

        * bindings/js/kjs_window.cpp:
        (KJS::Window::getValueProperty):
        Return the width and height of the scroll view, not the visible width and height.

        * dom/Element.cpp:
        (WebCore::Element::clientWidth):
        (WebCore::Element::clientHeight):
        Return the visible size if the element is the body element and we're in quirks mode.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/client-width-height-quirks-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/client-width-height-quirks.html [new file with mode: 0644]
LayoutTests/fast/dom/client-width-height.html
LayoutTests/fast/dom/inner-width-height-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/inner-width-height.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_window.cpp
WebCore/dom/Element.cpp