Commit Graph

13011 Commits

Author SHA1 Message Date
Dorel Luca
e968e809aa Backed out changeset 13faabcf8e96 (bug 1425769) for Linux bustage on build/src/dom/base/nsLineBreaker.h 2017-12-19 11:07:44 +02:00
Emilio Cobos Álvarez
5ae586e759 Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug
This also removes some confusing comments around nsIDocument regarding some kind
of "special" stylesheets, which don't seem to exist anymore, and consolidates
StyleSheetList so that we only have one implementation.

I think that fixes a potential leak on the shadow root code (even though the API
is v0 only), given the pointer from the ShadowRootStyleSheetList to the
ShadowRoot wasn't being CCd.

Also, more stuff could be renamed, methods removed, etc, feel free to suggest
more cleanup, I've done mostly the minimal.

Next steps are moving the stylesets there and stop using the proto binding sheet
list / resources.

MozReview-Commit-ID: D9hnDgPQAS5

--HG--
extra : rebase_source : 0597917521894288c6b749e5d3ac6ac3b7db44a0
2017-12-17 22:29:10 +01:00
Daniel Holbert
b328472fc2 Bug 1398963 part 7: Add an about:config flag to optionally emulate -moz-box with flexbox. r=mats
This feature is intended to help Firefox frontend developers experiment with
replacing XUL content with modern flexbox.  We might also eventually use
this emulation to *actually* render most or all of our legacy XUL UI.

MozReview-Commit-ID: 3g2W9o3t23H

--HG--
extra : rebase_source : a3e8b443d9b58e5af3287a23de6edc276ed5e847
2017-10-26 11:12:17 -07:00
Kartikaya Gupta
4f18e92ffb Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de

--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05: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
Botond Ballo
c1cb97c6d8 Bug 1425485 - Propagate overscroll-behavior on a text input to the anonymous scrollable <div> inside it. r=tnikkel
MozReview-Commit-ID: Ey1Ns34GXJL

--HG--
extra : rebase_source : 67676a085787170ff99bae8142890616cc3e774c
2017-12-15 13:23:24 -05:00
Matt Woodrow
1571d5e823 Bug 1419021 - Part 1: Invalidate display items when we get a size for decoded images since this can change the display items we build. r=tnikkel
This breaks rendering when we try do a sync decode paint since we might not have created the nsDisplayImage/nsDisplayBackgroundImage yet (or cached the empty size) and so we never get to the actual paint call.
2017-12-14 17:37:56 -06:00
Emilio Cobos Álvarez
b864765f92 Bug 1424816: Remove the document state cache. r=smaug
See bug 1422633, there are assertions missing, and servo doesn't assert at all
anymore.

I don't think it's worth optimizing / lazily resolving it, each time the
document state changes.

We usually just restyle the world anyway (which requires recomputing it), and
the changes that it's optimizing (nsWindow::SetActive() and XUL root element
localedir attribute changes) aren't common enough to warrant the complexity I'd
say.

This doesn't handle invalidating the cache in the case the root element goes
away, I haven't bothered because it was already broken, and GetRootElement() is
already gone in RemoveSubtreeFromDocument.

MozReview-Commit-ID: 9RuQhmmy7Kr
2017-12-14 16:07:36 +01:00
Edgar Chen
5fedbb92b8 Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]; r=smaug
MozReview-Commit-ID: HgbFo9ddr0o

--HG--
extra : rebase_source : 04989782fc7c7ce79e0e65b3dc907c9e174a0809
2017-11-27 16:10:27 +08:00
Manish Goregaokar
f87b01d03b Bug 1421195 - Add weighted telemetry probes for parallel restyles ; r=emilio
MozReview-Commit-ID: sVN7CWjgni
2017-12-12 11:30:34 -06:00
Manish Goregaokar
b92ab8df04 Bug 1421195 - Add telemetry probe for fraction of restyles that are parallel ; r=emilio
MozReview-Commit-ID: sVN7CWjgni
2017-12-12 11:30:24 -06:00
Andreea Pavel
5ba2665757 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 22:21:17 +02:00
Eric Rahm
6058ba50a3 Bug 1423798 - Remove headers included for backwards compat in nsString.h. r=njn on a CLOSED TREE
Remove the headers included for "backwards compatibility" and just include them
where required.

--HG--
extra : source : e2beba7e6875120ebbbcadf24bcbcb5b86411a94
extra : amend_source : 11f07a27431cd468511f0bd45afe36150c6e342c
2017-12-06 19:36:57 -08:00
Csoregi Natalia
f488657fbd Backed out changeset e2beba7e6875 (bug 1423798) for failing Browser Chrome tests browser_temporary_permissions_expiry.js on Windows 7 debug. r=backout on a CLOSED TREE 2017-12-09 07:23:35 +02:00
Daniel Holbert
5b07b0d82f Bug 1420526 part 2: Make copies of svg-as-image :visited reftests, using canonical "visited-page.html" as link-target. r=emilio
MozReview-Commit-ID: 1ok7teS7kDH

--HG--
rename : layout/reftests/svg/as-image/svg-image-visited-1a-helper.svg => layout/reftests/svg/as-image/svg-image-visited-1c-helper.svg
rename : layout/reftests/svg/as-image/svg-image-visited-1a.html => layout/reftests/svg/as-image/svg-image-visited-1c.html
rename : layout/reftests/svg/as-image/svg-image-visited-1b-helper.svg => layout/reftests/svg/as-image/svg-image-visited-1d-helper.svg
rename : layout/reftests/svg/as-image/svg-image-visited-1b.html => layout/reftests/svg/as-image/svg-image-visited-1d.html
2017-12-08 18:11:10 -08:00
Daniel Holbert
f69fd6f959 Bug 1420526 part 1: Change svg-as-image :visited reftests to be more robust (and to run as part of test_visited_reftests.html). r=emilio
MozReview-Commit-ID: 46DGG1LBEFy

--HG--
rename : layout/reftests/svg/as-image/svg-image-visited-1-helper.svg => layout/reftests/svg/as-image/svg-image-visited-1a-helper.svg
rename : layout/reftests/svg/as-image/svg-image-visited-1.html => layout/reftests/svg/as-image/svg-image-visited-1a.html
rename : layout/reftests/svg/as-image/svg-image-visited-2-helper.svg => layout/reftests/svg/as-image/svg-image-visited-1b-helper.svg
rename : layout/reftests/svg/as-image/svg-image-visited-2.html => layout/reftests/svg/as-image/svg-image-visited-1b.html
2017-12-08 18:11:10 -08:00
Eric Rahm
74880b3483 Bug 1423798 - Remove headers included for backwards compat in nsString.h. r=njn
Remove the headers included for "backwards compatibility" and just include them
where required.

--HG--
extra : rebase_source : 03e703a81ed4b80f4f116ff36d8787464ce5acba
2017-12-06 19:36:57 -08:00
Xidorn Quan
69244b0e4b Bug 1267890 followup - Enable -moz-bool-pref in chrome sheets in Gecko as well.
MozReview-Commit-ID: D5YRLZjyCrs

--HG--
extra : amend_source : 81d2926ac69370bb0d5b218d0f2822a43a26e427
2017-12-08 22:56:45 -06:00
Xidorn Quan
60d327216d Bug 1267890 part 1 - Add @supports -moz-bool-pref() support for stylo. r=emilio
MozReview-Commit-ID: C9Pq2zLLaGp

--HG--
extra : source : b7c8a25d84695de47acda8065b21c0a96759f87b
2017-12-08 20:03:34 -06:00
Cosmin Sabou
c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Emilio Cobos Álvarez
091c695546 Bug 1422538: Use a plain for loop instead of IntegerRange because it busts OSX builds who knows why. r=me
I don't understand why though... on a CLOSED TREE, of course.

MozReview-Commit-ID: 4HJohKNdMiQ
2017-12-07 23:52:34 +01:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
Emilio Cobos Álvarez
99108b60bd Bug 1422538: Move ServoElementSnapshot::AddAttrs outside the class declaration. r=bz
MozReview-Commit-ID: DO1u3vpr8ry
2017-12-07 22:55:45 +01:00
Emilio Cobos Álvarez
d168a0b49e Bug 1422538: Inline ServoElementSnapshot::AddAttrs. r=bz
MozReview-Commit-ID: FmCikbv44A5
2017-12-07 22:55:06 +01:00
Emilio Cobos Álvarez
7c35a51632 Bug 1422538: Inline ServoElementSnapshot destructor. r=bz
No point in doing a function call for a default destructor.

MozReview-Commit-ID: Ll26umYyrKL
2017-12-07 22:55:02 +01:00
Emilio Cobos Álvarez
1367a2f87f Bug 1423832: Make sure to handle gracefully rule notifications when the styleset has been detached already. r=heycam
MozReview-Commit-ID: xA8dYJX2P6

--HG--
extra : rebase_source : 18b4c491785367c9bd04604fcaf2d22f5fea1762
2017-12-07 18:53:13 +01:00
Emilio Cobos Álvarez
3125691c3f 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

--HG--
extra : rebase_source : b0384546b1430915a18536b6ee8b29a936599873
2017-12-02 21:45:33 +01:00
Dorel Luca
1208bc03a7 Merge mozilla-central to autoland r=merge on a CLOSED TREE
--HG--
extra : rebase_source : 5f22b0e83fd5f1b28e0c1ebbcc429c332835eb36
2017-12-07 00:27:29 +02:00
Sam Foster
97cfe92b81 Bug 1416044 - Add telemetry probe for if userChrome.css is loaded. r=francois,jwatt
* New USER_CHROME_CSS_LOADED histogram
* Just log a boolean to reflect if the userChrome.css was successfully loaded at profile initialization, in the parent process.

MozReview-Commit-ID: 8ffSNUot43I

--HG--
extra : rebase_source : 11f43e832449952c83cdb104c61c9c33c1aaa123
2017-11-28 12:14:02 -08:00
Gurzau Raul
f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
Nazım Can Altınova
0177b1a524 Bug 1421645 - Hide accidentally exposed subgrid behind prefs r=emilio,xidorn
It was exposed during stylo implementation but it should be behind
`layout.css.grid-template-subgrid-value.enabled` pref.

MozReview-Commit-ID: DqrU6zYgdES

--HG--
extra : rebase_source : 14859f5912faff9cf2daf9b10409114e853bab6d
2017-12-05 22:11:10 +03:00
Mats Palmgren
1025f3b9fe Bug 1422839 part 1 - Add internal overflow-clip-box-block/-inline properties and make overflow-clip-box a shorthand. r=dholbert
MozReview-Commit-ID: axoDaWnOJQ
2017-12-05 21:08:41 +01:00
Boris Chiou
570057e075 Bug 1408303 - Part 3: Move several Servo parsers into ServoCSSParser helper class. r=heycam
We have ServoCSSParser class, and I think it's better to move those
Servo FFI into this class to avoid including ServoBindings.h everywhere.

MozReview-Commit-ID: 6orXtddp9ZU

--HG--
extra : rebase_source : 6da4158c4fec606aaee49fddee3192f94d6c85a3
2017-12-01 17:35:47 +08:00
Boris Chiou
c27700de6c Bug 1408303 - Part 2: Use the Servo parser for FontFaceSet Web API. r=heycam
MozReview-Commit-ID: Os4PwogPL1

--HG--
extra : rebase_source : 058f0354bfe55b86dd05ba365e19d73c0bce4418
2017-12-05 13:51:05 +08:00
Boris Chiou
cdef5f3e01 Bug 1408303 - Part 1: Use the Servo parser for font descriptors Web API. r=heycam
MozReview-Commit-ID: J8kZUxavUGt

--HG--
extra : rebase_source : f52c567e6679d8c3ef001a891e842ffb015c0396
2017-12-05 13:48:23 +08:00
Emilio Cobos Álvarez
360e05f6eb Bug 1422641: Inline Gecko_GetSMILOverrideDeclarationBlock. r=Manishearth,xidorn
MozReview-Commit-ID: E8cM7zRZHn1
2017-12-05 14:20:26 +01:00
Emilio Cobos Álvarez
0deac30454 Bug 1422636: Inline Gecko_Namespace. r=xidorn
MozReview-Commit-ID: FFdmaYCDxnv
2017-12-05 14:20:18 +01:00
Emilio Cobos Álvarez
08252773dc Bug 1422633: Inline the Rust bits of GetDocumentState too. r=xidorn
MozReview-Commit-ID: 9zvZF72ljS
2017-12-05 14:20:11 +01:00
Mats Palmgren
feb949d1a8 Bug 752790 - Allow <input> content to overflow into the padding area in the block-axis (but not in the inline-axis). r=dholbert
MozReview-Commit-ID: FnPW6mKxWE6
2017-12-06 12:36:50 +01:00
Narcis Beleuzu
1f7fdd5826 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-06 01:49:19 +02:00
shindli
784125e422 Backed out 4 changesets (bug 1422839) for landing stylo changes on inbound r=backout a=backout
Backed out changeset ff9d1a10cb0b (bug 1422839)
Backed out changeset fc039432e4a6 (bug 1422839)
Backed out changeset 83101ef21e45 (bug 1422839)
Backed out changeset 436d10234366 (bug 1422839)

--HG--
extra : source : 3942ce38b1f62fbc3154e42281d31cbed1e81ce0
2017-12-05 17:00:33 +02:00
Cosmin Sabou
08218515b9 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-06 00:09:01 +02:00
Mats Palmgren
a6f45575c3 Bug 1422839 part 1 - Add internal overflow-clip-box-block/-inline properties and make overflow-clip-box a shorthand. r=dholbert 2017-12-04 16:25:00 +02:00
Boris Zbarsky
887ce3941a Bug 1419270 part 2. Use getter or setter specific NeedsSubjectPrincipal annotations more. r=qdot
MozReview-Commit-ID: KBwjFh3TMUg
2017-12-05 16:03:18 -05:00
Tiberius Oros
be4fc858c5 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-12-06 12:35:04 +02:00
Jonathan Watt
abe1a2a6c4 Bug 1180145, part 2 - Taint style sheet sub-resources of no-cors resources against resource timing reporting. r=heycam
MozReview-Commit-ID: 9B2qtp3FvjU
2017-11-08 16:59:31 +00:00
shindli
210abdb358 Backed out 4 changesets (bug 1422839) for landing stylo changes on inbound r=backout on a CLOSED TREE
Backed out changeset ff9d1a10cb0b (bug 1422839)
Backed out changeset fc039432e4a6 (bug 1422839)
Backed out changeset 83101ef21e45 (bug 1422839)
Backed out changeset 436d10234366 (bug 1422839)
2017-12-05 17:00:33 +02:00
Dorel Luca
bea662dd30 Merge mozilla-central to autoland r=merge
--HG--
rename : layout/reftests/webcomponents/basic-insertion-point-1-ref.html => layout/reftests/webcomponents/basic-slot-5-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-1.html => layout/reftests/webcomponents/basic-slot-5.html
rename : layout/reftests/webcomponents/basic-insertion-point-2-ref.html => layout/reftests/webcomponents/basic-slot-6-ref.html
rename : layout/reftests/webcomponents/basic-insertion-point-2.html => layout/reftests/webcomponents/basic-slot-6.html
extra : rebase_source : 483a0fb85738c5459165efca8ec6bc971e31b4c2
2017-12-04 12:49:40 +02:00
Jessica Jong
306e4bafc3 Bug 1409975 - Part 2: Include slots in the flat tree. r=smaug,emilio
We should consider slot as a parent in ChildIterator: if slot's
`assignedNodes` is not empty, use `assignedNodes`, otherwise, use direct
children as fallback content.
Also, GetFlattenedTreeParentNodeInternal should be changed to use
`assignedSlot` instead of `DestInsertionPoints`.
2017-12-04 16:06:37 +08:00
Nicholas Nethercote
3da37cfebe Bug 1421541 - Overhaul the prefs phase code. r=glandium
This code is used to detect too-early accesses of prefs in content processes.

The patch makes the following changes.

- New terminology: "early" prefs are those sent via the command line; "late"
  prefs are those sent via IPC. Previously the former were "init" prefs and the
  latter didn't have a clear name.

- The phase tracking and checking is now almost completely encapsulated within
  Preferences.cpp. The only exposure to outside code is via the
  AreAllPrefsSetInContentProcess() method, which has a single use.

- The number of states tracked drops from 5 to 3. There's no need to track the
  beginning of the pref-setting operations, because we only need to know if
  they've finished. (This also avoids the weirdness where we could transition
  from END_INIT_PREFS back to BEGIN_INIT_PREFS because of the way -intPrefs,
  -boolPrefs and -stringPrefs were parsed separately.)

MozReview-Commit-ID: IVJWiDxdsDV

--HG--
extra : rebase_source : 8cee1dcbd40847bf052ca9e2b759dd550350e5a1
2017-11-30 09:14:32 +11:00