Commit Graph

13777 Commits

Author SHA1 Message Date
Kristen Wright
031610cc8e Bug 1459367 - Convert NS_STYLE_IMAGELAYER_ATTACHMENT_* to enum class. r=manishearth
Converted NS_STYLE_IMAGELAYER_ATTATCHMENT_* vals to enum class, StyleImageLayerAttachment.
2018-05-08 15:05:33 -07:00
Emilio Cobos Álvarez
a5e7a3aec3 Bug 509958: Unprefix :-moz-selection. r=dbaron,xidorn
Our implementation is totally not what the spec says, but totally what other
UAs do, see https://github.com/w3c/csswg-drafts/issues/2474.

So given this is causing webcompat pain, I think we should be pragmatic and just
unprefix this.

We could keep serialization and getComputedStyle with ::selection working with a
bit more effort, like we do for :-moz-placeholder, but I'd prefer not doing at
least the serialization bit, and just alias in nsCSSPseudoElements
:-moz-selection to selection too.

MozReview-Commit-ID: 6lxctozRDqv
2018-05-10 17:19:25 +02:00
Csoregi Natalia
f034c0ab5d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 12:52:31 +03:00
Emilio Cobos Álvarez
a104536e36 Bug 1447009: Fix StyleSheet title getter to comply with the spec. r=heycam
Also to match Blink.

MozReview-Commit-ID: Lh4iLhVEUKI
2018-05-10 00:37:27 +02:00
Dan Glastonbury
ee3d63760a Bug 1457810: Move CalcComplexColor to StyleComplexColor. r=xidorn
Move from nsStyleColor::CalcComplexColor to StyleComplexColor::CalcColor.

MozReview-Commit-ID: FkYovvPZLc8

--HG--
extra : rebase_source : 54f1966e0ef9258f20e954cd6250774008eca04c
2018-05-09 17:03:02 +10:00
Hiroyuki Ikezoe
39dc128652 Bug 1320608 - Add forward declaration for nsIFrame in AnimationCollection.h. r=birtles
And drop an unnecessary forward declaration for nsIFrame from AnimationCommon.h.

MozReview-Commit-ID: IYroCrg1rtq

--HG--
extra : rebase_source : f41fc19e2cff4ef0dba26192b2f19edfb57189d6
2018-05-09 05:53:46 +09:00
Hiroyuki Ikezoe
26dd062cf9 Bug 1456679 - Enable tests in test_animations_omta.html on WebRender. r=kats
MozReview-Commit-ID: LOMQjkMYMnl

--HG--
extra : rebase_source : 6833ac484da68243f8491f2d852dc99384504a77
2018-05-08 15:59:01 +09:00
Bogdan Tara
310bfd4733 Backed out changeset 754824066ed0 (bug 1457532) for failing layout/style/test/test_value_cloning.html CLOSED TREE 2018-05-08 21:04:34 +03:00
Coroiu Cristina
f39a811db2 Merge mozilla-central to autoland a=merge on a CLOSED TREE
--HG--
rename : third_party/rust/core-foundation/.cargo-checksum.json => third_party/rust/core-foundation-0.5.1/.cargo-checksum.json
rename : third_party/rust/core-foundation/Cargo.toml => third_party/rust/core-foundation-0.5.1/Cargo.toml
rename : third_party/rust/core-foundation/src/array.rs => third_party/rust/core-foundation-0.5.1/src/array.rs
rename : third_party/rust/core-foundation/src/base.rs => third_party/rust/core-foundation-0.5.1/src/base.rs
rename : third_party/rust/core-foundation/src/bundle.rs => third_party/rust/core-foundation-0.5.1/src/bundle.rs
rename : third_party/rust/core-foundation/src/dictionary.rs => third_party/rust/core-foundation-0.5.1/src/dictionary.rs
rename : third_party/rust/core-foundation/src/filedescriptor.rs => third_party/rust/core-foundation-0.5.1/src/filedescriptor.rs
rename : third_party/rust/core-foundation/src/lib.rs => third_party/rust/core-foundation-0.5.1/src/lib.rs
rename : third_party/rust/core-foundation/src/propertylist.rs => third_party/rust/core-foundation-0.5.1/src/propertylist.rs
rename : third_party/rust/core-foundation/src/runloop.rs => third_party/rust/core-foundation-0.5.1/src/runloop.rs
rename : third_party/rust/core-foundation/src/set.rs => third_party/rust/core-foundation-0.5.1/src/set.rs
rename : third_party/rust/core-foundation/tests/use_macro_outside_crate.rs => third_party/rust/core-foundation-0.5.1/tests/use_macro_outside_crate.rs
rename : third_party/rust/core-foundation-sys/.cargo-checksum.json => third_party/rust/core-foundation-sys-0.5.1/.cargo-checksum.json
rename : third_party/rust/core-foundation-sys/Cargo.toml => third_party/rust/core-foundation-sys-0.5.1/Cargo.toml
rename : third_party/rust/core-foundation-sys/src/array.rs => third_party/rust/core-foundation-sys-0.5.1/src/array.rs
rename : third_party/rust/core-foundation-sys/src/base.rs => third_party/rust/core-foundation-sys-0.5.1/src/base.rs
rename : third_party/rust/core-foundation-sys/src/bundle.rs => third_party/rust/core-foundation-sys-0.5.1/src/bundle.rs
rename : third_party/rust/core-foundation-sys/src/data.rs => third_party/rust/core-foundation-sys-0.5.1/src/data.rs
rename : third_party/rust/core-foundation-sys/src/date.rs => third_party/rust/core-foundation-sys-0.5.1/src/date.rs
rename : third_party/rust/core-foundation-sys/src/dictionary.rs => third_party/rust/core-foundation-sys-0.5.1/src/dictionary.rs
rename : third_party/rust/core-foundation-sys/src/error.rs => third_party/rust/core-foundation-sys-0.5.1/src/error.rs
rename : third_party/rust/core-foundation-sys/src/filedescriptor.rs => third_party/rust/core-foundation-sys-0.5.1/src/filedescriptor.rs
rename : third_party/rust/core-foundation-sys/src/lib.rs => third_party/rust/core-foundation-sys-0.5.1/src/lib.rs
rename : third_party/rust/core-foundation-sys/src/messageport.rs => third_party/rust/core-foundation-sys-0.5.1/src/messageport.rs
rename : third_party/rust/core-foundation-sys/src/number.rs => third_party/rust/core-foundation-sys-0.5.1/src/number.rs
rename : third_party/rust/core-foundation-sys/src/propertylist.rs => third_party/rust/core-foundation-sys-0.5.1/src/propertylist.rs
rename : third_party/rust/core-foundation-sys/src/runloop.rs => third_party/rust/core-foundation-sys-0.5.1/src/runloop.rs
rename : third_party/rust/core-foundation-sys/src/set.rs => third_party/rust/core-foundation-sys-0.5.1/src/set.rs
rename : third_party/rust/core-foundation-sys/src/string.rs => third_party/rust/core-foundation-sys-0.5.1/src/string.rs
rename : third_party/rust/core-foundation-sys/src/timezone.rs => third_party/rust/core-foundation-sys-0.5.1/src/timezone.rs
rename : third_party/rust/core-foundation-sys/src/url.rs => third_party/rust/core-foundation-sys-0.5.1/src/url.rs
rename : third_party/rust/core-foundation-sys/src/uuid.rs => third_party/rust/core-foundation-sys-0.5.1/src/uuid.rs
rename : toolkit/mozapps/extensions/internal/UpdateRDFConverter.jsm => toolkit/mozapps/extensions/internal/RDFManifestConverter.jsm
extra : rebase_source : 82ff5278cf9bd559763cc24e3f6d87139466bfe5
2018-05-08 18:54:28 +03:00
arthur.iakab
2f2f2ffdbf Merge mozilla-central to inbound 2018-05-08 15:44:33 +03:00
Emilio Cobos Álvarez
6bb8b0c814 Bug 1459498: Make SheetLoadData constructor take enums instead of booleans. rs=heycam
MozReview-Commit-ID: H6QF4NQemAx
2018-05-08 10:09:41 +02:00
Emilio Cobos Álvarez
9509853a38 Bug 1459498: Rename nsIStyleSheetLinkingElement::StyleSheetInfo to SheetInfo. r=heycam
MozReview-Commit-ID: FeOmISAxWBk
2018-05-08 10:07:46 +02:00
Emilio Cobos Álvarez
786abfd0cc Bug 1459498: Remove a useless QI. r=heycam
MozReview-Commit-ID: FD74BpQvMih
2018-05-08 10:07:45 +02:00
Emilio Cobos Álvarez
c8b98b398b Bug 1459498: Remove useless CreateSheet arguments. r=heycam
This is one of the most important steps for bug 1459498. After this I can use
StyleSheetInfo to compute IsAlternate. Still all the preferred stylesheet stuff
is crazy...

MozReview-Commit-ID: 9ZHW9AYGoBe
2018-05-08 10:07:44 +02:00
Emilio Cobos Álvarez
91b6cb40dc Bug 1459498: Use StyleSheetInfo more. r=heycam
Not as much as I'd like, because we have all the internal loads and child
sheets, but...

MozReview-Commit-ID: 7402w8vxCel
2018-05-08 10:07:43 +02:00
Emilio Cobos Álvarez
5b6f2bdee0 Bug 1459498: Refactor nsStyleLinkElement so that all the stylesheet information comes from one place. r=heycam
I've kept the nsAutoStrings in the StyleSheetInfo class on the hopes that the
compiler does RVO, but if it doesn't I can remove I guess.

MozReview-Commit-ID: 2vN6BSEhYcw
2018-05-08 10:07:41 +02:00
Chris Peterson
71422dcaa9 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

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Brad Werth
73459dace9 Bug 1457532: Narrow ImageLoader::OnLoadComplete to only unblock onload in response to an error status on the image request. r=tnikkel
MozReview-Commit-ID: 929PTrT9iP1

--HG--
extra : rebase_source : 31fe60c655b12b12c1225ef7cb51b6d1e8fd4f7b
2018-04-27 12:00:35 -07:00
Narcis Beleuzu
f76ef214fb Merge inbound to mozilla-central. a=merge 2018-05-07 11:55:22 +03:00
Emilio Cobos Álvarez
d6f7b1d2f5 Bug 1459497: Refactor the preferred style set stuff in order to move the state away from the loader. r=heycam
The main thing to have into account is that the styleset to use is either
mLastStyleSheetSet, or mPreferredStyleSheetSet.

This last one gets set from Loader::IsAlternateSheet, which is quite nasty and
what I'm trying to remove.

MozReview-Commit-ID: BI4P1Chqtli
2018-05-07 03:55:36 +02:00
Emilio Cobos Álvarez
27ca8b58c8 Bug 1458814: Remove code that is no longer called. r=hiro
Au revoir!

MozReview-Commit-ID: DjqszUSIzXs
2018-05-05 16:31:20 +02:00
Emilio Cobos Álvarez
ceca84ff64 Bug 1458814: Remove a bit of trivially dead code. r=hiro
MozReview-Commit-ID: GG41v4TejBU
2018-05-05 16:31:19 +02:00
Emilio Cobos Álvarez
42062c43db Bug 1458814: Remove unused AnimationValue::mGecko. r=hiro
MozReview-Commit-ID: I0TJsSQYe5t
2018-05-05 16:31:18 +02:00
Emilio Cobos Álvarez
d7f92df0f2 Bug 1458814: Make SMIL values not roundtrip through strings. r=hiro
MozReview-Commit-ID: DpbFSutIv3t
2018-05-05 16:31:17 +02:00
David Major
8c93c63c1c Bug 1458365: Skip test_dont_use_document_colors.html on Windows ASan. DONTBUILD
--HG--
extra : rebase_source : 40b6ea094580c8c2cb32254224f68946948c1f27
2018-05-04 14:50:34 -04:00
Olli Pettay
ed65a2bfc8 bug 1457867, store DOMEventTargetHelper objects in global object as a linked list, r=bkelly
--HG--
extra : rebase_source : 415c03249bae1edc4313bcf15f91716a748565f9
2018-05-04 19:25:05 +03:00
Noemi Erli
6e6ddaaf1f Backed out 4 changesets (bug 1458814) for failres in builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/smil/style/anim-css-strokewidth-1-to-pct-pct.svg on a CLOSED TREE
Backed out changeset d0990dff4fc4 (bug 1458814)
Backed out changeset c61d211a9f1d (bug 1458814)
Backed out changeset e7f7ea7ab4af (bug 1458814)
Backed out changeset 9ac18a3eeaa5 (bug 1458814)
2018-05-04 08:39:52 +03:00
Emilio Cobos Álvarez
a3a9886c6b Bug 1458814: Remove code that is no longer called. r=hiro
Au revoir!

MozReview-Commit-ID: DjqszUSIzXs

--HG--
extra : rebase_source : b81bb905449eb1e4d7cbc1094da9a151011b0350
2018-05-03 18:47:47 +02:00
Emilio Cobos Álvarez
0566c42687 Bug 1458814: Remove a bit of trivially dead code. r=hiro
MozReview-Commit-ID: GG41v4TejBU

--HG--
extra : rebase_source : 5dc1f255178ae723eed47ec3fdbd6595fa84da62
2018-05-03 18:41:17 +02:00
Emilio Cobos Álvarez
bac4dc505c Bug 1458814: Remove unused AnimationValue::mGecko. r=hiro
MozReview-Commit-ID: I0TJsSQYe5t

--HG--
extra : rebase_source : 344bef12b086f61327e9c745d1a02adcd32e2a38
2018-05-03 18:31:54 +02:00
Emilio Cobos Álvarez
d97d041be2 Bug 1458814: Make SMIL values not roundtrip through strings. r=hiro
MozReview-Commit-ID: DpbFSutIv3t

--HG--
extra : rebase_source : 034bb584fcb3f6b67a6b38f70149e167ba0c300c
2018-05-03 18:27:44 +02:00
Emilio Cobos Álvarez
825625678d Bug 1458928: Remove GetCSSParsingEnvironment. r=xidorn
MozReview-Commit-ID: KXGM7JiUZAt

--HG--
extra : rebase_source : 7a3223488e13ddd453298b8f74e9c07a12bf0044
2018-05-03 17:41:48 +02:00
Xidorn Quan
1d799f9bea Bug 1454591 part 6 - Remove CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND. r=heycam
MozReview-Commit-ID: RoKvxNSSdo

--HG--
extra : rebase_source : 73dc88397673c8a72b73bf639392df4b9efb3e90
2018-05-04 15:20:58 +10:00
Xidorn Quan
48dc9dc70a Bug 1454591 part 5 - Generate subproperty lists from Servo data. r=heycam
I manually diffed the generated lists and the original ones from in
nsCSSProps.cpp. All generated lists seem to contain the same set of
subproperties as their old correspondents.

There are still some differences:

Order of subproperties of many shorthands is changed. There are many
comments in the old lists stating that the order is important, but they
are mostly for serialization. I auditted all users of the subproperty
lists, and it doesn't seem to me any of them relies on the order.

gOutlineRadiusSubpropTable is renamed to gMozOutlineRadiusSubpropTable
which I don't think is a problem at all, but maybe worth mentioning.

MozReview-Commit-ID: 190SBZfxVOW

--HG--
extra : rebase_source : cd5e8b1667a4550542c361d31361e45456c6b6a3
2018-05-04 15:17:05 +10:00
Xidorn Quan
bd99a99f09 Bug 1454591 part 2 - Refactor GenerateCSSPropsGenerated.py. r=heycam
This removes the extra template file and uses the script to generate
the whole nsCSSPropsGenerated.inc file directly, because it doesn't
seem to really make much sense to have them separate.

One behavior change to this refactor is that, the static assertions
no longer include aliases. Other parts of the generated data all ignore
aliases, so checking property id of aliases isn't really useful. It
makes the code simpler everywhere to just strip aliases from the list
at the very beginning.

MozReview-Commit-ID: BYYvnCOqJwC

--HG--
extra : rebase_source : d683f2dd54e38c6b580435568820c8bc3f52cd70
2018-05-04 14:37:41 +10:00
Xidorn Quan
7db648bdec Bug 1454591 part 1 - Generate more structured data in ServoCSSPropList.py. r=heycam
This patch changes ServoCSSPropList.py to use classes for properties.
This allows extending the data in the file without needing to update all
users of this file.

Sorting in GenerateCSSPropsGenerated.py is removed because the data file
has the right order already.

MozReview-Commit-ID: D74bItCfpPH

--HG--
extra : rebase_source : e0138c255f77515f491496fcb8680686362f4e9e
2018-05-04 13:44:51 +10:00
Gurzau Raul
30662c7545 Merge inbound to mozilla-central. a=merge 2018-05-03 00:04:54 +03:00
Cosmin Sabou
a1f7ce21a9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-02 18:07:21 +03:00
Emilio Cobos Álvarez
e7d5158b29 Bug 1458458: Move setting SMIL override values into nsDOMCSSAttrDeclaration. r=hiro
MozReview-Commit-ID: KkXGtl6vz2L
2018-05-02 18:09:05 +02:00
Emilio Cobos Álvarez
45a1c9c1db Bug 1458458: Minor nsDOMCSSAttrDeclaration cleanup. r=hiro
MozReview-Commit-ID: LA249WzjZ5n
2018-05-02 18:08:57 +02:00
Emilio Cobos Álvarez
fbc8297c7c Bug 1458458: Remove dead code from nsDOMCSSAttributeDeclaration. r=hiro
MozReview-Commit-ID: 67r8s3zDZMA
2018-05-02 18:05:13 +02:00
Emilio Cobos Álvarez
9b13f54912 Bug 1457920: Loader::ParseSheet is not really fallible. r=xidorn
MozReview-Commit-ID: IexX1RRCuF4
2018-05-02 04:13:34 +02:00
Emilio Cobos Álvarez
a62beaa09b Bug 1457920: Cleanup a useless argument in Loader. r=xidorn
MozReview-Commit-ID: HajaHl6JEV8
2018-05-02 04:13:32 +02:00
Emilio Cobos Álvarez
9b0a6feb0a Bug 1457920: Trivially inline a bunch of methods that had no reason for not being inlined. r=xidorn
MozReview-Commit-ID: EgcfUwwpZrB
2018-05-02 04:13:30 +02:00
Emilio Cobos Álvarez
30faf7ea5d Bug 1457920: Remove ServoStyleSheet.{h,cpp}. r=xidorn
MozReview-Commit-ID: 1T39DoLUBZk
2018-05-02 04:13:28 +02:00
Emilio Cobos Álvarez
c556ec7ad0 Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez
b82b71f57d Bug 1457920: Move stuff from ServoStyleSheet.cpp to StyleSheet.cpp. r=xidorn
MozReview-Commit-ID: 3Tu27mWxWGB
2018-05-02 04:13:24 +02:00
Emilio Cobos Álvarez
bf64474d79 Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Emilio Cobos Álvarez
5cb9f4328b Bug 1457920: Remove DidDirty. r=xidorn
MozReview-Commit-ID: 54sVDiRkLze
2018-05-02 04:13:16 +02:00
Emilio Cobos Álvarez
12807e8c1f Bug 1457920: Remove EnabledStateChanged. r=xidorn
MozReview-Commit-ID: DXSw93Q2vvK
2018-05-02 04:13:13 +02:00