Dorel Luca
0d2ff9e60d
Merge mozilla-inbound to mozilla-central. a=merge
2018-05-16 00:54:22 +03:00
Emilio Cobos Álvarez
cb56e2c9f3
Bug 1459529: Remove UPDATE_STYLE. r=heycam
...
Now that BeginUpdate is useless for the UPDATE_STYLE case, we don't need the
update mechanism at all. Just ensure that ApplicableStylesChanged is called on
the pres shell via the relevant RuleChanged, etc. notifications.
There's a big hidden gotcha here. nsIDocument::BeginUpdate does put a script
blocker on the stack for these updates. However it's not needed, since no script
can run during these notifications (only the stylesheet events we post for
devtools, but those use AsyncEventDispatcher and PostDOMEvents, so they don't
try to run immediately).
nsIDocument::BeginUpdate also does XBL binding attached queue stuff, but we
can't change bindings during these notifications anyway, so it also doesn't
matter.
MozReview-Commit-ID: HJvK6zQfloh
2018-05-15 18:44:29 +02:00
Emilio Cobos Álvarez
00ee40fe4c
Bug 1459529: Remove ServoStyleSet::{Begin,End}Update. r=heycam
...
They're empty, and make PresShell::BeginUpdate useless. Now we don't have
document observers that listen for these anymore.
MozReview-Commit-ID: GpDDNonFUFC
2018-05-15 18:44:26 +02:00
Emilio Cobos Álvarez
2054320f28
Bug 1459529: Make sheets be associated to a shadow root too potentially. r=bz
...
MozReview-Commit-ID: Cd8xJuLRY5w
2018-05-15 18:44:25 +02:00
Emilio Cobos Álvarez
a6a7ba02de
Bug 1461288: Distinguish between specified and computed URLs. r=xidorn
...
This is needed to serialize computed URLs correctly from getComputedStyle.
MozReview-Commit-ID: 9wakhqNrszb
--HG--
extra : rebase_source : 7d120ac0917a5e13de4e52b7dfa0d784495fd8f7
2018-05-14 12:29:40 +02:00
bobslept
705b29c214
Bug 1459111 - Rename ServoCSSParsingEnvironment to ParsingEnvironment. r=emilio
...
MozReview-Commit-ID: Jl5aoarH0aU
2018-05-14 20:20:20 +02:00
Brindusan Cristian
6c56b182d4
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-05-12 12:51:43 +03:00
Emilio Cobos Álvarez
5aab8db970
Bug 1408301: Remove getPropertyCSSValue. r=bz
...
It's been removed for a while on Nightly without any known regressions. This
gives us a full beta cycle of telemetry and two nightly cycles without the API
before shipping.
This only removes the API, followup work will replace serialization by Servo's,
and remove the remaining DOM interfaces.
MozReview-Commit-ID: 2m1taYg5xEr
2018-05-12 11:23:47 +02:00
Jonathan Watt
4753528362
Bug 1447039 - Stop using getPropertyCSSValue in test files. r=emilio
...
MozReview-Commit-ID: GjsNPBZmje0
2018-05-12 11:23:30 +02:00
Emilio Cobos Álvarez
f78be9e725
Bug 1460655: Support x as a resolution unit. r=xidorn
...
MozReview-Commit-ID: TjU0FLCLMN
--HG--
extra : rebase_source : 63da5bdd570587f82b370e8819d9e0fc7220e9c2
2018-05-10 18:11:52 +02:00
Margareta Eliza Balazs
4f9a2ba08e
Merge inbound to mozilla-central. a=merge
2018-05-11 12:36:02 +03:00
Brian Birtles
3c006b6e4c
Bug 1456394 - Use updateTiming() in animation tests; r=hiro
...
We will remove animation.effect.timing in the next patch.
MozReview-Commit-ID: EyeFNM81NbN
--HG--
extra : rebase_source : 9fe5eb0e5d141ffffa017db255328c742a059611
2018-05-07 12:58:37 +09:00
Brian Birtles
f8c518344a
Bug 1456394 - Rename AnimationEffectReadOnly to AnimationEffect; r=bz,hiro
...
MozReview-Commit-ID: 8jzJiCWt5vs
--HG--
rename : dom/animation/AnimationEffectReadOnly.cpp => dom/animation/AnimationEffect.cpp
rename : dom/animation/AnimationEffectReadOnly.h => dom/animation/AnimationEffect.h
rename : dom/webidl/AnimationEffectReadOnly.webidl => dom/webidl/AnimationEffect.webidl
extra : rebase_source : 2bd6490fe9be47cfb760bda81a63c33ba0b0397d
2018-05-07 11:15:16 +09:00
Brian Birtles
3184f30162
Bug 1456394 - Merge KeyframeEffectReadOnly and KeyframeEffect; r=bz,hiro
...
MozReview-Commit-ID: FvTMGjxfRXk
--HG--
extra : rebase_source : 8f7fd0903c9ca2f545dce2633eb797345a7517f8
2018-05-07 11:08:59 +09:00
Brian Birtles
9622b88217
Bug 1456394 - Rename KeyframeEffectReadOnly.{h,cpp} to KeyframeEffect.{h,cpp}; r=bz,hiro
...
MozReview-Commit-ID: 5Q7oQV8vmgS
--HG--
rename : dom/animation/KeyframeEffectReadOnly.cpp => dom/animation/KeyframeEffect.cpp
rename : dom/animation/KeyframeEffectReadOnly.h => dom/animation/KeyframeEffect.h
extra : rebase_source : cdc8448e7d07376691ef9187f7d6f4424800b690
2018-05-07 11:07:06 +09:00
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