Commit Graph

501 Commits

Author SHA1 Message Date
Olli Pettay
9f03b49e10 Bug 1422092 - Revert the changes made by bug 1399603. r=mrbkap 2017-12-10 14:52:49 -05:00
Brad Werth
68bb1a00c3 Bug 1409083 Part 2: Stub webidl definitions to support flex container/item properties. r=smaug
MozReview-Commit-ID: KwNykBkJfPi
2017-11-15 13:20:35 -08:00
Phil Ringnalda
6cc9f12122 Backed out 5 changesets (bug 1409083) for eslint failures
Backed out changeset 9de539be3665 (bug 1409083)
Backed out changeset 660e79af5c93 (bug 1409083)
Backed out changeset 574cd09aad41 (bug 1409083)
Backed out changeset b21b06a24705 (bug 1409083)
Backed out changeset b21e6a795493 (bug 1409083)
2017-12-07 19:47:09 -08:00
Brad Werth
c34f82f532 Bug 1409083 Part 2: Stub webidl definitions to support flex container/item properties. r=smaug
MozReview-Commit-ID: KwNykBkJfPi
2017-11-15 13:20:35 -08:00
Emilio Cobos Álvarez
cd9cfe75b9 Bug 1422528: Inline and make stylo take the rare path for GetClasses directly. r=bz
Servo already checks MayHaveClass. This should improve Gecko performance, too.

MozReview-Commit-ID: KpVOVsKh6pe
2017-12-02 21:45:33 +01:00
Emilio Cobos Álvarez
f1ca83331f Bug 1422529: Make some trivial element methods final and inline. r=bz
Give the compiler the chance to devirtualize / inline a bit more.

MozReview-Commit-ID: D5u2AxaZ7a1
2017-12-02 22:13:31 +01:00
Edgar Chen
cb6d776928 Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk
2017-11-16 12:23:15 +08:00
Boris Chiou
e0e1683d0b Bug 1408310 - Part 4: Store mIsServo into DOMMatrixReadOnly. r=heycam
So we can know which backend we are using.

MozReview-Commit-ID: Jfpt82lv0hw
2017-11-14 16:47:07 +08:00
Edgar Chen
dfbd2cca23 Bug 1419310 - Part 2: Enqueue an attributeChanged reaction when mutating the value of an observed attribute to the same value; r=smaug
MozReview-Commit-ID: GyRL6Xt8HWt
2017-11-22 23:48:34 +08:00
Edgar Chen
6890b4a35b Bug 1419310 - Part 1: Remove nsContentUtils::GetElementDefinitionIfObservingAttr; r=smaug
MozReview-Commit-ID: 9yMrwDC0kYr
2017-11-23 00:09:03 +08:00
Cosmin Sabou
c85db00376 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-11-23 11:42:46 +02:00
Emilio Cobos Álvarez
7a3fb0690f Bug 1419554: Teach the restyle root code about elements outside of the flattened tree. r=heycam
The textarea is inserted under a Shadow host, with no matching insertion point,
so its flattened tree parent node is null.

We're treating this case in the restyle root code as "the parent is the
document", but that's very wrong.

MozReview-Commit-ID: JlzUMRIYaYZ
2017-11-22 14:15:34 +01:00
Kris Maglione
4be3ae647c Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 9EaD40vRNkH
2017-11-07 13:48:58 -08:00
Kris Maglione
48e53b3df5 Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.

MozReview-Commit-ID: GIshajQ28la
2017-11-01 20:35:52 -07:00
Brad Werth
f61f1dc571 Bug 1414920 Part 1: Add chrome-only API getElementsWithGrid(), for devtools. r=dholbert,smaug
MozReview-Commit-ID: L44Q95wEqDA
2017-10-31 12:05:02 -07:00
Olli Pettay
66f7f585ca Bug 1416450, ensure IntersectionObservers are deleted when adopting elements, r=mrbkap 2017-11-19 16:22:54 +02:00
Edgar Chen
bbbc28118e Bug 1396620 - Part 2: Fix compartment mismatch crash when doing old prototype swizzling for custom element; r=smaug
MozReview-Commit-ID: GMxikyKJ54A
2017-10-16 10:14:56 +08:00
John Dai
4833c9a8ec Bug 1406325 - Part 5: Implement try to upgrade. f=echen, r=smaug 2017-11-14 19:25:00 +08: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
8ae003f0f5 Bug 1406325 - Part 1: Make sure custom element state is custom before sending callback. f=echen, r=smaug 2017-11-03 02:52:00 +08:00
Jonathan Watt
948c2636cc Bug 1417365 - Unified build issues in dom/base. r=baku 2017-10-26 10:40:12 +01:00
Chris Peterson
c5d0841695 Bug 1416164 - Replace NS_POSTCONDITION with MOZ_ASSERT. r=froydnj
MozReview-Commit-ID: 9K3Ksf36uxr
2017-11-04 22:48:48 -07:00
Chris Peterson
53e4b50e41 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY
2017-10-25 00:37:02 -07:00
btian
78a18fdfb5 Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root r=mrbkap
MozReview-Commit-ID: DSiGN7h5ErY
2017-11-02 16:53:44 +08:00
Emilio Cobos Álvarez
a49d455ecf Bug 1415353: Don't allow creating shadow roots for elements with XBL bindings. r=smaug
It breaks all sorts of invariants.

MozReview-Commit-ID: IGUDp91q0sF
2017-11-08 14:09:33 +01:00
Ben Tian
342131c9a6 Bug 1404842 - P1: Implement Element.attachShadow and Element.slot, r=smaug
MozReview-Commit-ID: KWy8mDqEw4o
2017-10-19 14:44:35 +08:00
Nicholas Nethercote
465f16fc67 Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj.
It's a sub-class of nsAtom, useful for cases where you know you are dealing
exclusively with static atoms. The nice thing about it is that you can use
raw nsStaticAtom pointers instead of RefPtr<>. (In fact, the AddRef/Release
implementations ensure that we'll crash if we use RefPtr<nsStaticAtom>.)

MozReview-Commit-ID: 4Q6QHX5h44V
2017-10-27 10:31:13 +11:00
Emilio Cobos Álvarez
d24282b6dc Bug 1411754: Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyle. r=mats
I'm drive-by removing the comment about the frame tree state because I looked
into it, and the answer is: we properly restore it.

The gotcha is that we retain it too much, indeed, we retain it enough that it
can leak. See bug 1397239.

MozReview-Commit-ID: LP6bXkduEZ4
2017-10-25 23:12:25 +02:00
Emilio Cobos Álvarez
cf5ec03009 Bug 1411612: Kill nsINode::eCONTENT. r=bz
MozReview-Commit-ID: ESlOqlwhcHI
2017-10-25 17:19:11 +02:00
Emilio Cobos Álvarez
b9fb84fe3f Bug 1411478: remove primary frame check which is incorrect in <frame> child of a <frameset>. r=bz
We could also check whether it is a subdocument frame or what not (not that
we're going to render anything down there). But at that point the value of
avoiding the FFI call starts diluting.

MozReview-Commit-ID: BBIv0O3fFuk
2017-10-25 10:33:59 +02:00
Emilio Cobos Álvarez
6275738400 Bug 1405547: Account for mid-unbind conditions in the BitsArePropagated assertion too. r=heycam
I'm not adding a crashtest because the one provided is kinda unreliable, and I
suck and I wasn't able to find a better one.

MozReview-Commit-ID: CmaF0NO4Dff
2017-10-21 12:37:52 +02:00
Emilio Cobos Álvarez
12ee12d053 Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF
2017-10-14 14:04:39 +02:00
Sebastian Hengst
0a5b6f5b9f Backed out changeset f66cb1530f75 (bug 1407952) for build failure (bug 1408622). r=backout a=backout
MozReview-Commit-ID: 3h4oDHbvmes
2017-10-14 12:32:50 +02:00
Emilio Cobos Álvarez
a3619b2c17 Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF
2017-10-12 11:42:17 +02:00
Kris Maglione
5f00cf0c65 Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.

MozReview-Commit-ID: BMDL2Uepg0X
2017-10-09 14:33:38 -07:00
Ehsan Akhgari
191232a35d Bug 1406493 - Remove the rest of the attribute deprecation warnings; r=baku f=annevk 2017-10-09 18:26:11 -04:00
Ehsan Akhgari
caf020085d Bug 1404022 - Remove the deprecation warnings for Element.setAttribute/setAttributeNS; r=baku 2017-10-09 18:26:04 -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
Sebastian Hengst
5a50c5cb42 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Tobias Schneider
7372e9b4b3 Bug 1399603 - [intersection-observer] Stop observing a target when intersection root is deleted. r=mrbkap 2017-10-06 07:39:54 -07: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
Cameron McCormack
e2da486c83 Bug 1406275 - Don't assert the status of dirty bits in an unbinding subtree when choosing a new restyle root. r=emilio
MozReview-Commit-ID: 7EVGjjCoF6p
2017-10-06 17:26:07 +08:00
Emilio Cobos Álvarez
3e390978c7 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-02 18:14:15 +02:00
Sebastian Hengst
1ce9242750 Backed out changeset cfc393773f0d (bug 1404897) 2017-10-04 12:55:11 +02:00
Emilio Cobos Álvarez
ff70a3900c Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-02 18:14:15 +02:00
Sebastian Hengst
b1b71f0687 Backed out changeset 3833f3700021 (bug 1404897) 2017-10-04 11:24:26 +02:00
Emilio Cobos Álvarez
7233693b2d Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-04 11:01:42 +02:00
Wes Kocher
faa6e08cb7 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
John Dai
60db6a6216 Bug 1121994 - Implement adopted callback for custom elements. r=smaug 2017-10-02 00:42:00 -04:00
Emilio Cobos Álvarez
4322c150ab Bug 1404134: Drop assertion that can be hit mid-unbind. r=heycam
On that test-case we have something like:

  <body restyle-root>
    <element dirty-descendants>
      <element-2>
    </element>
  </body>

If we change the state of element-2 after unbinding the <body>, which clears the
body's flags, but not the children's flags, there'll be no restyle root, even
though our parent has the relevant flags anyway.

This doesn't compromise correctness in any way, so I'd rather drop the assertion
that shuffle a bunch of stuff so it holds.

MozReview-Commit-ID: KFVTkXclKST
2017-10-02 08:50:20 +02:00