Neil Deakin
a70845215c
Bug 1452131, properly end the drag session when the drag is aborted, for example if the mouse is released before the child process starts the drag, r=nika
2018-08-02 09:50:20 -04:00
Olli Pettay
88bf08544e
Bug 1472570 - Use GetComposedDoc in nsBaseDragService, r=mrbkap
2018-07-03 17:51:02 +03:00
Jeff Gilbert
70a22b2878
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Boris Zbarsky
5f546dac16
Bug 1455676 part 3. Remove nsIDOMNode usage from widget/. r=qdot
2018-05-29 22:58:48 -04:00
Adrian Wielgosik
8a976cc5e7
Bug 1460940 - Remove nsIDOMDocument uses in widget/. r=bz
...
MozReview-Commit-ID: Rxvwm6zfrB
2018-05-11 19:46:15 +02:00
Boris Zbarsky
da3b7af4e4
Bug 1387143 part 21. Remove nsISelection getters for anchor and focus points. r=mats
...
Instead of copying spec-duplicating comments from nsISelection.idl to
Selection.webidl, this just points the latter to the right spec.
2018-05-08 13:52:38 -04:00
Boris Zbarsky
3d7e344fa9
Bug 1387143 part 20. Remove nsISelectionPrivate. r=mats
2018-05-08 13:52:38 -04:00
Boris Zbarsky
d69efa353f
Bug 1387143 part 4. Stop using nsISelection in remaining xpidl. r=mats
2018-05-08 13:52:36 -04:00
Nika Layzell
bd67cd9675
Bug 1444991 - Part 5: Make some XPCOM methods more strongly typed, r=bz
...
This patch goes through and changes a bunch of places in our tree which mention
this bug to use the new feature, making the methods more strongly typed.
There are probably more places in tree which could be changed, but I didn't try
to find them.
2018-04-17 19:21:05 -04:00
Boris Zbarsky
164097f697
Bug 1447889 part 14. Remove mention of nsIDOMRange from layout/. r=mystor
...
MozReview-Commit-ID: JWJWGzY45ac
2018-03-27 00:35:22 -04:00
Boris Zbarsky
152cd3ba6e
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Boris Zbarsky
72b3558850
Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
...
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:
MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h
MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Boris Zbarsky
4502c9d078
Bug 1445417 part 2. Stop using nsIDOMDragEvent in nsIDragService. r=mystor
...
MozReview-Commit-ID: 1BW1ki7sdKZ
2018-03-16 22:25:25 -04:00
Boris Zbarsky
17c9b27706
Bug 1444686 part 13. Remove remaining nsIDOMDataTransfer uses. r=mystor
...
MozReview-Commit-ID: EFauqLMGz5S
2018-03-13 16:24:00 -04:00
Boris Zbarsky
491c0277ad
Bug 1444686 part 11. Remove nsIDOMDataTransfer from dragsession. r=mystor
...
MozReview-Commit-ID: CRmiSTSN8af
2018-03-13 16:24:00 -04:00
Boris Zbarsky
3d51c49049
Bug 1444686 part 3. Get rid of nsIDOMDataTransfer::Get/SetMozCursor. r=mystor
...
MozReview-Commit-ID: G7vuh1uuWGv
2018-03-13 16:23:59 -04:00
Tooru Fujisawa
c2f56585a8
Bug 1424107 - Pass the triggering principal URI across processes in drag-and-drop. r=smaug
2018-02-09 10:43:53 +09:00
Boris Zbarsky
2e39082c0d
Bug 1432186 part 16. Remove nsIDOMNode's ownerDocument attribute. r=mccr8
...
MozReview-Commit-ID: JqfAFxPBz41
2018-01-29 23:10:52 -05:00
Boris Zbarsky
38e0d324fd
Bug 1432186 part 3. Remove nsIDOMNode's nodeName attribute. r=mccr8
...
MozReview-Commit-ID: Jg0Tuvdi6uX
2018-01-29 23:10:50 -05:00
Milan Sreckovic
1a108fed6c
Bug 1423559: Use BaseRect access methods instead of member variables in widget/ r=mstange
...
MozReview-Commit-ID: AqnztoUbsmk
2018-01-10 11:14:16 -05:00
Moritz Brunner
5b08a8f21b
Bug 1315660 - Fixed upscaling of drag and drop thumbnail. r=spohl
...
MozReview-Commit-ID: 9M2zIrce3Lj
2017-10-18 19:16:03 +02:00
Samathy Barratt
6e82a231e6
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r+tnikkel r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
2017-12-11 15:37:59 +00:00
Ciure Andrei
d5988c3191
Backed out changeset 8e33d0ce108c (bug 1351447) for failing /builds/worker/workspace/build/src/widget/cocoa/nsCocoaUtils on OS X r=backout a=backout on a CLOSED TREE
2017-12-12 09:49:59 +02:00
Samathy Barratt
54acaa2cd8
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
2017-12-11 15:37:59 +00:00
Stone Shih
ec09c1464f
Bug 1389314 Part3: Temporarily disable the input priority events when dnd is active. r=smaug.
...
MozReview-Commit-ID: AWfYmhjjsq0
2017-08-02 15:23:35 +08:00
Nicholas Nethercote
a58025002f
Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
...
This patch makes the following changes to the macros.
- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
mostly misused.
- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
universally available now anyway.
- Combines the first two string literal arguments of PROFILER_LABEL and
PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
them to be separate, and it forced a '::' in the label, which isn't always
appropriate. Also, the meaning of the "name_space" argument was interpreted
in an interesting variety of ways.
- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
it clearer they construct RAII objects rather than just being function calls.
(I myself have screwed up the scoping because of this in the past.)
- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
the caller doesn't need to. This makes a *lot* more of the uses fit onto a
single line.
The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).
- Fixes a bunch of labels that had gotten out of sync with the name of the
class and/or function that encloses them.
- Removes a useless PROFILER_LABEL use within a trivial scope in
EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
a good idea.
- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
done within them, instead of at their callsites, because that's a more
standard way of doing things.
2017-06-22 17:08:53 +10:00
Emilio Cobos Álvarez
3731858edf
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
2017-04-30 17:30:08 +02:00
Masatoshi Kimura
fd136e7327
Bug 1358758 - Use CSSIntRect for nsIFrame::GetScreenRect. r=kats
...
MozReview-Commit-ID: KXPL1ERbFDa
2017-04-25 07:33:13 +09:00
Stone Shih
2b86511344
Bug 606885 - Fire drag events with keyboard modifiers. r=enn
2017-02-17 11:29:42 +08:00
Cameron McCormack
5f9911da79
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
cku
45e5563bae
Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
...
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.
MozReview-Commit-ID: EMkLnG3YXA1
2017-01-03 13:53:22 +08:00
Iris Hsiao
f05dc61a9f
Backed out changeset c868ab532766 (bug 1323912)
2017-01-04 21:47:12 -05:00
cku
f1ffeaa1c2
Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
...
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.
MozReview-Commit-ID: EMkLnG3YXA1
2017-01-03 13:53:22 +08:00
Neil Deakin
45e02b912c
Bug 1309596, add an updateDragImage method to modify the drag feedback image during the drag, r=smaug
2016-12-23 18:09:44 -05:00
Sylvestre Ledru
a78ffc700c
Bug 1317973 - Use auto type specifier for variable declarations to improve code readability and maintainability r=tnikkel
...
MozReview-Commit-ID: 5RDrGaxV3E4
2016-11-16 15:22:36 +01:00
Sylvestre Ledru
87ea1806c2
Bug 1317973 - Replace default bodies of special member functions with = default; r=tnikkel
...
MozReview-Commit-ID: EV0tM3A26XY
2016-11-16 15:23:37 +01:00
Edwin Flores
613846be56
Bug 1295272 - Discard internal DataTransferItem data in nsBaseDragService::EndDragSession - r=enndeakin
2016-11-28 11:39:22 +00:00
Neil Deakin
9952d272a7
Bug 1301673, convert the image width and height to device pixels so that custom drag images are drawn at the right size, r=tn
2016-10-19 15:01:40 -04:00
Neil Deakin
f3db8e2bb9
Bug 1301673, properly handle disabled drag feedback image and failed drag feedbacks in content processes, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
79c0ef78dd
Bug 1301673, use the correct coordinates when drag feedback is disabled or fails; this allows the drag feedback on Mac to appear as a grey rectangle, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
df6ce0d915
Bug 1301673, use device pixels for the supplied drag position and the computed dragrectangle, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
9120a44fd2
Bug 1301673, don't confuse different coordinate types in image offsets, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
4a820ef165
Bug 1301673, use more specific coordinates for screen position in drag calculations, r=tn
2016-10-19 15:01:39 -04:00
Eric Rahm
2a4d3b22b9
Bug 1309698 - Remove usage of nsISupportsArray from nsIDragService. r=smaug
2016-10-18 11:56:20 -07:00
Eric Rahm
ce3a293d8c
Bug 1310017 - Remove nsISupportsArray usage from nsITransferable and nsIFormatConverter. r=smaug
...
This converts |nsITransferable.flavorsTransferableCanExport| and
|nsITransferable.flavorsTransferableCanImport| to return a |nsIArray|.
|nsIFormatConverter.getInputDataFlavors| and
|nsIFormatConverter.getOutputDataFlavors| are updated as well.
2016-10-16 12:43:56 -07:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Jonathan Kingston
ed99242d32
Bug 1192945 - Use channel->asyncOpen2 in widget/windows/nsDataObj.cpp. r=ckerschb
...
MozReview-Commit-ID: 5whNAj5KAjf
2015-08-10 12:56:47 -07:00
Randell Jesup
48d6215a5d
Backed out changeset 36e71bcb0266 (bug 1192945)
2016-06-10 02:24:08 -04:00
Jonathan Kingston
99b2793b93
Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
...
MozReview-Commit-ID: 5whNAj5KAjf
2015-08-10 12:56:47 -07:00
Nicholas Nethercote
a41e57a9b1
Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
...
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.
2016-06-07 09:39:56 +10:00