Boris Zbarsky
29d232e53f
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
89ea512161
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
ec11fcb519
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
7f7ce9b56c
Bug 1444686 part 13. Remove remaining nsIDOMDataTransfer uses. r=mystor
...
MozReview-Commit-ID: EFauqLMGz5S
2018-03-13 16:24:00 -04:00
Boris Zbarsky
e026425f6d
Bug 1444686 part 11. Remove nsIDOMDataTransfer from dragsession. r=mystor
...
MozReview-Commit-ID: CRmiSTSN8af
2018-03-13 16:24:00 -04:00
Boris Zbarsky
55ed30a9c6
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
48bb8e02c7
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
37aaea3c1f
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
c646473558
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
bd27b86da3
Bug 1423559: Use BaseRect access methods instead of member variables in widget/ r=mstange
...
MozReview-Commit-ID: AqnztoUbsmk
--HG--
extra : rebase_source : 76a232a08b42ed73b4922c03bc0f2e9d1769203b
2018-01-10 11:14:16 -05:00
Moritz Brunner
2d522890a3
Bug 1315660
- Fixed upscaling of drag and drop thumbnail. r=spohl
...
MozReview-Commit-ID: 9M2zIrce3Lj
--HG--
extra : rebase_source : 8f92ecd3095d71b0de03d7c43a2374f501193ea4
2017-10-18 19:16:03 +02:00
Samathy Barratt
d8ba79a56b
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r+tnikkel r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : dbf645574aff7eefe65fa81809d6c07cb5800ec6
2017-12-11 15:37:59 +00:00
Ciure Andrei
b8d4330b53
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
...
--HG--
rename : image/ImgDrawResult.h => image/DrawResult.h
2017-12-12 09:49:59 +02:00
Samathy Barratt
0749baf2d8
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : 4fba109b84ef456126d50e0d5e525f29f944a46d
2017-12-11 15:37:59 +00:00
Stone Shih
fca19b3588
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
58786e1ea7
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.
--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Emilio Cobos Álvarez
e44543aad4
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
--HG--
extra : rebase_source : c2e9d4bfb9239f5e851d110cd7dff98c1e1a8d8b
2017-04-30 17:30:08 +02:00
Masatoshi Kimura
a4c9e326d4
Bug 1358758 - Use CSSIntRect for nsIFrame::GetScreenRect. r=kats
...
MozReview-Commit-ID: KXPL1ERbFDa
--HG--
extra : rebase_source : 263b18d1736b09bb62d914f066481281966b288c
2017-04-25 07:33:13 +09:00
Stone Shih
229b4ba331
Bug 606885 - Fire drag events with keyboard modifiers. r=enn
...
--HG--
extra : rebase_source : c6e4ac37ea2397d86368cb59b0a68aa3a9f43d79
2017-02-17 11:29:42 +08:00
Cameron McCormack
babad063ff
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
09c56e6da6
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
--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
Iris Hsiao
c8e876e89c
Backed out changeset c868ab532766 (bug 1323912)
2017-01-04 21:47:12 -05:00
cku
adab9bea9f
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
--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
Neil Deakin
d88256a9f9
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
a4563a219e
Bug 1317973 - Use auto type specifier for variable declarations to improve code readability and maintainability r=tnikkel
...
MozReview-Commit-ID: 5RDrGaxV3E4
--HG--
extra : rebase_source : d79b2fe895a158c7caffb12f76773fde652c86f9
2016-11-16 15:22:36 +01:00
Sylvestre Ledru
44b5e91069
Bug 1317973 - Replace default bodies of special member functions with = default; r=tnikkel
...
MozReview-Commit-ID: EV0tM3A26XY
--HG--
extra : rebase_source : 3941138180638f14d47c47672da0aad45a0ab301
2016-11-16 15:23:37 +01:00
Edwin Flores
59c6984580
Bug 1295272 - Discard internal DataTransferItem data in nsBaseDragService::EndDragSession - r=enndeakin
2016-11-28 11:39:22 +00:00
Neil Deakin
0b294f9d27
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
8ff837e37c
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
4ca7f3cb5f
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
68ac95182c
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
9bb6b7baf0
Bug 1301673, don't confuse different coordinate types in image offsets, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
12c7b914da
Bug 1301673, use more specific coordinates for screen position in drag calculations, r=tn
2016-10-19 15:01:39 -04:00
Eric Rahm
1eb4ae7e0d
Bug 1309698 - Remove usage of nsISupportsArray from nsIDragService. r=smaug
2016-10-18 11:56:20 -07:00
Eric Rahm
52edf921c1
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
b6d880aca1
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
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jonathan Kingston
4512426a78
Bug 1192945 - Use channel->asyncOpen2 in widget/windows/nsDataObj.cpp. r=ckerschb
...
MozReview-Commit-ID: 5whNAj5KAjf
--HG--
extra : transplant_source : H%B0%2A%D0%90W%DEQn%9ET%92%273%B4%FB%E9S%D2%FA
2015-08-10 12:56:47 -07:00
Randell Jesup
05bb25d9c0
Backed out changeset 36e71bcb0266 (bug 1192945)
2016-06-10 02:24:08 -04:00
Jonathan Kingston
d0636b7947
Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
...
MozReview-Commit-ID: 5whNAj5KAjf
--HG--
extra : rebase_source : cbe970274e34fdf32d1f60539a22b004ca0bea51
2015-08-10 12:56:47 -07:00
Nicholas Nethercote
a02611e830
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.
--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Jonathan Watt
2eb705bb3f
Bug 1277862, part 3 - Rename Moz2D's Filter to SamplingFilter in the rest of the tree. r=Bas
2016-05-25 17:01:18 +01:00
Blake Kaplan
ad87d3252d
Bug 1244533 - Pass dragend coordinates down to the content process. r=enndeakin
2016-05-19 11:55:40 -07:00
Moritz Brunner
f9f6b3c538
Bug 732733 - Resize drag image relative to the available screensize. r=jimm
...
--HG--
extra : rebase_source : 121170788742da505aada578a663b40ed05d838e
2016-05-13 06:48:00 -04:00
Jonathan Watt
6a7fdf9b55
No Bug - Remove some unnecessary SVGImageContext.h includes and add comments. r=sparky
2016-04-22 15:07:31 +01:00
Botond Ballo
9ccd2b5e76
Bug 1260018
- Route drag events to APZ, so it can accurately detect the end of a drag. r=kats
2016-04-18 14:24:28 -04:00
Masayuki Nakano
cbe8f5268a
Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug
...
MozReview-Commit-ID: ESWM5ZyBpSR
--HG--
extra : rebase_source : c5e1e3f60bcdde2a7f6c399e72430b29a3e552cd
2016-04-18 23:09:02 +09:00
Nathan Froyd
dc00d2ec98
Bug 1264784 - part 1 - call nsIFrame::{GetScreenRect,GetView} instead of their *External counterparts; r=dholbert
...
The latter functions just call through to the former functions, and
we're going to remove the latter functions in a separate, subsequent
patch.
2016-04-15 19:37:35 -04:00
Milan Sreckovic
e0b2b9e425
Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
...
MozReview-Commit-ID: rHhLEDZEQt
--HG--
extra : rebase_source : 4988f3f488c19dd35a9979e96f78a5511ee8f3d2
2016-04-12 15:18:11 -04:00
Jonathan Watt
9480920b04
Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku
2016-03-31 12:46:32 +01:00
Masayuki Nakano
0fbb1c8d67
Bug 1259662 part.2 Rename WidgetDragEvent::userCancelled to WidgetDragEvent::mUserCancelled r=smaug
...
MozReview-Commit-ID: 1Nx5NssvbM9
--HG--
extra : rebase_source : 5aff114e6728bc4608e4c0e5a386f2fa1a025e23
2016-03-31 19:06:05 +09:00