Changeset 69984 in webkit


Ignore:
Timestamp:
Oct 18, 2010 12:33:58 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-18 Yongjun Zhang <yongjun_zhang@apple.com>

Reviewed by Darin Adler.

Missing support for document.createEvent("OrientationEvent")
https://bugs.webkit.org/show_bug.cgi?id=32492

Add support for document.createEvent("OrientationEvent") to help unit testing of
onOrientationChange event.

  • fast/dom/DeviceOrientation/create-event-onorientationchange-expected.txt: Added.
  • fast/dom/DeviceOrientation/create-event-onorientationchange.html: Added.
  • fast/dom/DeviceOrientation/script-tests/create-event-onorientationchange.js: Added.

2010-10-18 Yongjun Zhang <yongjun_zhang@apple.com>

Reviewed by Darin Adler.

Missing support for document.createEvent("OrientationEvent")
https://bugs.webkit.org/show_bug.cgi?id=32492

Add support for document.createEvent("OrientationEvent") to help unit testing of
onOrientationChange event.

Test: fast/dom/DeviceOrientation/create-event-onorientationchange.html

  • dom/Document.cpp: (WebCore::Document::createEvent):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r69983 r69984  
     12010-10-18  Yongjun Zhang  <yongjun_zhang@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Missing support for document.createEvent("OrientationEvent")
     6        https://bugs.webkit.org/show_bug.cgi?id=32492
     7
     8        Add support for document.createEvent("OrientationEvent") to help unit testing of
     9        onOrientationChange event.
     10
     11        * fast/dom/DeviceOrientation/create-event-onorientationchange-expected.txt: Added.
     12        * fast/dom/DeviceOrientation/create-event-onorientationchange.html: Added.
     13        * fast/dom/DeviceOrientation/script-tests/create-event-onorientationchange.js: Added.
     14
    1152010-10-18  Jeremy Orlow  <jorlow@chromium.org>
    216
  • trunk/WebCore/ChangeLog

    r69983 r69984  
     12010-10-18  Yongjun Zhang  <yongjun_zhang@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Missing support for document.createEvent("OrientationEvent")
     6        https://bugs.webkit.org/show_bug.cgi?id=32492
     7
     8        Add support for document.createEvent("OrientationEvent") to help unit testing of
     9        onOrientationChange event.
     10
     11        Test: fast/dom/DeviceOrientation/create-event-onorientationchange.html
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::createEvent):
     15
    1162010-10-18  Jeremy Orlow  <jorlow@chromium.org>
    217
  • trunk/WebCore/dom/Document.cpp

    r69868 r69984  
    34643464        event = DeviceOrientationEvent::create();
    34653465#endif
     3466#if ENABLE(ORIENTATION_EVENTS)
     3467    else if (eventType == "OrientationEvent")
     3468        event = Event::create();
     3469#endif
    34663470    if (event)
    34673471        return event.release();
Note: See TracChangeset for help on using the changeset viewer.