Changeset 53250 in webkit


Ignore:
Timestamp:
Jan 14, 2010 2:03:34 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-14 Ben Murdoch <benm@google.com>

Reviewed by Darin Adler.

[Android] [Qt] The document.createEvent API does not support touch events.
https://bugs.webkit.org/show_bug.cgi?id=33605

  • fast/events/script-tests/create-touch-event.js: Added. Ensures that document.createEvent("TouchEvent") can create a TouchEvent.
  • fast/events/touch/create-touch-event-expected.txt: Added.
  • fast/events/touch/create-touch-event.html: Added.

2010-01-14 Ben Murdoch <benm@google.com>

Reviewed by Darin Adler.

[Android] [Qt] The document.createEvent API does not support touch events.
https://bugs.webkit.org/show_bug.cgi?id=33605

Test: fast/events/touch/create-touch-event.html

  • dom/Document.cpp: (WebCore::Document::createEvent): add creation of a TouchEvent when the "TouchEvent" argument is supplied.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53249 r53250  
     12010-01-14  Ben Murdoch  <benm@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        [Android] [Qt] The document.createEvent API does not support touch events.
     6        https://bugs.webkit.org/show_bug.cgi?id=33605
     7
     8        * fast/events/script-tests/create-touch-event.js: Added. Ensures that document.createEvent("TouchEvent") can create a TouchEvent.
     9        * fast/events/touch/create-touch-event-expected.txt: Added.
     10        * fast/events/touch/create-touch-event.html: Added.
     11
    1122010-01-14  Diego Gonzalez  <diego.gonzalez@openbossa.org>
    213
  • trunk/WebCore/ChangeLog

    r53248 r53250  
     12010-01-14  Ben Murdoch  <benm@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        [Android] [Qt] The document.createEvent API does not support touch events.
     6        https://bugs.webkit.org/show_bug.cgi?id=33605
     7
     8        Test: fast/events/touch/create-touch-event.html
     9
     10        * dom/Document.cpp:
     11        (WebCore::Document::createEvent): add creation of a TouchEvent when the "TouchEvent" argument is supplied.
     12
    1132010-01-14  James Robinson  <jamesr@chromium.org>
    214
  • trunk/WebCore/dom/Document.cpp

    r53240 r53250  
    174174#endif
    175175
     176#if ENABLE(TOUCH_EVENTS)
     177#include "TouchEvent.h"
     178#endif
     179
    176180#if ENABLE(WML)
    177181#include "WMLDocument.h"
     
    30123016    else if (eventType == "SVGZoomEvents")
    30133017        event = SVGZoomEvent::create();
     3018#endif
     3019#if ENABLE(TOUCH_EVENTS)
     3020    else if (eventType == "TouchEvent")
     3021        event = TouchEvent::create();
    30143022#endif
    30153023    if (event) {
Note: See TracChangeset for help on using the changeset viewer.