Граф коммитов

128 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay 4b7dc9c164 Bug 1273511 - Optimize EventListenerManager::AddEventListenerByType, r=masayuki
--HG--
extra : rebase_source : b41e8d1df8ac6c1159348654b6827ea9239d8c5e
2016-05-20 12:15:05 +03:00
Kartikaya Gupta b867e298b4 Bug 1266066 - Ignore passive event listeners for APZ purposes. r=botond,smaug
MozReview-Commit-ID: 1F41jHsVOyY
2016-05-12 14:50:58 -04:00
Kartikaya Gupta a412581b20 Bug 1266066 - Implement DOM support for the 'passive' event listener flag. r=smaug
MozReview-Commit-ID: EvSCDxYC7g6
2016-05-12 14:50:22 -04:00
L. David Baron 71a0554018 Bug 1270649 - Rename mExceptionHasBeenRisen to mExceptionWasRaised. r=smaug
risen is the past participle of rise; raised is the past participle of
raise, which is what is done to exceptions.

See:
https://en.wiktionary.org/wiki/rise#Verb
https://en.wiktionary.org/wiki/raise#Verb (definition 2, though not sure
  if the use for exceptions is from 2.3 or 2.5)

(I wonder if mExceptionRaised would be simpler, though.)

MozReview-Commit-ID: 8Ynup8aDcLT
2016-05-08 22:16:42 -07:00
Xidorn Quan 7854a13c5b Bug 1268749 part 5 - Avoid dispatching unprefixed fullscreen events to content if unprefixed API is disabled. r=smaug
MozReview-Commit-ID: BLL7xr0EJu8

--HG--
extra : rebase_source : 9c41673bb69de10203c334e216773a23d1e7de53
2016-05-04 13:29:14 +10:00
Andrea Marchesini 55614d4c60 Bug 1266194 - Implement boolean or EventListenerOptions as 3rd param to addEventListener, r=smaug 2016-04-26 16:23:17 +08:00
Masayuki Nakano 9170348baf Bug 1259656 part.7 Rename WidgetEvent::originalTarget to WidgetEvent::mOriginalTarget r=smaug
MozReview-Commit-ID: G1WVCWkS0Lt

--HG--
extra : rebase_source : e4790266f4efa33269c073bca1d98f9e8e6c90d7
2016-04-19 01:33:23 +09:00
Masayuki Nakano 8caf2f2633 Bug 1259656 part.6 Rename WidgetEvent::currentTarget to WidgetEvent::mCurrentTarget r=smaug
MozReview-Commit-ID: 9UcpPbgEbB0

--HG--
extra : rebase_source : f044e89581d0591a87e4c459978cc4ca727d3303
2016-04-19 01:15:16 +09:00
Masayuki Nakano 685463c488 Bug 1259656 part.4 Rename WidgetEvent::typeString to WidgetEvent::mSpecifiedEventTypeString r=smaug
MozReview-Commit-ID: CzduIuu8mig

--HG--
extra : rebase_source : 82217020ba58bf971a7d755d9c1a45f4de197a92
2016-04-19 00:10:17 +09:00
Masayuki Nakano e88a0f30fa Bug 1259656 part.3 Rename WidgetEvent::userType to WidgetEvent::mSpecifiedEventType r=smaug
MozReview-Commit-ID: 5ef5lEQ1fZJ

--HG--
extra : rebase_source : 0d0f8b7e29db15b41ff6ac68db24b3e7d3df6afc
2016-04-18 23:53:03 +09:00
Nicholas Nethercote d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Boris Zbarsky e3b2de6aa9 Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley 2016-03-23 11:44:54 -04:00
Masayuki Nakano cea0b9cf02 Bug 1256589 part.6 Move the implementation of IsTrusted() from dom::Event to WidgetEvent r=smaug
MozReview-Commit-ID: 1SgMbTL8csl

--HG--
extra : rebase_source : 748fa8a594176edf7b2addd038b8031019d0dd35
extra : source : f4ce36e68ce06c405a6fab31facc120b94709aed
2016-03-17 16:01:30 +09:00
Masayuki Nakano 8c8cbe0e4c Bug 1256589 part.5 Add DefaultPrevented() and DefaultPreventedByContent() to WidgetEvent r=smaug
MozReview-Commit-ID: 5q3QUPTf12Z

--HG--
extra : rebase_source : 83ed946b44910713a61c80bd21202aba9430dd2a
extra : source : 4eb2193814ab1958a65add0c8c307d07c646d61c
2016-03-22 16:47:52 +09:00
Masayuki Nakano 6181d95afb Bug 1256589 part.4 Move the implementation of PreventDefault() and add PreventDefaultBeforeDispatch() from dom::Event to WidgetEvent r=smaug
mDefaultPreventedByChrome is hacky. When PresShell handles Escape key events in fullscreen mode, it prevents default of every Escape key events and dispatch it only into chrome. After that, it check mDefaultPreventedByChrome if at least one call of preventDefault() occurred in chrome. Therefore, if we shouldn't set both mDefaultPreventedByChrome and mDefaultPreventedByContent to true before dispatching an event. This the reason why we need a special method, PreventDefaultBeforeDispatch() is needed for setting only mDefaultPrevented to true.

MozReview-Commit-ID: BPSq68GnWw6

--HG--
extra : rebase_source : f2f963afeba6994cc090efedebc29c0d9334c96d
extra : source : 1012dc095cc1b7236991a7befdbfbf174dc1c1af
2016-03-22 16:26:27 +09:00
Timothy Nikkel cd3746d910 Bug 1253052. Only schedule paint when apz aware event listener is added if event regions/apz are enabled. r=kats
Bug 1210057 added this, we should only do it if apz/event regions are enabled.
2016-03-03 15:52:09 -06:00
Xidorn Quan 775aed278a Bug 743198 part 6 - Add unprefixed fullscreen events. r=smaug
--HG--
extra : source : cb096452899287cb35b51146d2f2ffc3dc26350f
2016-02-17 08:47:11 +08:00
Xidorn Quan 8bc3b5685b Bug 743198 part 5 - Check legacy event listener only if listener is found in the current group. r=smaug
--HG--
extra : source : b141db892428ebcbc2dbf213aea759aa88f6e8bf
2016-02-17 08:47:11 +08:00
Timothy Nikkel 144bb37d6e Bug 1210057. Schedule a paint when an apz aware event listener is added so that event regions on the layer tree get updated. r=smaug 2016-02-10 17:47:59 -06:00
Daniel Holbert b5aec0f2e7 Bug 1243555: Remove unnecessary nsDocShell static_cast in EventListenerManager::HandleEventInternal(). r=smaug 2016-02-09 15:21:36 -08:00
Daniel Holbert bbdaa0ddbd Bug 1236979 part 3: If there are no listeners for a transition or animation event, check listeners again using a webkit-prefixed event name. r=smaug 2016-02-02 10:03:49 -08:00
Daniel Holbert 2eb04f5120 backout bug 1236979 (changesets 2f4de652525e, d7136545a16e, f62e6638add1, f8b1e085b161) for xpcshell test failures 2016-02-01 21:57:38 -08:00
Daniel Holbert 054ab955e4 Bug 1236979 part 3: If there are no listeners for a transition or animation event, check listeners again using a webkit-prefixed event name. r=smaug 2016-02-01 19:05:12 -08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Eugen Sawin e8d1a957e9 Bug 1205649 - [2.4] Add AbsoluteDeviceOrientation DOM event for compass heading orientation data. r=smaug 2016-01-21 18:14:33 +01:00
Eugen Sawin a1f5f13b6b Bug 1205649 - [1.1] Use relative orientation for DOM DeviceOrientation events by default. r=vlad 2016-01-21 18:14:33 +01:00
Eugen Sawin c927fec54a Bug 1073224 - [1.2] Use SENSOR_ROTATION_VECTOR for DOM DeviceOrientation events on Android. r=vlad 2016-01-07 15:23:33 +01:00
Kyle Huey 449fd40516 Bug 1153636: Don't assert with addEventListener("") on workers. r=smaug 2016-01-06 13:18:29 -08:00
Carsten "Tomcat" Book 758c43af6b merge mozilla-inbound to mozilla-central a=merge 2015-10-26 10:57:35 +01:00
Victor Porof 9dc0ce6b1a Bug 1202657 - Add markers for workers' message passing and serialization/deserialization, r=smaug, jsantell, tromey, ejpbruel
--HG--
rename : docshell/base/timeline/OTMTMarkerReceiver.h => docshell/base/timeline/MarkersStorage.h
2015-10-21 23:10:05 +02:00
William Chen 16cbe794df Bug 920734 - Part 1: Implement window.orientation and window.onorientationchange. r=baku
--HG--
extra : rebase_source : 1ca2e3a29733762d4bb2c335a0d6fcf5d7b03c0f
2015-10-23 21:37:28 -07:00
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Christoph Kerschbaumer ac507e201c Bug 1026520 - CSP: Inline report sending into allows - callsite updates (r=dveditz) 2015-09-17 22:34:34 -07:00
Olli Pettay 68663347da Bug 1205466, make HasApzAwareListeners check faster, r=masayuki
--HG--
extra : rebase_source : 41c94b02117a09785938349dc9ad513af9bf048b
2015-09-17 13:16:20 +03:00
Masayuki Nakano 28e9bfed09 Bug 895274 part.228 Rename NS_DEVICE_LIGHT to eDeviceLight r=smaug 2015-09-12 01:19:29 +09:00
Masayuki Nakano 899fffeb6b Bug 895274 part.227 Rename NS_USER_PROXIMITY to eUserProximity r=smaug 2015-09-12 01:19:28 +09:00
Masayuki Nakano ab55bf9a3f Bug 895274 part.226 Rename NS_DEVICE_PROXIMITY to eDeviceProximity r=smaug 2015-09-12 01:19:28 +09:00
Masayuki Nakano d8412db0d9 Bug 895274 part.225 Rename NS_DEVICE_MOTION to eDeviceMotion r=smaug 2015-09-12 01:19:28 +09:00
Masayuki Nakano 6cde63ca22 Bug 895274 part.224 Rename NS_DEVICE_ORIENTATION to eDeviceOrientation r=smaug 2015-09-12 01:19:28 +09:00
Masayuki Nakano 585a5b420d Bug 895274 part.208 Rename NS_NETWORK_UPLOAD_EVENT to eNetworkUpload r=smaug 2015-09-12 01:19:26 +09:00
Masayuki Nakano a7aae5c117 Bug 895274 part.207 Rename NS_NETWORK_DOWNLOAD_EVENT to eNetworkDownload r=smaug 2015-09-12 01:19:26 +09:00
Masayuki Nakano b16155d584 Bug 895274 part.206 Rename NS_MOZ_TIME_CHANGE_EVENT to eTimeChange r=smaug 2015-09-12 01:19:25 +09:00
Masayuki Nakano 82117e2ac8 Bug 895274 part.205 Rename NS_GAMEPAD_END to eGamepadEventLast r=smaug 2015-09-11 21:21:28 +09:00
Masayuki Nakano 3b99f4a9ec Bug 895274 part.204 Rename NS_GAMEPAD_START to eGamepadEventFirst r=smaug 2015-09-11 21:21:28 +09:00
Masayuki Nakano e949683492 Bug 895274 part.160 Rename NS_AFTERPAINT to eAfterPaint r=smaug 2015-09-10 10:40:06 +09:00
Masayuki Nakano 35cc2a0a26 Bug 895274 part.149 Rename NS_USER_DEFINED_EVENT to eUnidentifiedEvent r=smaug 2015-09-10 10:40:04 +09:00
Masayuki Nakano de2ad54f6b Bug 895274 part.103 Rename NS_MUTATION_END to eLegacyMutationEventLast r=smaug 2015-09-07 23:55:51 +09:00
Masayuki Nakano 25e0050d19 Bug 895274 part.102 Rename NS_MUTATION_ATTRMODIFIED to eLegacyAttrModified r=smaug 2015-09-07 23:55:51 +09:00
Masayuki Nakano fbba1e8b07 Bug 895274 part.101 Rename NS_MUTATION_NODEREMOVED to eLegacyNodeRemoved r=smaug 2015-09-07 23:55:51 +09:00
Masayuki Nakano 8c49cf7363 Bug 895274 part.100 Rename NS_MUTATION_NODEINSERTED to eLegacyNodeInserted r=smaug 2015-09-07 23:55:51 +09:00