Boris Zbarsky
|
dc24477d79
|
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
|
2015-03-19 10:13:33 -04:00 |
Gina Yeh
|
303bfb5736
|
Bug 989198, Patch 2: Implementation of BeforeAfterKeyboardEvent, sr=smaug, r=masayuki.
---
dom/events/BeforeAfterKeyboardEvent.cpp | 92 ++++++++++++++++++++++
dom/events/BeforeAfterKeyboardEvent.h | 45 +++++++++++
dom/events/EventDispatcher.cpp | 3 +
dom/events/KeyboardEvent.cpp | 60 ++++++++------
dom/events/KeyboardEvent.h | 8 +-
dom/events/moz.build | 2 +
dom/events/test/test_all_synthetic_events.html | 4 +
dom/interfaces/events/nsIDOMEvent.idl | 7 ++
dom/tests/mochitest/general/test_interfaces.html | 48 ++++++-----
dom/webidl/BeforeAfterKeyboardEvent.webidl | 24 ++++++
dom/webidl/moz.build | 1 +
11 files changed, 250 insertions(+), 44 deletions(-)
create mode 100644 dom/events/BeforeAfterKeyboardEvent.cpp
create mode 100644 dom/events/BeforeAfterKeyboardEvent.h
create mode 100644 dom/webidl/BeforeAfterKeyboardEvent.webidl
|
2014-10-14 15:09:20 +08:00 |