Olli Pettay
f8aa01762a
Bug 1440382, there should be no is-attribute, only internal is-value, in custom elements, r=mrbkap
2018-06-28 14:22:58 +03:00
Margareta Eliza Balazs
b57e2f6130
Backed out changeset 9fe49c825ba3 (bug 1440382) for causing bustage in builds/worker/workspace/build/src/dom/base/nsNodeUtils.cpp
2018-06-28 14:00:18 +03:00
Olli Pettay
c3707b2e13
Bug 1440382, there should be no is-attribute, only internal is-value, in custom elements, r=mrbkap
2018-06-28 13:39:05 +03:00
Emilio Cobos Álvarez
d1a8c048f5
Bug 1465478: Introduce Element::FromNode. r=smaug
...
And use it in a couple places I noticed.
MozReview-Commit-ID: 8baSMrbdEbF
2018-05-31 02:46:10 +02:00
Jan de Mooij
e5f8a28c84
Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke
2018-05-16 10:53:16 +02:00
Brian Birtles
033b8ba988
Bug 1456394 - Rename AnimationEffectReadOnly to AnimationEffect; r=bz,hiro
...
MozReview-Commit-ID: 8jzJiCWt5vs
2018-05-07 11:15:16 +09:00
Brian Birtles
1319f89405
Bug 1456394 - Rename KeyframeEffectReadOnly.{h,cpp} to KeyframeEffect.{h,cpp}; r=bz,hiro
...
MozReview-Commit-ID: 5Q7oQV8vmgS
2018-05-07 11:07:06 +09:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Emilio Cobos Álvarez
343a4f04cd
Bug 1454251: Remove nsINode::eATTRIBUTE. r=bz
...
MozReview-Commit-ID: 7HeUbcG6szy
2018-04-20 09:52:26 +02:00
Emilio Cobos Álvarez
bf14ceaba3
Bug 1454233: Remove nsINode::eDOCUMENT. r=bz
...
MozReview-Commit-ID: ItjdI79zme7
2018-04-20 01:30:11 +02:00
Dave Townsend
baa5890074
Bug 1421070: Always enable custom elements in chrome. r=smaug, rs=MattN
...
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.
MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07:00
Margareta Eliza Balazs
9ee7d43762
Backed out changeset 794ee6857d83 (bug 1421070) for 15 failures in toolkit/components/payments/test/mochitest/test_ObservedPropertiesMixin.html on a CLOSED TREE
2018-03-23 03:42:25 +02:00
Dave Townsend
fd716c5ce4
Bug 1421070: Always enable custom elements in chrome. r=smaug
...
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.
MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07: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
Emilio Cobos Álvarez
3a349583ff
Bug 749981: Remove Node.getUserData / setUserData. r=smaug
...
Summary: MozReview-Commit-ID: JkUCvVZ4V2Y
Reviewers: smaug
Bug #: 749981
Differential Revision: https://phabricator.services.mozilla.com/D749
MozReview-Commit-ID: KadWzpMjdW
2018-03-17 19:33:07 +01:00
Brian Grinstead
00f65ec517
Bug 1443948 - Remove NODE_FORCE_XBL_BINDINGS;r=bz
...
This was used to attach a binding to a cloned node before it got inserted
into the doc. This is no longer used in the browser chrome, so this patch
removes the feature to prevent future usage and simplify dom code.
MozReview-Commit-ID: KnkHWJ8oQig
2018-03-12 13:24:10 -07:00
Olli Pettay
368a0e8c2f
Bug 1425864 - Ensure printing documents which have ShadowDOM works, r=mrbkap,emilio
2018-03-04 19:41:13 +09:00
Emilio Cobos Álvarez
0ff849122a
Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
...
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().
Differential Revision: https://phabricator.services.mozilla.com/D664
MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Emilio Cobos Álvarez
7a79ccba52
Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
...
It's not intended to be mutated.
MozReview-Commit-ID: 5nkD1YkidlV
2018-02-27 15:30:27 +01:00
Kyle Machulis
b3a2a50103
Bug 1407040 - Change HTMLMediaElement QIs to FromContent calls; r=bz
...
MozReview-Commit-ID: JoHA0LbJnu9
2018-02-14 21:17:45 -08:00
Edgar Chen
eb56380ce2
Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; r=smaug
...
Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value),
we could use nodeInfo->NameAtom() instead.
MozReview-Commit-ID: 4vIBDEM1Nwv
2018-01-17 14:55:13 +08:00
Boris Zbarsky
a04420f06a
Bug 1432186 part 19. Remove the nsIDOMNode::*_NODE constants. r=mccr8
...
MozReview-Commit-ID: KvKjeKIOB9K
2018-01-29 23:10:53 -05:00
Boris Zbarsky
f49a0fc3b7
Bug 1431964 part 10. Remove nsIDOMAttr. r=mccr8
...
MozReview-Commit-ID: xj4QeXBF9V
2018-01-21 12:07:31 -05:00
John Dai
b2052d3ac6
Bug 1419662 - Fix incorrect custom element type in CustomElementData. f=echen, r=smaug
2018-01-07 18:45:00 +02:00
Emilio Cobos Álvarez
ebc2e23e06
Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
...
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.
MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Emilio Cobos Álvarez
ee5c3d849d
Bug 1420547: Add assertions for the assumptions we're making. r=bz
...
MozReview-Commit-ID: 8CVtclXLgzH
2017-12-11 10:14:36 +01:00
Emilio Cobos Álvarez
3deea2e6c6
Bug 1420547: Notify the pres shell before everything else on removals. r=bz
...
This allows the flattened tree to have a reasonable state before content
removals, allowing us to fix bugs like bug 1420533.
This used to be also the old setup, but was changed in bug 382376, since the
frame constructor used to reconstruct stuff synchronously. This used to break
all sorts of stylo invariants, and I fixed this in bug 1389743, so now the order
can be sane again.
MozReview-Commit-ID: K2pTweGKSq0
2017-12-11 06:42:38 +01:00
Emilio Cobos Álvarez
a12241bd7d
Bug 1420547: Notify the pres shell specially, instead of via mutation observers. r=bz
...
This makes the pres shell be notified as the last observer unconditionally.
In practice this doesn't matter, and it may already be the case if an iframe
goes display: none and back. In practice, the only dependency that requires this
order is that the pres shell needs to be notified _after_ the content sink, so
we don't try to enter frame construction before beginning the shell update.
That may be worth looking into, but definitely not in the scope of this bug... :)
MozReview-Commit-ID: 9WeJ5kaUtBq
2017-12-06 05:26:32 +01:00
Emilio Cobos Álvarez
b73836b399
Bug 1424104: Remove some confusing comments and useless null-check. r=smaug
...
The comments made sense on the patch from bug 342062, but not anymore.
OwnerDoc() never returns null, and if that assertion fails we have more
important stuff to fix.
MozReview-Commit-ID: LF1sblZoBJN
2017-12-06 04:42:34 +01:00
Dave Townsend
7226ceda95
Bug 1404420: Add custom element support to XUL. r=edgar, r=smaug
...
MozReview-Commit-ID: BietEX2gOoG
2017-10-10 15:25:10 -07:00
Olli Pettay
66f7f585ca
Bug 1416450, ensure IntersectionObservers are deleted when adopting elements, r=mrbkap
2017-11-19 16:22:54 +02:00
John Dai
c0e69c86ed
Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0. f=echen, r=smaug
2017-11-14 19:23:00 +08:00
John Dai
a78eb37d82
Bug 1406325 - Part 3: Refactor custom elements clone a node. f=echen, r=smaug
2017-11-14 20:01:00 +08:00
John Dai
a6090efa50
Bug 1406325 - Part 2: Set CustomElementData when cloning a node. f=echen, r=smaug
2017-11-03 02:52:00 +08:00
Emilio Cobos Álvarez
92002636f7
Bug 1414692: Adopt shadow roots when adopting a shadow host across documents. r=smaug
...
MozReview-Commit-ID: 8K0axIc86iY
2017-11-07 09:59:46 +01:00
Emilio Cobos Álvarez
cf5ec03009
Bug 1411612: Kill nsINode::eCONTENT. r=bz
...
MozReview-Commit-ID: ESlOqlwhcHI
2017-10-25 17:19:11 +02:00
Olli Pettay
ebae570021
Bug 1397811, in order to not leak properties, ensure all the properties of adopted nodes are removed in case the adopt call fails, r=bz
2017-10-20 11:02:29 +01:00
Boris Zbarsky
a07362e15d
Bug 1407375. Make sure to call NodeInfoChanged whenever we change the nodeinfo on a node. r=peterv
...
MozReview-Commit-ID: 71k1jv8thFA
2017-10-11 22:19:06 -04:00
Nicholas Nethercote
7dbfdaf890
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Tobias Schneider
5c3b72e3a7
Bug 1316277 - Move intersection observer list from DOMSlots to a property. r=mrbkap
2017-10-05 20:42:55 -07:00
John Dai
1d8a409de9
Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug
2017-10-03 01:34:00 -04:00
Catalin Badea
fc6ab5f0ea
Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv
2017-10-03 11:09:08 +01:00
Wes Kocher
7b33f3ddcd
Backed out changeset 29a6664e8f73 (bug 1319342) for wpt failures in Node-cloneNode.html a=backout
...
MozReview-Commit-ID: 2FoC3zDqXO2
2017-10-02 14:27:09 -07:00
John Dai
1d3112e098
Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug
2017-10-01 23:12:00 -04:00
John Dai
60db6a6216
Bug 1121994 - Implement adopted callback for custom elements. r=smaug
2017-10-02 00:42:00 -04:00
Olli Pettay
98580ecdff
Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap
2017-09-25 18:09:26 +03:00
Boris Zbarsky
2fcd5047d7
Bug 1393806 part 3. Change dom::ReparentWrapper to take an ErrorResult. r=peterv
...
This makes it easier for its consumers to avoid leaving a dangling exception on
the JSContext.
MozReview-Commit-ID: Xep7IkYxSx
2017-09-13 13:34:55 -04:00
Boris Zbarsky
945af2d388
Bug 1393806 part 1. Change nsNodeUtils cloning/adopting stuff to use an ErrorResult for errors. r=peterv
...
This will allow us to propagate out more informative errors in some cases.
MozReview-Commit-ID: 9FbzV5VRMqN
2017-09-13 13:34:55 -04:00
Ehsan Akhgari
aa8865d8c3
Bug 1385533 - Reserve space for one pointer in the mMutationObservers array on node slots; r=smaug
...
This helps avoid allocations for the first mutation observer (for example, Range)
created by a caller.
2017-07-31 17:12:38 -04:00
Olli Pettay
c5b6e095f8
Bug 1377993 - Make node slots less memory hungry in common cases. r=peterv
...
MozReview-Commit-ID: Lhr1UsCrRTs
2017-07-18 00:25:49 +02:00