LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Apr 2006 23:35:17 +0000 (23:35 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Apr 2006 23:35:17 +0000 (23:35 +0000)
commitad8c6cbbec27bfc07a14d2f9e1eca49926305dc6
tree0363235fd917ff2441cb9a1995d35fe6652f10d1
parent27dfd200fc06aa0ed6c35e3e0ddd5064614ba5b4
LayoutTests:

        Reviewed by Justin.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8106
          REGRESSION (NativeTextField): New text fields don't scroll to the beginning when losing focus

        * fast/forms/input-text-scroll-left-on-blur-expected.png: Added.
        * fast/forms/input-text-scroll-left-on-blur-expected.txt: Added.
        * fast/forms/input-text-scroll-left-on-blur-expected.checksum: Added.
        * fast/forms/input-text-scroll-left-on-blur.html: Added.

WebCore:

        Reviewed by Justin.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8106
          REGRESSION (NativeTextField): New text fields don't scroll to the beginning when losing focus

        Test: fast/forms/input-text-scroll-left-on-blur.html

        * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Pass blur events
        through to the RenderTextField, as well as mouse, drag, and wheel events.
        * rendering/RenderTextField.cpp: (WebCore::RenderTextField::forwardEvent): Scroll all the way to
        the left on a blur.

        - unrelated small changes

        * html/HTMLTextFieldInnerElement.cpp: Removed excess includes.
        (WebCore::HTMLTextFieldInnerElement::defaultEventHandler): Tweaked comments a bit.

        * dom/Element.cpp:
        (WebCore::Element::scrollIntoView): Removed unneeded this-> before function call.
        (WebCore::Element::scrollIntoViewIfNeeded): Ditto.

        * page/FrameView.cpp: (WebCore::FrameView::dispatchMouseEvent): Removed obsolete comment.

WebKitTools:

        Reviewed by Justin.

        * DumpRenderTree/EventSendingController.m: (-[EventSendingController keyDown:withModifiers:]):
        Fixed keyDown function so that it will work if you don't pass an array of modifiers or if
        elements in that array are not strings.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-text-scroll-left-on-blur-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/input-text-scroll-left-on-blur-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/input-text-scroll-left-on-blur.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp
WebCore/html/HTMLInputElement.cpp
WebCore/html/HTMLTextFieldInnerElement.cpp
WebCore/page/FrameView.cpp
WebCore/rendering/RenderTextField.cpp
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/EventSendingController.m