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

13025 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 06a6d6e207 Bug 1407858 part 1. Give DOMString setter APIs clearer names. r=smaug
The renaming here is like this:

  SetStringBuffer -> SetKnownLiveStringBuffer
  SetEphemeralStringBuffer -> SetStringBuffer
  SetOwnedString -> SetKnownLiveString
  SetOwnedAtom -> SetKnownLiveAtom

This should make it clearer what the lifetime expectations are on the caller side.

MozReview-Commit-ID: ERHbB3r6paN
2017-12-22 13:02:51 -05:00
arthur.iakab b2d2b2678a Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-12-22 00:25:54 +02:00
arthur.iakab 373adc6f0d Merge Inbound to mozilla-central r=merge a=merge 2017-12-22 00:19:24 +02:00
Cameron McCormack 93b3403772 Bug 1425000 - Use a consistent window for CSP, etc. for FontFace loads. r=jfkthame
MozReview-Commit-ID: F2xhsgTBI1V

--HG--
extra : rebase_source : 4bf73e190ba4e90e1f3b828d1f8e1babf3a512c4
2017-12-21 14:07:31 -05:00
Boris Zbarsky 04324f18ad Bug 1424474 part 3. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag
MozReview-Commit-ID: IjUEG5xwn5
2017-12-20 17:43:18 -05:00
Florian Quèze 0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Neerja Pancholi 3b428a8003 Bug 1417725 - (Gecko) Add -moz-column-span alias for column-span property. r=heycam on a CLOSED TREE
MozReview-Commit-ID: G4a0UTVCw9o

--HG--
extra : amend_source : 1a26aeb6712e68375f42c15ef5623faee59c0e2e
2017-11-15 16:39:21 -08:00
Emilio Cobos Álvarez aff5090202 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
2017-12-19 11:09:59 +01:00
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
Emilio Cobos Álvarez baf57d28b5 Bug 1426312: Make sure to honor parse_method in transition and animation shorthands. r=birtles
MozReview-Commit-ID: HY3jtdSdaga
2017-12-21 20:41:36 +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
Sebastian Hengst 92ed624d10 merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : db451eb58e88563fe7709c8f4b3e69135df66253
2017-12-21 13:38:16 +02:00
Xidorn Quan e2d3edd426 Bug 1325940 part 2 - Converted NS_STYLE_BORDER_IMAGE_REPEAT_* to an enum class. r=emilio
MozReview-Commit-ID: Kdzm5D8Dpv

--HG--
extra : rebase_source : 7c6ed8d2e777c7fa07b0486147c48bd98cc477a5
2017-12-21 16:16:40 +11:00
Gajanan a3cafec7b7 Bug 1325940 part 1 - Added a constructor for nsCSSValue to accept enumerations. r=xidorn
MozReview-Commit-ID: 5Vns9QGA8c5

--HG--
extra : rebase_source : fde6132848ba0c7d5d6e21a8cb063edf2ac10b03
extra : intermediate-source : be602e750e399e19e32a6a06ea22ce090495b4b2
extra : source : 8de1423bee6b7ba9d584419650674a4d4a7ac7b0
2017-12-21 12:23:36 +11:00
Xidorn Quan bdd541a0a1 Bug 1326514 followup - Handle null prefix in namespace rule gracefully for Gecko backend.
MozReview-Commit-ID: BULWqcb33k4
2017-12-21 19:43:25 +11:00
Xidorn Quan 65122eed20 Bug 1326514 - Implement the CSSOM bits for CSSNamespaceRule. r=bz
MozReview-Commit-ID: 5UpvH4osOfn

--HG--
extra : rebase_source : 9b04b92e1c270217e068ce72e6c64884067500b7
2017-12-21 12:17:37 +11: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