Commit Graph

52 Commits

Author SHA1 Message Date
William Chen
161ace8311 Bug 1181130 - Part 3: Keep track of editable descendants per node and prevent NS_STYLE_USER_SELECT_ALL selection for nodes with editable descendants. r=bz 2015-08-14 10:52:38 -07:00
Robert O'Callahan
a0a56fc159 Bug 1184842. Preparse class attribute values in Element::BeforeSetAttr. r=peterv 2015-08-01 17:46:15 +12:00
Robert O'Callahan
9fb2247b78 Bug 1184842. Pass preparsed attribute values to nsNodeUtils::AttributeWillChange. r=peterv 2015-07-22 15:53:35 +12:00
Robert O'Callahan
99701808fc Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
We will pass the preparsed value into AttributeWillChange.
2015-08-01 17:14:06 +12:00
Robert O'Callahan
1feb908b60 Bug 1184842. Add aOldValue parameter to nsNodeUtils::AttributeChanged. r=peterv 2015-07-21 16:13:53 +12:00
Robert O'Callahan
b7cc251745 Bug 1184842. Make SetAttrAndNotify use the real old value instead of aOldValue when possible. r=bz 2015-07-25 17:57:13 +12:00
Robert O'Callahan
5fc079e9ea Bug 1184842. Change nsAttrAndChildArray::SetAndTakeAttr to nsAttrAndChildArray::SetAndSwapAttr. r=peterv 2015-07-22 14:09:41 +12:00
Xidorn Quan
9fa68fd695 Bug 1160017 part 1 - Remove fullscreen permission code from nsDocument. r=smaug 2015-07-21 20:50:20 +10:00
Franziskus Kiefer
5282901ef0 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Xidorn Quan
dc0f32b794 Bug 1184443 - Make async ExitFullscreen call ask the window to exit fullscreen first. r=smaug 2015-07-19 10:30:52 +10:00
Olli Pettay
b4fe0d6666 Bug 1184065, properly support WrapperCache on DestinationInsertionPointList, r=wchen 2015-07-18 01:16:43 +03:00
Brian Birtles
a44ee78b26 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
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Xidorn Quan
b9d94d30b0 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
2c051d62ba 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
918608426d 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
92362298fc Bug 1157685 - Remove full-screen-api.content-only pref and its friends. r=smaug 2015-05-15 14:39:25 +12:00
Cameron McCormack
214f939d12 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
96161fc227 Bug 1158425 - Rename _SYNTH event names. r=smaug 2015-05-01 22:06:00 -04:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Boris Zbarsky
ef887403cb 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
42b3a896fd 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
eb570dc2df Bug 1154615 part 5 - Rename AnimationPlayerCollection to AnimationCollection; r=jwatt 2015-04-21 10:22:10 +09:00
Brian Birtles
6033b2c86d 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
49b12af674 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
60ca8ac291 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
54c64f20a9 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
d336ec30e7 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
8eab6f064e 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
f984425c1b 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
1ba6aaedda 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
e5bca26bf2 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
454d9140a2 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
88d26a6cac 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
dbad586939 Bug 960465 patch 19 - Remove users of eRestyle_ChangeAnimationPhase. r=birtles 2015-02-17 11:15:05 +13:00
William Chen
1ae95ff1e0 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
9a0a3578e2 Bug 1087460 - Part 1: Make GetComposedDoc() work in UnbindFromTree. r=smaug 2015-02-09 10:01:23 -08:00
Nicholas Nethercote
6ee3666899 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
8413cc973c Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
3629781b69 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Boris Egorov
c5f76609b2 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.

--HG--
extra : rebase_source : 8582d119a99d23d121ad9f7fe5b184668641bf80
2015-01-25 20:39:05 +06:00
Tooru Fujisawa
b8a0cc4e4e 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
94c548d777 Bug 1075702 - Fixed implementation of Element.setAttributeNode(). r=bz 2015-01-15 05:12:00 +01:00
Vladimir Vukicevic
1cf5b452b7 Bug 1117579; fullscreen broken on freeciv (throws with bogus requestFullScreen options); r=bz 2015-01-05 14:49:04 -05:00
William Chen
6c923a126f 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
f1205fc71d 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
1c00164ab4 Bug 907396 - Frame manager support for display:contents. r=bzbarsky 2014-11-20 18:24:09 +00:00
Cameron McCormack
a954ec858b 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
e90df03b34 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
554446ac26 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