Commit Graph

68 Commits

Author SHA1 Message Date
Nathan Froyd
23ca44b6a7 Bug 1225873 - micro-optimize creating event target chains; r=smaug
This code is only called in a few cases that aren't on the critical
path, but less code is less code: we eliminate the checks for whether we
have enough space in the copying loop, and maybe save some function
calls.
2015-11-18 09:48:45 -05:00
Birunthan Mohanathas
94998cf5fe Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Bobby Holley
708ae67ade Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Masayuki Nakano
efd413f998 Bug 895274 part.5 Rename NS_EVENT_NULL to eVoidEvent r=smaug 2015-08-29 08:58:26 +09:00
Masayuki Nakano
451161e458 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
Aryeh Gregor
2aab280bb3 Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Eric Rahm
084046eea1 Bug 1171294 - Stop warning if piTarget is null. r=smaug 2015-06-04 09:03:40 -07:00
Andrea Marchesini
4ed450c1ad Bug 1161950 - Remove support for createEvent("CloseEvent") / initCloseEvent, r=smaug 2015-05-14 12:25:36 +01:00
Kartikaya Gupta
fde7d819d1 Bug 1125422 - Change EventDispatcher::Dispatch to take an nsTArray instead of a nsCOMArray. r=smaug 2015-02-10 16:28:07 -05:00
Shelly Lin
bc6b24418f Bug 1100259 - Add TaskTracer labels in EventDispatcher and console.log of message with special prefix. r=sinker. 2014-11-20 10:57:27 +08:00
Gina Yeh
6b989e71ac Bug 989198, Patch 2: Implementation of BeforeAfterKeyboardEvent, sr=smaug, r=masayuki. 2014-11-03 15:05:32 +08:00
Ryan VanderMeulen
1a22fa2864 Backed out 6 changesets (bug 989198, bug 1082963) for causing bug 1083231.
Backed out changeset a7c972407578 (bug 1082963)
Backed out changeset 94d1b30bde00 (bug 989198)
Backed out changeset 01e064ceb505 (bug 989198)
Backed out changeset f5a538109e36 (bug 989198)
Backed out changeset 3ff227d79d74 (bug 989198)
Backed out changeset 186743fc6f6d (bug 989198)

CLOSED TREE
2014-10-16 12:57:18 -04:00
Gina Yeh
1b122bd47c 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
Masayuki Nakano
2b41f50548 Bug 960871 part.7 Get rid of WidgetTextEvent r=smaug 2014-10-07 19:01:48 +09:00
Masayuki Nakano
c2bf46d0e4 Bug 960871 part.6 Use WidgetCompositionEvent for NS_COMPOSITION_CHANGE instead of WidgetTextEvent r=smaug 2014-10-07 19:01:48 +09:00
Ehsan Akhgari
6f236e1960 Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
William Chen
3f5e38c7c5 Bug 887541 - Implement web components event path and event retargeting. r=smaug 2014-08-26 20:19:56 -07:00
Bill McCloskey
9dff25a0c7 Bug 950745 - Back out assertions that are triggering too often 2014-08-15 16:16:42 -07:00
Bill McCloskey
4d50493b99 Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-08-05 21:43:36 -07:00
Olli Pettay
70bc61a2af Bug 1026164, improve focus handling in shadow dom, r=wchen
--HG--
extra : rebase_source : 026b9ee49cdce82a703700593d7a1f0e5d27969f
2014-08-06 02:23:02 +03:00
Masayuki Nakano
bbf79aa337 Bug 1046101 part.31 Rename NS_MUTATION_EVENT to eMutationEventClass r=smaug 2014-08-04 14:28:57 +09:00
Masayuki Nakano
59cdca4ea4 Bug 1046101 part.28 Rename NS_COMMAND_EVENT to eCommandEventClass r=smaug 2014-08-04 14:28:56 +09:00
Masayuki Nakano
165587969b Bug 1046101 part.27 Rename NS_SMIL_TIME_EVENT to eSMILTimeEventClass r=smaug 2014-08-04 14:28:56 +09:00
Masayuki Nakano
1deffd0a75 Bug 1046101 part.26 Rename NS_SVGZOOM_EVENT to eSVGZoomEventClass r=smaug 2014-08-04 14:28:56 +09:00
Masayuki Nakano
f0b37ae776 Bug 1046101 part.25 Rename NS_ANIMATION_EVENT to eAnimationEventClass r=smaug 2014-08-04 14:28:55 +09:00
Masayuki Nakano
f88320d44c Bug 1046101 part.24 Rename NS_TRANSITION_EVENT to eTransitionEventClass r=smaug 2014-08-04 14:28:55 +09:00
Masayuki Nakano
1d81133c4a Bug 1046101 part.23 Rename NS_CLIPBOARD_EVENT to eClipboardEventClass r=smaug 2014-08-04 14:28:55 +09:00
Masayuki Nakano
0fcd475645 Bug 1046101 part.22 Rename NS_FOCUS_EVENT to eFocusEventClass r=smaug 2014-08-04 14:28:54 +09:00
Masayuki Nakano
4e9655a5c1 Bug 1046101 part.20 Rename NS_SCROLLAREA_EVENT to eScrollAreaEventClass r=smaug 2014-08-04 14:28:54 +09:00
Masayuki Nakano
2fbf4b85fe Bug 1046101 part.19 Rename NS_SCROLLPORT_EVENT to eScrollPortEventClass r=smaug 2014-08-04 14:28:53 +09:00
Masayuki Nakano
c194e4e3af Bug 1046101 part.18 Rename NS_TOUCH_EVENT to eTouchEventClass r=smaug 2014-08-04 14:28:53 +09:00
Masayuki Nakano
f617bc213a Bug 1046101 part.17 Rename NS_SIMPLE_GESTURE_EVENT to eSimpleGestureEventClass r=smaug 2014-08-04 14:28:53 +09:00
Masayuki Nakano
51abab6557 Bug 1046101 part.15 Rename NS_POINTER_EVENT to ePointerEventClass r=smaug 2014-08-04 14:28:52 +09:00
Masayuki Nakano
29381baa49 Bug 1046101 part.14 Rename NS_WHEEL_EVENT to eWheelEventClass r=smaug 2014-08-04 14:28:51 +09:00
Masayuki Nakano
9a5bd7325f Bug 1046101 part.13 Rename NS_MOUSE_SCROLL_EVENT to eMouseScrollEventClass r=smaug 2014-08-04 14:28:51 +09:00
Masayuki Nakano
7a9936afb5 Bug 1046101 part.12 Rename NS_DRAG_EVENT to eDragEventClass r=smaug 2014-08-04 14:28:50 +09:00
Masayuki Nakano
5c01c306d3 Bug 1046101 part.11 Rename NS_MOUSE_EVENT to eMouseEventClass r=smaug 2014-08-04 14:28:50 +09:00
Masayuki Nakano
40ba55524f Bug 1046101 part.10 Rename NS_EDITOR_INPUT_EVENT to eEditorInputEventClass r=smaug 2014-08-04 14:28:49 +09:00
Masayuki Nakano
a726f35ed6 Bug 1046101 part.7 Rename NS_TEXT_EVENT to eTextEventClass r=smaug 2014-08-04 14:28:48 +09:00
Masayuki Nakano
a2a956a7e0 Bug 1046101 part.6 Rename NS_COMPOSITION_EVENT to eCompositionEventClass r=smaug 2014-08-04 14:28:48 +09:00
Masayuki Nakano
a5ff074c2f Bug 1046101 part.5 Rename NS_KEY_EVENT to eKeyboardEventClass r=smaug 2014-08-04 14:28:48 +09:00
Masayuki Nakano
1e2b298833 Bug 1046101 part.4 Rename NS_UI_EVENT to eUIEventClass r=smaug 2014-08-04 14:28:47 +09:00
Masayuki Nakano
bddeb1250e Bug 1046101 part.2 Rename NS_GUI_EVENT to eGUIEventClass r=smaug 2014-08-04 14:28:46 +09:00
Masayuki Nakano
2c24a0ea29 Bug 1046101 part.1 Rename nsEventStructType to mozilla::EventClassID r=smaug 2014-08-04 14:28:46 +09:00
Bill McCloskey
b8e57e2e8d Back out bug 950745 for crashes 2014-07-30 16:19:46 -07:00
Masayuki Nakano
e9faf32160 Bug 1045978 Create InternalSVGZoomEvent class and InternalSMILTimeEvent class r=smaug 2014-07-31 02:16:57 +09:00
Bill McCloskey
a7860c0084 Back out part of bug 950745 for crashes 2014-07-25 13:03:00 -07:00
Bill McCloskey
968aab64b3 Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-07-17 21:09:45 -07:00
Kyle Huey
b0f4a14fc1 Bug 1031051: Part 18 - Kill the old XPIDL-based event generator. r=smaug 2014-06-30 16:02:04 -07:00