Changeset 65071 in webkit


Ignore:
Timestamp:
Aug 10, 2010 7:14:13 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-08-10 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

[V8] DeviceMotionEvent can not be used from JavaScript
https://bugs.webkit.org/show_bug.cgi?id=43785

This is tested by the existing tests fast/dom/DeviceMotion/create-event.html
and fast/dom/DeviceMotion/optional-event-properties.html.

  • bindings/v8/custom/V8EventCustom.cpp: (WebCore::toV8):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65070 r65071  
     12010-08-10  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Jeremy Orlow.
     4
     5        [V8] DeviceMotionEvent can not be used from JavaScript
     6        https://bugs.webkit.org/show_bug.cgi?id=43785
     7
     8        This is tested by the existing tests fast/dom/DeviceMotion/create-event.html
     9        and fast/dom/DeviceMotion/optional-event-properties.html.
     10
     11        * bindings/v8/custom/V8EventCustom.cpp:
     12        (WebCore::toV8):
     13
    1142010-08-10  Balazs Kelemen  <kb@inf.u-szeged.hu>
    215
  • trunk/WebCore/bindings/v8/custom/V8EventCustom.cpp

    r60624 r65071  
    4141#include "V8CompositionEvent.h"
    4242#include "V8CustomEvent.h"
     43#include "V8DeviceMotionEvent.h"
    4344#include "V8DeviceOrientationEvent.h"
    4445#include "V8ErrorEvent.h"
     
    156157        return toV8(static_cast<BeforeLoadEvent*>(impl));
    157158#if ENABLE(DEVICE_ORIENTATION)
     159    if (impl->isDeviceMotionEvent())
     160        return toV8(static_cast<DeviceMotionEvent*>(impl));
    158161    if (impl->isDeviceOrientationEvent())
    159162        return toV8(static_cast<DeviceOrientationEvent*>(impl));
Note: See TracChangeset for help on using the changeset viewer.