Граф коммитов

562 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst fac6016d5c Backed out changeset ec272d453729 (bug 1356558) for failing new crashtest. CLOSED TREE 2018-03-19 18:52:01 +02:00
Emilio Cobos Álvarez 4211f7ecdb Bug 1356558: Crashtest. r=me
MozReview-Commit-ID: oHokeAhYiY
2018-03-19 16:33:07 +01:00
Emilio Cobos Álvarez 4657059140 Bug 1437155: Expect an assertion on the old style system. r=me
The old style system can't find the appropriate style to inherit from when
::first-line and display: contents are involved...

MozReview-Commit-ID: 98t1ABgLulQ
2018-03-05 16:20:35 +01:00
Emilio Cobos Álvarez dc83850d63 Bug 1437155: Avoid giving a first-letter frame to a display: contents element. r=mats
It doesn't make sense, since they have no frame themselves, and it breaks
invariants other code relies on. Use the parent frame instead.

The stack overflow happens because we give the first-letter frame to the
display: contents element, then we reframe it.

Removing a display: contents node calls ContentRemoved on all the children. One
of these children is this text-node inside the first-letter frame. Since it was
split by bidi resolution we go ahead and reframe the parent in:

  https://searchfox.org/mozilla-central/rev/d2b4b40901c15614fad2fa34718eea428774306e/layout/base/nsCSSFrameConstructor.cpp#9688

But the parent is the display: contents node, which results in infinite
recursion.

The usage of GetParent() is wrong anyway too, since it doesn't handle XBL or
Shadow DOM in any way.

MozReview-Commit-ID: JFD16at316V

--HG--
extra : rebase_source : e485b45bc146a70c26f8534f760899218da07500
2018-03-05 11:42:12 +01:00
Emilio Cobos Álvarez 549e302e25 Bug 1442506: Adjust assertion to allow empty appends. r=xidorn
Deletion at the end of a text-node ends up translated to an empty append. It's
harmless though.

Reviewers: xidorn

Bug #: 1442506

Differential Revision: https://phabricator.services.mozilla.com/D667

MozReview-Commit-ID: DqheOYVWx8o
2018-03-02 12:26:27 +01:00
Emilio Cobos Álvarez a5c61458d0 Bug 1439016: Crashtest. r=bholley
The crashtest will crash whenever the shell is destroyed, which is annoying,
but...

MozReview-Commit-ID: 1JkLy5K98bS

--HG--
extra : rebase_source : 063ca56df3db72940dbb3537a36da561528a5949
2018-02-19 18:08:06 +01:00
Emilio Cobos Álvarez 0ec91dd66b Bug 1429962: Don't add frames / reframe text that is going to get reframed anyway. r=bz
MozReview-Commit-ID: GuWjYYP0dBR

--HG--
extra : rebase_source : 327207f7ecf00771a3e2ecb807464577065091fd
2018-02-14 12:35:43 +01:00
Emilio Cobos Álvarez 200a23f376 Bug 1435015: Unbreak display: contents on unknown MathML elements. r=mats
Bug 1427292 broke display: contents on non-special MathML elements.

Just for reference, I've manually audited calls to nsIFrame::GetContent() in
MathML and turns out that MathML is pretty well-behaved in that sense (it
inspects the frame tree, then gets the content), so it should work fine with
display: contents / ShadowDOM.

Only exception to that is[1], but that one seems harmless.

[1]: https://searchfox.org/mozilla-central/rev/eeb7190f9ad6f1a846cd6df09986325b3f2c3117/layout/mathml/nsMathMLmactionFrame.cpp#301

So we can enable or implement when the CSSWG pleases.

MozReview-Commit-ID: 8N6kiGyjE4i

--HG--
extra : rebase_source : a80197e39b20bc6ab385a3d0b90628bc4ad81d92
2018-02-02 20:52:54 +01:00
Jessica Jong 4bee56a645 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Emilio Cobos Álvarez 124c284658 Bug 1429961: Crashtest. r=me
MozReview-Commit-ID: 79OJm4Ay1lf
2018-01-16 11:03:40 +01:00
Emilio Cobos Álvarez b12fb5d990 Bug 1429088: Crashtest. r=bz
MozReview-Commit-ID: qJQdpdUROs
2018-01-12 11:26:56 +01:00
Emilio Cobos Álvarez 872ec24ce1 Bug 1428353: Allow undisplayed maps to be queried for elements out of the document. r=mats
MozReview-Commit-ID: 69lQNFk5vhG

--HG--
extra : rebase_source : 693f2537039045f765f8a40da84792bc1b60327f
2018-01-06 00:50:58 +01:00
Emilio Cobos Álvarez 77165a9dc1 Bug 1420533: Add crashtest. r=me
MozReview-Commit-ID: EemfowpZSqp
2017-12-22 00:51:09 +01:00
Kartikaya Gupta 764fec3892 Bug 1426200 - Disable crashtests failing on windows QR builds. r=jrmuizel
MozReview-Commit-ID: AFZFoq1P3dI

--HG--
extra : rebase_source : dbd2cf616e856bbbd3827eb6ce39e41842159b57
2017-12-21 14:13:32 -05:00
Mats Palmgren bb0f44962b Bug 1425959 - Only allow ::first-letter/line children when the parent frame is a block frame. r=emilio
MozReview-Commit-ID: 4ARPMUCQKKV
2017-12-20 01:08:53 +01:00
Emilio Cobos Álvarez 252a32cb3c Bug 1425893: Add crashtest. r=me
MozReview-Commit-ID: HEGay8D5gzR
2017-12-19 11:07:15 +01:00
Emilio Cobos Álvarez dbb3111ff1 Bug 1398492: Remove the grid pref. r=mats
MozReview-Commit-ID: 6Qez8NE8oze
2017-12-17 00:04:35 +01:00
Emilio Cobos Álvarez c1a9f55817 Bug 1419762: Return the inline continuation of an IB split when appending. r=mats
The only reason not to do that is when there's after content in there. We know
that there isn't really any ::after content, since it would've been handled by
FindNextSibling, so we know we're performing a real append.

MozReview-Commit-ID: ExoPolZy4gG
2017-12-07 23:57:39 +01:00
Botond Ballo 826e7774d6 Bug 1382534 - Add a crashtest for the ASR-related assertion failure. r=mstange
MozReview-Commit-ID: J8hm3FmQpaE

--HG--
extra : rebase_source : d44fa219e728da4a10bf41fa542db3b962c10385
2017-10-04 16:27:15 -04:00
Boris Zbarsky 0015c73286 Bug 1411138. Be consistent (and follow the spec) in terms of how we determine the element that propagates styles to the viewport. r=dholbert
MozReview-Commit-ID: 8tH3nCDQJID
2017-10-26 00:35:22 -04:00
Makoto Kato dd8a2d7d7c Bug 1405550 - Adjust assertion count of crash tests for stylo on Android. r=emilio
MozReview-Commit-ID: 8ydIYqBXFjY

--HG--
extra : rebase_source : dcf5c7b0319d6ecc1c21e376ea5f2104f2091b09
2017-10-20 17:23:08 +09:00
Sebastian Hengst 6a25f2d0f4 Backed out changeset 7ebddc587c82 (bug 1250793) for failing own crashtest. r=backout
--HG--
extra : amend_source : 6651a19b0b864c95b34fe332c2e7533e18dc0764
2017-10-20 16:16:00 +02:00
Jesse Ruderman 0c7713af0f Bug 1250793 - Add crashtest. r=me
--HG--
extra : rebase_source : f34d92f13579eabd0c931f5be45dd77cdfe4f243
2017-10-20 08:36:12 -04:00
Jesse Ruderman 161346d545 Bug 1153716 - Add crashtest. r=me
--HG--
extra : rebase_source : 943a3398522c8e0cadfd8bad6c036ace9ca57120
2017-10-20 08:36:11 -04:00
Xidorn Quan 712cec8d27 Bug 1397644 part 2 - Remove test annotations for this bug. r=emilio
MozReview-Commit-ID: 3JbqY0UMTuh

--HG--
extra : source : c7eff47660a88d702a3c8daea692faadac95e024
2017-10-20 21:31:13 +11:00
Emilio Cobos Álvarez 15c0252093 Bug 1404789: Be a bit better at detecting distribution changes. r=bz
MozReview-Commit-ID: JqutdNJURZU

--HG--
extra : rebase_source : 7ce5d43c108ed97e7d9f377471d9741a892c2142
2017-10-18 16:03:41 +02:00
Emilio Cobos Álvarez bce283e551 Bug 1409088: Fix destination insertion point removal algorithm. r=bz
When an insertion point (a) is added to the document before another insertion
point (b), and that insertion point matches nodes that used to match (b), the
following happens in RedistributeAllNodes:

 * Loop through (a), and clear the existing insertion points on nodes
   distributed into it (none, since it was just inserted).

 * Go through the node pool and add the matched nodes. That makes the node
   (which already had (b) in the insertion point array) have [(b), (a)] as the
   insertion points.

 * Go through (b), and clear the existing insertion points on the nodes
   distributed to it. That used to do IndexOf() + SetLength(), but since (b) was
   the first node by then in the insertion point array, we'll leave the
   insertion point array empty, while (a) would still think that the node is
   distributed to it.

This causes the bloom filter code, which loops through the flattened tree
parents, to not insert any (because the node doesn't know about where it's
inserted).

Also, add a debug phase to verify the flat tree before restyling that would've
caught this more clearly (happy to remove it if you don't think it's worth).

We still can't assert that the insertion point is properly referenced due to the
hacky way mInsertionPoints is cleared in
HTMLContentElement::UpdateFallbackDistribution, but we'll still clear the
insertion points either there, or on the rest of insertion point removal code in
ShadowRoot::DistributeAllNodes.

MozReview-Commit-ID: 9k2gnsAKMEe

--HG--
extra : rebase_source : 7e8371199bde8148d77cb69417a8dd8b1ee77078
2017-10-19 14:45:16 +02:00
Botond Ballo fcf3e665a6 Bug 1409147 - Add a crashtest. r=mattwoodrow
MozReview-Commit-ID: GLTbXRxCKL7

--HG--
extra : rebase_source : 7768f7a372e65b36fad8dd6e28be6d877c19a538
2017-10-16 19:49:50 -04:00
Xidorn Quan fd467033f9 Bug 1407847 - Enable stylo for XUL document without system principal and annotate failures accordingly. r=heycam
MozReview-Commit-ID: KcJxloT2rR8

--HG--
extra : rebase_source : 8943efaa7afbf1bc74ac85ca103a52e2f4d1b1a4
2017-10-12 10:43:38 +11:00
Xidorn Quan 5767c9b968 Bug 1406562 - Return first continuation for parent of first-letter in ExpectedOwnerForChild. r=emilio
MozReview-Commit-ID: KkBDMStwQ6r

--HG--
extra : rebase_source : 7e0ffbf2ebff5d7d08d324c61736805adc9ea846
2017-10-09 11:07:17 +11:00
Boris Zbarsky 984aba4875 Bug 1391736. Relax the ExpectedOwnerForChild assert in the ServoRestyleState constructor. r=emilio 2017-10-02 16:36:49 -04:00
Boris Zbarsky 4a228305f6 Bug 1402476. ExpectedOwnerForChild should not return a first-letter frame for a text child. r=emilio
The expected owner is the DOM parent.  The first-letter then does some reparenting of the text style later.
2017-10-02 16:36:47 -04:00
Boris Zbarsky e04143fa91 Bug 1401739. Make sure to always call UpdateStyleOfChildAnonBox with the first continuation as "this". r=emilio
MozReview-Commit-ID: KhfvBuCeoex
2017-09-25 10:58:39 -04:00
Boris Zbarsky f0ee8b8b01 Bug 1401840. Make sure to not end up with infinite recursion when reframing a <body> that has a table pseudo parent coming from the root <html>. r=dholbert
MozReview-Commit-ID: EJiO8Nq5Frb
2017-09-22 23:32:49 -04:00
Xidorn Quan c5b7f94e1c Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : rebase_source : c9df383e14523bb534cac5018333178b7c17167a
2017-09-18 13:38:39 +10:00
Sebastian Hengst cbf485433e Backed out changeset 61a277705d59 (bug 1400438) for heap write hazard. r=backout 2017-09-20 16:52:02 +02:00
Xidorn Quan 4599882448 Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : source : 418288301c994faded0993a1cd3d73fc3b6521be
extra : amend_source : 7cba1fc0ca13b86782aa05ab4dae4cdc7eb9fbf6
2017-09-20 22:52:20 +10:00
Boris Zbarsky 53bb40c960 Bug 1400599. Make sure to properly handle removal of the root when the body propagates scrollbar styles to the viewport. r=dholbert
MozReview-Commit-ID: FixsFFtNOfQ
2017-09-18 21:27:23 -04:00
Boris Zbarsky 8e81160ff3 Bug 1398500 part 2. Make sure that if we start propagating scroll to viewport from a new body element we reframe it as needed. r=dholbert
MozReview-Commit-ID: K54u9NmAlpn
2017-09-15 23:45:06 -04:00
Boris Zbarsky f8a8561a30 Bug 1397398. Don't assert about unprocessed wrapper anonymous box restyles in situations in which the styles of those wrapper anonymous boxes can't have changed anyway. r=emilio 2017-09-09 04:11:54 -04:00
Manish Goregaokar 7960cd0a4d Bug 1397363 - stylo: Update crashtest expectations; r=orange
MozReview-Commit-ID: 6yYiGcZ7n3E
2017-09-06 23:24:53 -07:00
Boris Zbarsky 264b2245fd Bug 1395715. When recovering letter frames, only do first-line fixup when we have a first-line parent. r=emilio
It turns out, this is the only case in which we need to do the fixup at all.
And this way we don't have to guess based on first-line styles, which may not
match the frame tree (for example if we have a pending style change that we
haven't processed yet).
2017-09-01 11:09:02 -04:00
Boris Zbarsky 11a90dfbd9 Bug 1395591. When looking for our layout parent style, make sure to start with the placeholder if we're out of flow. r=emilio
MozReview-Commit-ID: 1M52bi3oQFX
2017-08-31 22:46:35 -04:00
Boris Zbarsky c7c1bed48a Bug 1390389. Fix anon box restyling assertions to correctly handle ib splits. r=xidorn
MozReview-Commit-ID: AtBFlvLyg6b
2017-08-31 09:12:13 -04:00
Xidorn Quan 179961b3c9 Bug 1383845 - Enable tests disabled for bug 1383845. r=TYLin
MozReview-Commit-ID: Glao9d9PiUF

--HG--
extra : rebase_source : cfc70fcb350a7ee8e325ba1bda0bcdead62d786e
2017-08-17 10:51:59 +10:00
Boris Zbarsky b183fe45c1 Bug 1388625 part 5. Implement wrapper anonymous box restyling in ServoRestyleManager. r=heycam
MozReview-Commit-ID: FRW4RCR1GT4

--HG--
extra : rebase_source : 4b3788a93173d73c0a47c92a3e8574bae713862f
2017-08-11 00:10:26 -04:00
Manish Goregaokar e632c1393e Bug 1383492: stylo: Change nscoord_MAX to 1<<30 - 1 ; r=emilio,dbaron
nscoord_MAX is (1<<30) so that we can check for overflow *after* adding
two nscoords. However, (nscoord_MAX + nscoord_MAX) will still overflow.
Subtracting one makes this no longer possible.

MozReview-Commit-ID: BtbQRMp5kWm
2017-07-27 18:57:32 -07:00
J. Ryan Stinnett c79cb3fbb1 Bug 1380053 - Stylo reftest annotations for all OSes. r=manishearth
MozReview-Commit-ID: JNsNUOZfd2e

--HG--
extra : rebase_source : 05a71f9a0fe484c93931fb230cf0752a3b1b8b00
2017-07-20 22:02:00 -05:00
Wes Kocher 18f09001d3 Backed out 4 changesets (bug 1341102, bug 1383492) for windows build bustage and crashtest assertions a=backout CLOSED TREE
Backed out changeset 1c4310082e35 (bug 1341102)
Backed out changeset 849c109d96b4 (bug 1341102)
Backed out changeset 11cadad891a4 (bug 1383492)
Backed out changeset b4dfcf4f795e (bug 1383492)

MozReview-Commit-ID: 4bDAPgiaepG
2017-07-26 18:09:45 -07:00
Manish Goregaokar c2a750c83f Bug 1341102: Fix bustage on a CLOSED TREE; r=bustage
MozReview-Commit-ID: Ho2PNnBhR3M
2017-07-26 16:52:20 -07:00