Brian Birtles
08b54f6f2c
Bug 1171817 part 14 - Add AnimationPtrComparator class; r=dbaron
...
Having created composite ordering methods for the different kinds of animations
this patch adds a Comparator class so that they can be used to sort an
array of such animations.
This patch uses this Comparator object to sort the results returned by
Element.getAnimations. For this case, the order in which we create animations
and transitions happens to almost perfectly correspond with the composite
ordering defined so that no sorting is necessary.
One exception is that some -moz-* transitions may be created after transitions
that they should sort before when sorting by transition property. In this
case the sorting added in this patch should ensure they are returned in the
correct sequence.
Unfortunately, we can't easily test this since the test files we have are
intended to be cross-browser (where -moz-* properties won't be supported).
Once we implement AnimationTimeline.getAnimations (bug 1150810) we'll have
a better opportunity to test this sorting. For now, the added tests in this
patch just serve as a regression test that the sorting hasn't upset the
already correct order (and an interop test in future once we move them to
web-platform-tests).
2015-06-09 11:13:54 +09:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Xidorn Quan
390e5bcb6a
Bug 1174966 part 3 - Merge FullScreenOptions and FullscreenRequest and makes the latter a single object in the whole lifetime of a request. r=smaug
2015-06-19 10:09:52 +10:00
Boris Zbarsky
fc944f9228
Bug 1165851 part 1. Back out bug 1060938 and bug 1075702 pending spec changes because they are implementing a spec that's not web compatible. r=smaug
2015-06-16 12:17:57 -04:00
Xidorn Quan
db5fa26fde
Bug 1161802 part 4 - Move bool parameters info FullScreenOptions for clearer call sites. r=smaug
2015-06-10 23:13:12 +12:00
Xidorn Quan
3f8dcdda35
Bug 1157685 - Remove full-screen-api.content-only pref and its friends. r=smaug
2015-05-15 14:39:25 +12:00
Cameron McCormack
ad6ee2b020
Bug 1160724 - Part 1: Resolve a properly parented style context when looking up -moz-binding of a display:none XUL/plugin element. r=dbaron
2015-05-05 14:00:28 +10:00
Anthony Tseng
fde5de9cff
Bug 1158425 - Rename _SYNTH event names. r=smaug
2015-05-01 22:06:00 -04:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
789a3bf96e
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Brian Birtles
e3a3e6d39d
Bug 1154615 part 6 - Rename references to players within layout/; r=jwatt
...
We will rename CSSAnimationPlayer/CSSTransitionPlayer in a separate patch
2015-04-21 10:22:10 +09:00
Brian Birtles
d81bc13082
Bug 1154615 part 5 - Rename AnimationPlayerCollection to AnimationCollection; r=jwatt
2015-04-21 10:22:10 +09:00
Brian Birtles
245d56b34b
Bug 1154615 part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
...
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.
2015-04-21 10:22:09 +09:00
Jonathan Watt
fd0af9f0f8
Bug 1145246, part 1 - Rename Animatable.getAnimationPlayers() to Animatable.getAnimations(), but leave the old name an an alias for the new. r=birtles, r=smaug
2015-03-20 18:20:32 +00:00
Boris Zbarsky
96a473a6e5
Bug 1145017. Use the new proto setup for custom element prototypes when possible. r=wchen,bholley
...
Note that with this patch I'm also changing the priority order of the given
proto and the custom proto; the former takes priority. This makes sense to me:
if the caller is doing |new Foo| they really should get something with
Foo.prototype as its proto. This should not be a problem for custom elements
in general so far, because nodes/elements are mostly not constructible anyway.
For now. When they become that way, I think this is the behavior we'll want.
2015-03-20 00:34:08 -04:00
Boris Zbarsky
3a822d99b4
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
William Chen
a1dffeab37
Bug 1130028 - Custom elements, set registered prototype in compartment of caller of registerElement. r=mrbkap
2015-03-02 09:48:30 -08:00
Tooru Fujisawa
1df47134f9
Bug 1141455 - Do not treat an element with tabindex as an interactive content in label. r=smaug
2015-03-18 05:42:14 +09:00
Cameron McCormack
a155531fbc
Bug 1123523 - Part 3: Store a flag on AnimationPlayer for whether it is exposed by Element.getAnimationPlayers(). r=birtles
2015-03-14 16:34:40 +11:00
Kearwood (Kip) Gilbert
10aca51e67
Bug 945584: Part 8 - Implement Scroll Snapping for Middle Mouse Button Scrolls (v2 Patch), r=roc, r=bz
...
- Implemented scroll snapping at the end of a middle-mouse-button scroll.
- As this scrolling occurs within chrome Javascript, chrome-only DOM methods
had to be added: window.MozScrollSnap and element.MozScrollSnap
- Bug 1137937 tracks implementation of a replacement for these chome-only DOM methods,
to be replaced with a web accessible API.
2015-02-19 16:03:07 -08:00
Andrea Marchesini
ae571f51bb
Bug 1134280 - Get rid of Tag() - patch 2.3 - dom/base and docshell - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
L. David Baron
2826a4f5be
Bug 1133439 patch 1 - Split eRestyle_StyleAttribute into eRestyle_StyleAttribute and eRestyle_StyleAttributeAnimations. r=birtles
2015-02-19 21:22:05 +13:00
L. David Baron
e868344134
Bug 960465 patch 19 - Remove users of eRestyle_ChangeAnimationPhase. r=birtles
2015-02-17 11:15:05 +13:00
William Chen
75dd02a0c2
Bug 1087460 - Part 2: Call attached and detached callback when attached and detached to/from the composed document. r=smaug
2015-02-09 10:01:24 -08:00
William Chen
7a73140dbd
Bug 1087460 - Part 1: Make GetComposedDoc() work in UnbindFromTree. r=smaug
2015-02-09 10:01:23 -08:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Boris Egorov
c90d9bf427
Bug 1070015 - Throw error if attr object of different element passed; r=bz
...
In the beginning of Element::removeAttributeNode() we check that attr object
passed to it belongs to the same element (comparing attr.GetElement and this).
If it is different element, throw NotFoundError.
Mochitest to check new behavior included.
2015-01-25 20:39:05 +06:00
Tooru Fujisawa
b10a0c8ee5
Bug 229925 - Do not dispatch event to label target if interactive content is found between the event target and the label. r=smaug
2015-01-21 05:39:28 +09:00
Anuj Agarwal
28c776d7c9
Bug 1075702 - Fixed implementation of Element.setAttributeNode(). r=bz
2015-01-15 05:12:00 +01:00
Vladimir Vukicevic
d956c16852
Bug 1117579; fullscreen broken on freeciv (throws with bogus requestFullScreen options); r=bz
2015-01-05 14:49:04 -05:00
William Chen
8f2efb30a0
Bug 1113959 - Do not enqueue custom element attached and detached callbacks when there is no browsing context. r=smaug
2014-12-22 22:35:32 -08:00
Vladimir Vukicevic
448de69ce1
Bug 1036606 - Extend mozRequestFullScreen to accept an options dict with a vrDisplay member; r=bz
2014-07-09 12:30:22 -07:00
Mats Palmgren
e9a74a0340
Bug 907396 - Frame manager support for display:contents. r=bzbarsky
2014-11-20 18:24:09 +00:00
Cameron McCormack
add90e7cc4
Bug 1089463 - Clear an element's restyle bits when inserting into a shadow tree. r=bzbarsky
2014-11-15 09:08:21 +11:00
Boris Zbarsky
65c6a3dece
Bug 1088228 part 1. Introduce an nsINode API for getting the scope chain parent for a given node. r=peterv
2014-10-30 17:38:48 -04:00
Wes Kocher
bdc541fa8b
Backed out 6 changesets (bug 1088228) for static analysis bustage
...
Backed out changeset 13ecff800114 (bug 1088228)
Backed out changeset de692c3335f2 (bug 1088228)
Backed out changeset 2d449a2b4e1c (bug 1088228)
Backed out changeset 49ac8f33ab70 (bug 1088228)
Backed out changeset 920d50e84a17 (bug 1088228)
Backed out changeset 55f4818378e4 (bug 1088228)
2014-10-30 16:24:02 -07:00
Boris Zbarsky
9845d50b79
Bug 1088228 part 1. Introduce an nsINode API for getting the scope chain parent for a given node. r=peterv
2014-10-30 17:38:48 -04:00
Birunthan Mohanathas
e9068bbc4f
Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv
2014-10-25 20:25:22 +03:00