Jonathan Kew
8489323f79
Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt
2018-04-25 07:18:23 +01:00
Jonathan Kew
6ca182d055
Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt
2018-04-25 07:18:23 +01:00
Hiroyuki Ikezoe
2cc7ec0f68
Bug 1455999 - Enable animation tests on WebRender. r=kats
...
MozReview-Commit-ID: xtQbHwAHXT
--HG--
extra : rebase_source : 435fc55c368e0a059175c927d192c768e863c745
2018-04-24 15:25:52 +09:00
Narcis Beleuzu
a07765b336
Backed out 20 changesets (bug 1265342) for mochitest-plain-headless failures on layout/style/test/test_first_letter_restrictions.html. CLOSED TREE
...
Backed out changeset 6c80ec2d0398 (bug 1265342)
Backed out changeset 62d571916086 (bug 1265342)
Backed out changeset fd247f38f8a7 (bug 1265342)
Backed out changeset 83aee3dafe4b (bug 1265342)
Backed out changeset 9b200122014e (bug 1265342)
Backed out changeset a90aa063b2fd (bug 1265342)
Backed out changeset 0791ff3d9194 (bug 1265342)
Backed out changeset 7109288f10b3 (bug 1265342)
Backed out changeset 048cce2fb99f (bug 1265342)
Backed out changeset c8e3dbc6c729 (bug 1265342)
Backed out changeset 09da0968333a (bug 1265342)
Backed out changeset d16f7ff85677 (bug 1265342)
Backed out changeset 53eb7f14463d (bug 1265342)
Backed out changeset 64fc631ef122 (bug 1265342)
Backed out changeset 332382c708e1 (bug 1265342)
Backed out changeset a8695981eec0 (bug 1265342)
Backed out changeset ce473fa5f1f4 (bug 1265342)
Backed out changeset 5ee470e75a53 (bug 1265342)
Backed out changeset 802aa95a52d9 (bug 1265342)
Backed out changeset 5da0c34c9600 (bug 1265342)
2018-04-24 22:31:15 +03:00
Brad Werth
ab7e20d492
Bug 1265342 Part 1: Add shape-margin to style system (Gecko bindings). r=xidorn
...
MozReview-Commit-ID: 3G0ZpWDrumg
--HG--
extra : rebase_source : da38e002a62212757adf276413aebbf58aa7d9b6
2018-02-07 17:27:04 -08:00
Brad Werth
1775ae9b01
Bug 1265342 Part 1: Add shape-margin to style system (Gecko bindings). r=xidorn
...
MozReview-Commit-ID: 3G0ZpWDrumg
--HG--
extra : rebase_source : 0ee64b119305664202ee63072638a97523e9f24e
2018-02-07 17:27:04 -08:00
Mats Palmgren
8e30369644
Bug 1398482 part 2 - [css-grid][css-flexbox][css-multicol] Add 'row-gap' and 'gap' properties; make 'grid-[column|row]-gap' and 'grid-gap' alias the respective unprefixed properties (Gecko part). r=dholbert
2018-04-24 01:52:51 +02:00
Hiroyuki Ikezoe
eb89e1cf7f
Bug 1458414 - Enable test_animation_omta.html on WebRender. r=kats
...
But some test cases are skipped, they will be enabled in bug 1456679.
MozReview-Commit-ID: HLxPjkf6KjY
--HG--
extra : rebase_source : 55c24d34a53423a921060a431ac941b068407eb9
2018-05-02 12:15:05 +09:00
Hiroyuki Ikezoe
cf85419201
Bug 1458414 - Enable animation tests on WebRender. r=kats
...
With the previous commit, most of test cases now can pass on WebRender since
we no longer get incorrect information for the animation that should have already
discarded.
MozReview-Commit-ID: 30I2qpiWysy
--HG--
extra : rebase_source : a67e5eaa0a2467087774d1c2f1f943bb0c784c88
2018-05-02 12:15:02 +09:00
Boris Zbarsky
5956959873
Bug 1455807. Align MediaList idl bits a bit better with the CSSOM draft. r=heycam
...
MozReview-Commit-ID: GdPASJilQXC
2018-04-23 12:36:10 -04:00
Emilio Cobos Álvarez
97df4f2a87
Bug 1454883: Let inspector know that font-stretch supports percentages. r=xidorn
...
MozReview-Commit-ID: 3gGZ4AX5eVO
2018-04-23 18:22:17 +02:00
Emilio Cobos Álvarez
46c5356b75
Bug 1454883: Fix animation tests to account for font-stretch animating as percentage. r=hiro
...
MozReview-Commit-ID: KPXUJSI930X
2018-04-23 18:22:14 +02:00
Jonathan Watt
156c4af1ec
Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
...
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>
MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Emilio Cobos Álvarez
4c83f165d9
Bug 1454747: Assert more tightly about StyleNewChildRange. r=bz
...
After bug 1303605 we can assert this, since we make sure all children have the
same flattened tree parent, and thus insertion point.
MozReview-Commit-ID: 7AHuGGw2uJI
2018-04-23 11:38:38 +02:00
Nathan Froyd
2d58b9d7fb
Bug 1455178 - avoid static constructors for atom initialization; r=njn
...
For reasons unknown, if you give MSVC:
// Foo.h
struct Foo
{
...
};
extern const Foo gFoo;
// Foo.cpp, which necessarily includes Foo.h.
extern constexpr Foo gFoo = {
};
MSVC will create a static initializer for gFoo and place it in the
read/write data section, rather than the read-only data section.
Removing the `extern const` declaration seems to be enough to make this
problem go away. We need to adjust the declaration of other variables
to compensate for the non-visibility of gFoo in the header file.
2018-04-22 16:53:22 -04:00
Emilio Cobos Álvarez
5d21d26790
Bug 1411008: Add crashtest. r=me
...
MozReview-Commit-ID: CbhZXAORyoV
2018-04-21 19:28:32 +02:00
Emilio Cobos Álvarez
f790d1c4cb
Bug 1455492: While here, fix refcount churn. r=bholley
...
MozReview-Commit-ID: 88jzsn25e53
2018-04-21 12:08:44 +02:00
Emilio Cobos Álvarez
1c74b688f7
Bug 1455492: Remove redundant ParseSheet arguments. r=bholley
...
For the async caller, pretty much everything can be extracted out of the loader
/ loadData.
For the sync callers, we need to be a bit more careful because ReparseSheet
tries to get its line number on its own.
I changed the compat mode passed to the reparse stuff to be the document's one
in this case, but that seems a bug fix.
MozReview-Commit-ID: 2wi5HPRAlPi
2018-04-21 12:08:44 +02:00
Dorel Luca
65669dae30
Merge mozilla-inbound to mozilla-central. a=merge
2018-04-21 02:00:04 +03:00
Xidorn Quan
348e4616cd
Bug 1448757
part 3 - Remove nsDOMWindowUtils::GetAnimationTypeForLonghand and nsStyleAnimType. r=hiro
...
MozReview-Commit-ID: 8KsNSaDfsbN
--HG--
extra : rebase_source : 914d158d2ab227d725cd6c3d9a9b22cfe54690b6
2018-04-20 14:38:46 +10:00
Xidorn Quan
7d88e1a5e5
Bug 1454830 part 4 - Remove CSS_PROPERTY_VALUE_LIST_USES_COMMAS flag. r=emilio
...
MozReview-Commit-ID: 48CxJTdtku7
--HG--
extra : rebase_source : af74c965da82557c524b3b14c0a4130fd525605a
2018-04-20 20:38:12 +10:00
Xidorn Quan
abfdb524a5
Bug 1454830 part 3 - Add CAN_ANIMATE_ON_COMPOSITOR in Servo side and propagate it to ServoCSSPropList.h. r=emilio
...
MozReview-Commit-ID: 2OBCliDY02g
--HG--
extra : rebase_source : 0b292c07ef89c472cfeb7834df83a574641a4c18
2018-04-20 20:32:57 +10:00
Xidorn Quan
3f0e7b7d9e
Bug 1454830 part 2 - Add GETCS_NEEDS_LAYOUT_FLUSH flag in Servo side and propagate it to ServoCSSPropList.h. r=emilio
...
MozReview-Commit-ID: 5k08FWjobCg
--HG--
extra : rebase_source : fdfe0e83fc3e905a420cb877b27179ed58aa1622
2018-04-20 19:13:16 +10:00
Xidorn Quan
6c831e377a
Bug 1454830 part 1 - Adjust GETCS_NEEDS_LAYOUT_FLUSH flag in nsCSSPropList.h. r=emilio
...
margin-inline-{end,start} should have this flag because their
corresponding physical properties have this flag, as well as their
equivalents in the block direction.
{max,min}-{block,inline}-size should not have this flag, because their
corresponding physical properties don't have it, so they shouldn't need
it either.
rotate and scale have nothing to do with the frame at all, so they don't
need layout flush. Note that transform and translate need layout flush
because they need to resolve percentage to length.
MozReview-Commit-ID: BcnnOGJIOwO
--HG--
extra : rebase_source : 6a15fbdd6596d86cb0ab81e77a8000976a967ae2
2018-04-20 19:10:55 +10:00
Gurzau Raul
07f0f6b5b4
Backed out changeset 67b2c258a4d4 (bug 1454747) for failures on nsCSSFrameConstructor.cpp:7031 on a CLOSED TREE
2018-04-20 12:52:03 +03:00
Emilio Cobos Álvarez
de4f346535
Bug 1454747: Assert more tightly about StyleNewChildRange. r=bz
...
After bug 1303605 we can assert this, since we make sure all children have the
same flattened tree parent, and thus insertion point.
MozReview-Commit-ID: 7AHuGGw2uJI
--HG--
extra : rebase_source : dc6133e36f9810082fb3eaeb479d82ab564b5b81
2018-04-17 21:17:44 +02:00
Emilio Cobos Álvarez
3e3d930acb
Bug 1455108: Don't reparent first-line stuff in display: none subtrees. r=heycam
...
We may no longer know what the right parent style is, and it's not like it
matters anyway, the frame tree under us is dead, including placeholders and such
holding from us.
MozReview-Commit-ID: 1RHTwvKy0zQ
--HG--
extra : rebase_source : 26e9d393d8edc0f068736cfa1cf1cf630e8d55fa
2018-04-19 18:18:35 +02:00
Cosmin Sabou
a024f6e7c8
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-20 06:50:57 +03:00
Cosmin Sabou
dcacfcfc71
Backed out 2 changesets (bug 1454598) as requested by Mossop in developers channel. a=backout
...
Backed out changeset b673e87d6134 (bug 1454598)
Backed out changeset 072dc1504ce6 (bug 1454598)
2018-04-20 06:45:39 +03:00
Cosmin Sabou
4595d43d3a
Merge inbound to mozilla-central. a=merge
...
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
James Teh
a0c54786f9
Bug 1454572: nsComputedDOMStyle: Don't crash when used on a detached pseudo-element. r=emilio,xidorn:emilio
...
This shouldn't normally happen, but it does in some rare cases; e.g. if an accessibility client queries info for a node that is being removed.
MozReview-Commit-ID: 3nac9ITN66f
--HG--
extra : rebase_source : 238ffc5b14589c91f30f9f0c7d3c23a82914aad3
2018-04-19 15:53:25 +10:00
Xidorn Quan
436522b308
Bug 1454831 followup - Fix bustage on a CLOSED TREE.
2018-04-19 21:08:09 +10:00
Xidorn Quan
e723f6b291
Bug 1454831 - Generate nsCSSPropertyID.h from data file directly. r=emilio
...
MozReview-Commit-ID: CcX2uzgjWFo
--HG--
rename : layout/style/nsCSSPropertyID.h => layout/style/nsCSSPropertyID.h.in
extra : rebase_source : 441f22dbe019f6ebc879fd21c0dc3d0f6f9cb63a
2018-04-18 19:39:51 +10:00
Noemi Erli
7e6ef531b7
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-19 12:58:43 +03:00
Noemi Erli
875e5ed0a1
Merge inbound to mozilla-central. a=merge
2018-04-19 12:53:30 +03:00
Xidorn Quan
e3471c9169
Bug 1452542 part 7 - Replace some uses of nsCSSPropList.h and nsCSSPropAliasList.h with ServoCSSPropList.h. r=emilio
...
MozReview-Commit-ID: 5TVYITjAYy7
--HG--
extra : rebase_source : a45a6b42a9847e6f2437e23dd841aafea12f647c
2018-04-17 16:57:04 +10:00
Xidorn Quan
a8cc0738f6
Bug 1452542 part 6 - Replace uses of PythonCSSProps.h with the data file generated from Servo. r=froydnj
...
Some content in Makefile.in is removed because after this change, the
scripts no longer invoke the preprocessor and thus don't have unknown
dependencies anymore outside what is provided in their inputs array.
The order of exports.PREFERENCES in properties-db changes because the
data file has shorthands placed after longhands. The only usage of it
is in test_css-properties-db.js which doesn't care about the order.
MozReview-Commit-ID: AMjzTRf2HYN
--HG--
extra : rebase_source : 7976e48e7c7bba467d77a34ab0d7709cde1ecdf4
2018-04-17 14:40:12 +10:00
Xidorn Quan
113e4d2010
Bug 1452542 part 5 - Generate property list from Servo data. r=emilio,froydnj
...
With this change, we first generate a data file ServoCSSPropList.py from
Servo data, and then use this data to generate ServoCSSPropList.h.
This change itself serves as a checkpoint with a runtime check that all
information generated from Servo side matches what we have in the Gecko
side. Following patches will start replacing uses of nsCSSPropList.h
with either the data file or the header file.
The reason that it generates data file rather than header directly is
that, many users of PythonCSSProps.h invokes C++ preprocessor manually
to extract data from nsCSSPropList.h without passing in search paths,
so it is non-trivial to replace the use of nsCSSPropList.h there with
a generated header. Generating a Python data file would hopefully
simplify those users rather than adding more complexity to them.
I also thought about generating JSON rather than plain Python file, but
JSON doesn't allow trailing comma in array, which makes it less pretty
to generate via mako template.
MozReview-Commit-ID: CwK2oL88r6F
--HG--
extra : rebase_source : aaf98cfd768740fdd6ac4961fc825d84adaf94a5
2018-04-16 14:08:20 +10:00
Xidorn Quan
b894981f8f
Bug 1452542 part 4 - Have ENABLED_IN flags in nsCSSPropList.h match those in Servo side. r=emilio
...
MozReview-Commit-ID: 48t5u1D5rZX
--HG--
extra : rebase_source : fe407e60ecc565f14e2d8568f04f80bfbd7e78c1
2018-04-11 13:46:08 +10:00
Xidorn Quan
08af381c61
Bug 1452542 part 3 - Use snake_case naming for nsCSSPropertyID of alias as well. r=emilio
...
MozReview-Commit-ID: 242ms8wBDIU
--HG--
extra : rebase_source : 9b87b6fb4f8c95221ffcc6ee363ef138910f518b
2018-04-11 13:44:30 +10:00
Xidorn Quan
2eb6a2b317
Bug 1452542 part 2 - Sort nsCSSPropAliasList.h in alphabetic order so that we can list them in Servo side. r=dholbert,emilio
...
MozReview-Commit-ID: GmrjJHI8fqw
--HG--
extra : rebase_source : 4338bf73bd1b1da15324bf5687d418e087bda0c4
2018-04-11 13:42:13 +10:00
Xidorn Quan
3cffe7cfeb
Bug 1452542 part 1 - Fix the order in nsCSSPropList.h. r=emilio
...
MozReview-Commit-ID: GnzDsJb7KlB
--HG--
extra : rebase_source : c5cad8adf0e866c334a0921904fefd41bb0126ac
2018-04-11 13:38:44 +10:00
Bobby Holley
38a23e8931
Bug 1346988 - Parse sheets on the thread pool. r=bz,r=emilio
...
Note that we also drop the dead optional aReusableSheets argument from
the async parsing path, since it was always null.
MozReview-Commit-ID: KddpGFdaqEe
2018-04-18 13:52:57 -07:00
Andreea Pavel
1b610a02c9
Backed out 7 changesets (bug 1452542) for failing toolkit/content/tests/chrome/test_arrowpanel.xul on a CLOSED TREE
...
Backed out changeset f206acff283f (bug 1452542)
Backed out changeset be97e652391f (bug 1452542)
Backed out changeset 4d3a028edaed (bug 1452542)
Backed out changeset 5619bba37cdd (bug 1452542)
Backed out changeset e83a797bdc61 (bug 1452542)
Backed out changeset 255e2feff19f (bug 1452542)
Backed out changeset fac55b1a0706 (bug 1452542)
2018-04-18 20:10:35 +03:00
Xidorn Quan
018214f00b
Bug 1452542 part 7 - Replace some uses of nsCSSPropList.h and nsCSSPropAliasList.h with ServoCSSPropList.h. r=emilio
...
MozReview-Commit-ID: 5TVYITjAYy7
--HG--
extra : rebase_source : 66b132aed72fa58ba8be1fa7aacd1c9035845458
2018-04-17 16:57:04 +10:00
Xidorn Quan
ddcc60ec27
Bug 1452542 part 6 - Replace uses of PythonCSSProps.h with the data file generated from Servo. r=froydnj
...
Some content in Makefile.in is removed because after this change, the
scripts no longer invoke the preprocessor and thus don't have unknown
dependencies anymore outside what is provided in their inputs array.
The order of exports.PREFERENCES in properties-db changes because the
data file has shorthands placed after longhands. The only usage of it
is in test_css-properties-db.js which doesn't care about the order.
MozReview-Commit-ID: AMjzTRf2HYN
--HG--
extra : rebase_source : f9db0659a81bea28b335806ac70e23dc0d36e493
2018-04-17 14:40:12 +10:00
Xidorn Quan
4eca80828d
Bug 1452542 part 5 - Generate property list from Servo data. r=emilio,froydnj
...
With this change, we first generate a data file ServoCSSPropList.py from
Servo data, and then use this data to generate ServoCSSPropList.h.
This change itself serves as a checkpoint with a runtime check that all
information generated from Servo side matches what we have in the Gecko
side. Following patches will start replacing uses of nsCSSPropList.h
with either the data file or the header file.
The reason that it generates data file rather than header directly is
that, many users of PythonCSSProps.h invokes C++ preprocessor manually
to extract data from nsCSSPropList.h without passing in search paths,
so it is non-trivial to replace the use of nsCSSPropList.h there with
a generated header. Generating a Python data file would hopefully
simplify those users rather than adding more complexity to them.
I also thought about generating JSON rather than plain Python file, but
JSON doesn't allow trailing comma in array, which makes it less pretty
to generate via mako template.
MozReview-Commit-ID: CwK2oL88r6F
--HG--
extra : rebase_source : 926cca8548d42ecb0dd364ea5c52a46a4973e819
2018-04-16 14:08:20 +10:00
Xidorn Quan
77184169de
Bug 1452542 part 4 - Have ENABLED_IN flags in nsCSSPropList.h match those in Servo side. r=emilio
...
MozReview-Commit-ID: 48t5u1D5rZX
--HG--
extra : rebase_source : 2040c6eb9bef18f39c591ddf364e0b7a9d948996
2018-04-11 13:46:08 +10:00
Xidorn Quan
2b130b95d1
Bug 1452542 part 3 - Use snake_case naming for nsCSSPropertyID of alias as well. r=emilio
...
MozReview-Commit-ID: 242ms8wBDIU
--HG--
extra : rebase_source : 548378fc6c8380bf5ca0ecb68e9b7bd624f77236
2018-04-11 13:44:30 +10:00
Xidorn Quan
ca68696433
Bug 1452542 part 2 - Sort nsCSSPropAliasList.h in alphabetic order so that we can list them in Servo side. r=dholbert,emilio
...
MozReview-Commit-ID: GmrjJHI8fqw
--HG--
extra : rebase_source : 1a1100eae07fc35118323766fc7aa00eb64f7317
2018-04-11 13:42:13 +10:00
Xidorn Quan
5ae4ee5e04
Bug 1452542 part 1 - Fix the order in nsCSSPropList.h. r=emilio
...
MozReview-Commit-ID: GnzDsJb7KlB
--HG--
extra : rebase_source : a976749cafa2011f4121d51c6ac39bf93c487da4
2018-04-11 13:38:44 +10:00
Bobby Holley
3f98737f56
Bug 1454460 - Hoist SRI helper into Loader.cpp. r=bz
...
MozReview-Commit-ID: 2wgVAJDgHDl
2018-04-17 16:27:09 -07:00
Bobby Holley
9cff749db5
Bug 1454460 - Pass a bonafide nsACString to Servo. r=bz
...
This will allow the Rust code hold a copy-free strong reference to the string
past callstack unwind.
MozReview-Commit-ID: HCop9h2abZU
2018-04-17 16:27:08 -07:00
Bobby Holley
055086766b
Bug 1454460 - Buffer the potentially-BOM-related bytes separately and handle them on the fly. r=bz
...
MozReview-Commit-ID: 5zrKyadBppO
2018-04-17 16:27:08 -07:00
Csoregi Natalia
12a8bddd95
Merge inbound to mozilla-central. a=merge
2018-04-18 00:52:25 +03:00
Brad Werth
ab42af0fc5
Bug 1451196: Disable the intermittent part of test layout/style/test/test_shape_outside_CORS.html. r=dholbert
...
MozReview-Commit-ID: GQbQ0HQFlJX
--HG--
extra : rebase_source : b940dff3c84a47e98526714f90c61a76f04c833c
2018-04-17 09:16:32 -07:00
Jonathan Kew
6f1e2a29b3
Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt
2018-04-19 13:28:13 +01:00
Emilio Cobos Álvarez
7b41eaf443
Bug 1454596: Update font-weight property and descriptor to css-fonts-4. r=xidorn
...
Need to change the tests still, but that should be trivial.
MozReview-Commit-ID: 27aS2UrgXjs
2018-04-19 12:49:37 +02:00
Xidorn Quan
17bc121eff
Bug 1453258 - Support calc in cursor. r=emilio
...
MozReview-Commit-ID: 1ZzxkYboWZg
--HG--
extra : rebase_source : 075d3e504dcfc0ba6df4110db79c8769de5a4df7
2018-04-17 21:18:37 +10:00
Brindusan Cristian
667fae7dc8
Merge inbound to mozilla-central. a=merge
2018-04-17 12:53:33 +03:00
Xidorn Quan
fdb9d8b7d8
Bug 1454528 - Remove trailing underscore of float ident. r=heycam
...
MozReview-Commit-ID: DN7rQu3adSB
--HG--
extra : rebase_source : c0fb1df20a6612a96abb1e6a74fde61b6ee870f8
2018-04-17 11:07:57 +10:00
shindli
805cb19c1d
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-17 01:45:58 +03:00
Jonathan Kew
7b924dade9
Bug 1436048 part 2 - Store FontWeight as a fixed-point value to support fractional font-weight values. r=jwatt
2018-04-16 20:26:08 +01:00
Boris Zbarsky
ecac16fefa
Bug 1453339. Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-13 19:31:42 -04:00
Jonathan Kew
94238d9823
Bug 1452973 - Update NS_FONT_STRETCH_* constants to values based on the percentage definitions in css fonts 4. r=jwatt
2018-04-16 10:00:57 +01:00
Emilio Cobos Álvarez
7bce4fa96c
Bug 37468: followup: Cleanup line terminators. r=me
...
DONTBUILD, since it's whitespace-only.
MozReview-Commit-ID: D61WzJbTgXZ
2018-04-15 14:24:25 +02:00
Bobby Holley
c67597649b
Bug 1454030 - Stop asserting main thread when looking up CSS keywords. r=emilio
...
MozReview-Commit-ID: 2BolVJXz8pz
2018-04-16 15:15:43 -07:00
Xidorn Quan
2186981cee
Bug 1454299 - Remove ServoPropPrefList.h. r=emilio
...
MozReview-Commit-ID: 5wbFNahv4BW
--HG--
extra : rebase_source : 709d7e7ac2dabc6afa70c2441bb22a5544e69a4c
extra : source : 6521d2b9db63bed2386792ba33b45e083bdb6360
2018-04-16 18:59:23 +10:00
Xidorn Quan
9b466fa2d1
Bug 1454297 - Remove CSS_PROP_LOGICAL and friends. r=emilio
...
MozReview-Commit-ID: Euzbjf9qkmO
--HG--
extra : rebase_source : 9b76e8b303d89f65e28ced8cb15b7422f6d31775
2018-04-16 16:23:33 +10:00
Emilio Cobos Álvarez
cbdd3db954
Bug 1454140: Invalid URLs with ref also exist. r=heycam
...
MozReview-Commit-ID: HsH3ERcTeLm
--HG--
extra : rebase_source : 0cac89785ba837bbbe1a56e5d7b217e98f0996bb
2018-04-14 17:24:45 +02:00
Kerem Kat
97ece751a4
Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn
...
--HG--
extra : source : bd0a3fdb037c308ae7eab0be3c68d00fcb9b6056
2018-04-14 19:05:44 +03:00
Coroiu Cristina
4b2644bf85
Backed out 2 changesets (bug 37468) for linting failure at builds/worker/checkouts/gecko/tools/lint/wpt.yml
...
Backed out changeset 5e7a1db60298 (bug 37468)
Backed out changeset bd0a3fdb037c (bug 37468)
2018-04-15 03:23:36 +03:00
Cosmin Sabou
c8235cb81b
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-15 03:05:51 +03:00
Ryan VanderMeulen
effc958e89
Backed out changeset 91406356569c (bug 1453339) for landing without review.
2018-04-14 10:25:15 -04:00
Boris Zbarsky
a0ee72689e
Bug 1453339 - Make it harder to mess up Promise::All. r=peterv
...
MozReview-Commit-ID: UO4wssYHj7
2018-04-12 17:03:49 -04:00
Emilio Cobos Álvarez
9083c33e83
Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
...
MozReview-Commit-ID: B2aYury8K7i
2018-04-14 11:59:06 +02:00
Andrew McCreight
3f7472aec1
Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
...
This method is not a virtual call, and also looks nicer.
This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.
MozReview-Commit-ID: 8JExxqSRc59
--HG--
extra : rebase_source : df6330a89e8d65dfe7a6fda0c8cb9f9732302efc
2018-04-12 15:41:00 -07:00
Andreea Pavel
01f50bc3d8
Merge mozilla-inbound to mozilla-central. a=merge
2018-04-14 00:56:30 +03:00
Jonathan Watt
1e7f76576a
Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
...
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Emilio Cobos Álvarez
9509cd7e32
Bug 1453789: Remove Element.createShadowRoot. r=smaug
...
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
arthur.iakab
b9f0fcc3d6
Merge mozilla inbound to mozilla-central a=merge
2018-04-13 12:43:21 +03:00
Emilio Cobos Álvarez
5421c10ca9
Bug 1452627: Fix nsStyleContentAttr stuff. r=bholley
...
MozReview-Commit-ID: 4hi75VQcmkN
2018-04-13 01:32:35 +02:00
Emilio Cobos Álvarez
b4219f2952
Bug 1428753: Ensure that vertical-overflowing images always show the zoom-out cursor. r=heycam
...
MozReview-Commit-ID: HU7f39pFNV8
--HG--
extra : rebase_source : b32865da38c9b152ea77ab19dfba99486cafc8e7
2018-04-12 20:48:02 +02:00
Emilio Cobos Álvarez
5dea335a87
Bug 1453148: Let overflow parse two values. r=xidorn
...
Per https://github.com/w3c/csswg-drafts/issues/2484 .
MozReview-Commit-ID: D7M3PhnTtD2
2018-04-12 14:48:55 +02:00
Kerem Kat
f2a32c122a
Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn
...
--HG--
extra : amend_source : 2572c4d3ae52d0d4f11344b2611ddf847040da02
2018-04-14 19:05:44 +03:00
Emilio Cobos Álvarez
641cd64f67
Bug 1452143: Fix two more tests which don't run on debug try on a CLOSED TREE. r=me
...
MozReview-Commit-ID: B3kj7tzn3Oq
2018-04-17 14:31:20 +02:00
Brindusan Cristian
8bcf097e09
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-04-17 13:10:25 +03:00
Emilio Cobos Álvarez
14e4bbb398
Bug 1454503: Remove unneeded refcounting in nsAnimationManager / nsTransitionManager. r=hiro
...
MozReview-Commit-ID: 1zgUfDhH8bm
2018-04-17 11:24:59 +02:00
Emilio Cobos Álvarez
a54fb3300f
Bug 1452143: Fix dom / style tests. r=bholley
...
MozReview-Commit-ID: 95JfwBVDdRD
2018-04-17 11:24:47 +02:00
Emilio Cobos Álvarez
ec2824c99f
Bug 1452143: Make InspectorUtils.getAllStyleSheets handle Shadow DOM, and also optionally not return UA / User sheets. r=bholley
...
We don't want to reparse over and over shared sheets, and that confused code
pretty heavily.
MozReview-Commit-ID: 7qkXoCoPNFW
2018-04-17 11:23:36 +02:00
Emilio Cobos Álvarez
8fc8563d65
Bug 1452143: Expose and honor a cssErrorReportingEnabled in the docshell. r=bholley
...
The idea would be for parallel CSS parsing to check the static methods in
ErrorReporter before loading the sheet.
MozReview-Commit-ID: D7cedJQpz9K
2018-04-17 11:23:31 +02:00
Brindusan Cristian
f25eb19816
Backed out changeset 84fc374da5e3 (bug 1453148) for mochitest failures on layout/style/test/test_bug319381.html CLOSED TREE
2018-04-12 10:13:56 +03:00
Emilio Cobos Álvarez
d8f9719a5b
Bug 1453148: Let overflow parse two values. r=xidorn
...
Per https://github.com/w3c/csswg-drafts/issues/2484 .
MozReview-Commit-ID: D7M3PhnTtD2
2018-04-12 07:56:12 +02:00
Cameron McCormack
9e26b4d88e
Bug 1375536 - Remove nsStyleVariables. r=emilio,xidorn
...
MozReview-Commit-ID: BqyhXc4W4Aq
--HG--
extra : rebase_source : f2e00ba1e52437a9e7041aa35e2095038812fc4d
2018-04-10 15:11:12 +10:00
Hiroyuki Ikezoe
1a43163be4
Bug 1443427 - Don't flush throttled animations in Animation::FlushStyle(). r=birtles
...
Animation::FlushStyle() gets called only for CSS animations/transitions'
playState changes in JS or ready Promise for CSS animations. In either case
throttled animation state, which is, to be precise, transformed position or
opacity value on the compositor, doesn't affect those results.
The first test case for CSS animations and the first test case for CSS
transitions in this patch fail without this fix.
MozReview-Commit-ID: EVym4qputL4
--HG--
extra : rebase_source : 12524c7db1d59da69687bb123fc65ad4301f5527
2018-04-11 18:01:14 +09:00
Andreea Pavel
29ba7b4974
Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
2018-04-11 17:40:37 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Xidorn Quan
686d95c786
Bug 1453180 - Remove -x-system-font. r=emilio,heycam
...
We need to add the system font keywords separately in InspectorUtils so
that we don't regress values listed in inspector.
MozReview-Commit-ID: 7a8CKGeSn4K
--HG--
extra : rebase_source : 12a1fcd0294b42568d8da596639b2733ba57186e
2018-04-11 10:12:16 +10:00
Cameron McCormack
3a70eaa88b
Bug 1317541 - Merge number-control.css back into forms.css. r=mats
...
MozReview-Commit-ID: AGfsSF4dORN
--HG--
extra : rebase_source : b0fbe05bcef3e7228f43f6fb417fdaf430961f03
2018-04-10 11:04:41 +10:00
Cameron McCormack
9dfabd795c
Bug 1317539 - Remove dom.forms.number pref. r=bz
...
MozReview-Commit-ID: EgeUfWMcE8D
--HG--
extra : rebase_source : 74cb7f69e21fd1a773259a53919fb04a82af2f5d
2018-04-10 11:02:28 +10:00
Emilio Cobos Álvarez
014cbed7df
No bug: Update expectations for minor serialization changes. r=me
...
MozReview-Commit-ID: 3nq9Qbwy9td
2018-04-11 01:49:58 +02:00
Emilio Cobos Álvarez
a1a1b8ea34
Bug 1452916: Remove dead error reporting code. r=bholley
...
MozReview-Commit-ID: GAn0ASQzBt
2018-04-10 23:58:18 +02:00
Emilio Cobos Álvarez
b3819d4cd5
Bug 1452916: Expose the error reporting pref. r=bholley
...
MozReview-Commit-ID: wkUSJ50Nne
2018-04-10 23:57:39 +02:00
Emilio Cobos Álvarez
9ab1873cd3
Bug 1452987: Simplify ImageValue. r=heycam
...
MozReview-Commit-ID: 5LRaaEPSSdY
--HG--
extra : rebase_source : 2654a870e2a985bf7a609ee436ba1800bf6033a3
2018-04-10 16:54:57 +02:00
Emilio Cobos Álvarez
7e8faed759
Bug 1452947: Remove useless PtrHolder / PtrHandle stuff now that URIs are thread-safe. r=heycam
...
MozReview-Commit-ID: 5f2B8bqBnDp
2018-04-11 08:41:49 +02:00
Hiroyuki Ikezoe
e38ae704a5
Bug 1412716 - Drop forward declarations of GeckoComputedStyle. r=emilio
...
MozReview-Commit-ID: CeI958wmdPE
--HG--
extra : rebase_source : 36b7fcb8dbcaaef118dc07cd691da1fb1199115f
2018-04-10 07:03:05 +09:00
Hiroyuki Ikezoe
f910ea3c3b
Bug 1412716 - Drop redundant forward declarations of ComputedStyle. r=emilio
...
MozReview-Commit-ID: ALMQ9Ws6eE1
--HG--
extra : rebase_source : 82222446e1ee52a05b4234855f07a400792f4e96
2018-04-10 07:03:03 +09:00
Hiroyuki Ikezoe
4db8cda1bf
Bug 1412716 - De-templatize functions in nsTransitionManager. r=emilio
...
MozReview-Commit-ID: 6u1fOrIH8PA
--HG--
extra : rebase_source : f1401719ba8afb509edad84d610a7cf5e4077dc3
2018-04-10 07:03:00 +09:00
Hiroyuki Ikezoe
8d59f30dfa
Bug 1412716 - De-templatize functions used for in nsAnimationManager. r=emilio
...
MozReview-Commit-ID: Kj4pLgmgF0x
--HG--
extra : rebase_source : fb3789bbcfb90c6f20765bc7d093ce4680090bf0
2018-04-09 20:16:00 +09:00
Noemi Erli
b55e1a1cbc
Merge inbound to mozilla-central. a=merge
2018-04-09 19:46:07 +03:00
Emilio Cobos Álvarez
b7a244d28f
Bug 1452525: Deduplicate proto bindings, not bindings. r=xidorn
...
MozReview-Commit-ID: 2NWALzUhDjn
--HG--
extra : rebase_source : f70a79915e8a4d72c8803439ded6021759be77fe
2018-04-09 15:25:41 +02:00
Prathiksha
917db06bfd
Bug 1444439 - Remove unsafeSetInnerHTML from bug418986-2.js. r=johannh
...
MozReview-Commit-ID: 96RxqSwYvj0
--HG--
extra : rebase_source : 83aef91b75cda105f7d7dbba40947733776f1fa9
2018-04-07 09:13:31 +05:30
Jonathan Watt
782365b415
Bug 1452170 - Remove RestyleLogging.h, RestyleTrackerInlines.h and related RESTYLE_LOGGING cruft. r=heycam
2018-04-09 09:33:56 +01:00
Xidorn Quan
2cf16e2fd3
Bug 1452534 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. r=emilio
...
MozReview-Commit-ID: DHOhrznm3ac
--HG--
extra : rebase_source : 9ca0d5208fbdbc34057f4e59a344dbf085b1addf
2018-04-09 15:57:53 +10:00
Xidorn Quan
61654ba862
Bug 1452534 part 3 - Remove stylestruct_ field from CSS_PROP macro. r=emilio
...
MozReview-Commit-ID: 5SLzttlLlIH
--HG--
extra : rebase_source : 4246fd0cbfad53f41dbb654b9313bc73144011d2
2018-04-09 15:21:00 +10:00
Xidorn Quan
6447b04ac3
Bug 1452534 part 2 - Remove nsCSSProps::kSIDTable. r=emilio
...
MozReview-Commit-ID: DD7sHVmIRIv
--HG--
extra : rebase_source : 9b8a35d2d4773f62a7bfa907fae4932c22f18f53
2018-04-09 14:34:15 +10:00
Xidorn Quan
abf64e1d80
Bug 1452534 part 1 - Use Servo code to check whether a property is inherited. r=emilio
...
MozReview-Commit-ID: GtJWDmPlsAq
--HG--
extra : rebase_source : 9f63a1cb2cfd50ff71fb6d393d5e8937d37ca937
2018-04-09 14:33:30 +10:00
Emilio Cobos Álvarez
b27ddd74b9
Bug 1452080: Rename ComputedStyle::PresContext to PresContextForFrame. r=xidorn
...
And make nsIFrame its only caller, modulo a safety assertion.
The safety assertion will be removed at the same time as the pres context
member, since the only purpose of it is to ensure we don't keep a pres context
reference for too long.
MozReview-Commit-ID: CD5zOHVO9ub
2018-04-09 11:19:50 +02:00
Emilio Cobos Álvarez
f39eaa5d48
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 11:19:49 +02:00
Noemi Erli
5d9588e156
Backed out 3 changesets (bug 1452080) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp on a CLOSED TREE
...
Backed out changeset 7f5104c7a242 (bug 1452080)
Backed out changeset 806a9c95a243 (bug 1452080)
Backed out changeset bffebe8aa254 (bug 1452080)
2018-04-09 11:18:12 +03:00
Emilio Cobos Álvarez
b6bb80b714
Bug 1452080: Rename ComputedStyle::PresContext to PresContextForFrame. r=xidorn
...
And make nsIFrame its only caller, modulo a safety assertion.
The safety assertion will be removed at the same time as the pres context
member, since the only purpose of it is to ensure we don't keep a pres context
reference for too long.
MozReview-Commit-ID: CD5zOHVO9ub
2018-04-09 09:57:57 +02:00
Emilio Cobos Álvarez
2a427429ff
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 09:57:55 +02:00
Emilio Cobos Álvarez
e128bf7b1a
Bug 1447827: Remove ServoRestyleManager. r=xidorn
...
MozReview-Commit-ID: CFafQsb4rQn
2018-04-07 15:50:06 +02:00
Emilio Cobos Álvarez
b508e66696
Bug 1447827: Move members from ServoRestyleManager to RestyleManager. r=xidorn
...
This leaves ServoRestyleManager as just a typedef.
MozReview-Commit-ID: 5wfTkiDc2Nr
2018-04-07 15:40:00 +02:00
Emilio Cobos Álvarez
c0f2f96f66
Bug 1303605: Remove the undisplayed maps. r=bz,mats
...
This is mostly code removal, changing GetDisplayContentsStyle(..) checks by an
FFI call to Servo.
The tricky parts are:
* MaybeCreateLazily, which I fixed to avoid setting bits under display: none
stuff. This was a pre-existing problem, which was wallpapered by the
sc->IsInDisplayNoneSubtree() check, which effectively made the whole
assertion useless (see bug 1381017 for the only crashtest that hit this
though).
* ContentRemoved, where we can no longer know for sure whether the element is
actually display: contents if we're removing it as a response to a style
change. See the comment there. That kinda sucks, but that case is relatively
weird, and it's better than adding tons of complexity to handle that.
* GetParentComputedStyle, which also has a comment there. Also, this function
has only one caller now, so we should maybe try to remove it.
The different assertions after DestroyFramesForAndRestyle are changed for a
single assertion in the function itself, and the node bit used as an
optimization to avoid hashtable lookups is taken back.
MozReview-Commit-ID: AZm822QnhF9
2018-04-07 15:21:56 +02:00
Brindusan Cristian
74a6eccce8
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-07 12:59:20 +03:00
Brindusan Cristian
c5ba0f0766
Merge inbound to mozilla-central. a=merge
2018-04-07 12:57:02 +03:00
Jonathan Watt
f8cb572b4e
Bug 1452169 - Remove nsNthIndexCache.h. r=dholbert
2018-04-06 19:10:43 +01:00
Jonathan Watt
81ccf0c0e4
Bug 1452040 - Get rid of NS_STYLE_FONT_WEIGHT_NORMAL and NS_STYLE_FONT_WEIGHT_BOLD. r=emilio
2018-04-06 14:53:25 +01:00
Noemi Erli
eb61878455
Merge inbound to mozilla-central. a=merge
2018-04-07 00:55:15 +03:00
Bobby Holley
5c354190dc
Bug 1451421 - Stop using Gecko namespace ids in servo. r=xidorn
...
MozReview-Commit-ID: 2532dHCGPXW
2018-04-06 15:30:58 -07:00
Cameron McCormack
80e0b61efb
Bug 1079292 - Re-enable test 18 of test_font_loading_api.html. r=xidorn
...
MozReview-Commit-ID: IPcebw8CC4i
--HG--
extra : rebase_source : a80cd84bfc5c736d464d10eb9fc33d54b20f9883
2018-04-05 18:31:47 +10:00
Andreea Pavel
eed7d2803f
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-04-06 17:54:45 +03:00
Emilio Cobos Álvarez
f1145db772
Bug 1339656: [css-align] Upstream our shorthand serialization tests. r=mats
...
MozReview-Commit-ID: 2EYnkBavecs
2018-04-06 14:27:40 +02:00
Emilio Cobos Álvarez
2dbc4842b7
Bug 1339656: Make the shorthand serialization test account for 'unsafe' serialization. r=mats
...
This should make the test upstreamable.
MozReview-Commit-ID: DeJt5HzMJHE
2018-04-06 14:27:31 +02:00
Emilio Cobos Álvarez
fff326ce5c
Bug 1339656: [css-align] Don't restrict shorthand parsing now that's not ambiguous. r=mats
...
MozReview-Commit-ID: AnYBt6zwnPl
2018-04-06 14:27:12 +02:00
Jonathan Watt
af9d95013e
Bug 1452057 - Remove remaining AsGecko() cruft. r=emilio
2018-04-04 08:53:06 +01:00
Jonathan Watt
3a5bebcfbf
Bug 1452052 - Remove nsCSSRules.h. r=emilio
2018-04-03 12:47:20 +01:00
Boris Zbarsky
a0b6e32bba
Bug 1449631 part 12. Remove the Nullable smuggling from nsIDOMEventTarget. r=smaug
...
MozReview-Commit-ID: 73qhRSCpr3S
2018-04-05 13:42:42 -04:00
Boris Zbarsky
4292bca4ee
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Noemi Erli
d0413b711d
Merge inbound to mozilla-central. a=merge
2018-04-05 18:15:37 +03:00
Boris Zbarsky
71517dfd71
Bug 1451199. Fix the handling of .onchange in MediaQueryList to match the handling of addEventListener('change'). r=emilio
...
MozReview-Commit-ID: 4YvJ0m0BOnQ
2018-04-05 08:34:46 -04:00
Noemi Erli
ff466e94c1
Merge inbound to mozilla-central. a=merge
2018-04-05 13:02:11 +03:00
Ben Kelly
d44ca0b854
Bug 1450358
P4 Add a MediaQueryList event listener leak test. r=baku
2018-04-04 11:25:43 -07:00
Xidorn Quan
d7f3530f07
Bug 1449068 part 2 - Use Servo data to back @counter-style rule. r=emilio
...
This patch basically does:
* Add descriptor setters and generation count to CounterStyleRule in
Servo. (This code is mostly based on the old code inside
nsCSSCounterStyleRule for handling mutation.)
* Use RawServoCounterStyleRule in CounterStyleManager.
* Add ServoCounterStyleRule and remove nsCSSCounterStyleRule.
Test change:
* "fixed" was parsed as and thus serialized to "fixed 1", but Servo
doesn't do so. It preserves whether the number presents. Either way
is probably fine.
MozReview-Commit-ID: EtKTeu32isi
--HG--
extra : rebase_source : ec44f01c581003ce4b6ef69435a05de7f3da5469
2018-04-05 08:41:28 +10:00
Xidorn Quan
0be3ea5159
Bug 1449068 part 1 - Wrap content of ServoStyleSetInlines.h in mozilla namespace. r=emilio
...
MozReview-Commit-ID: HiIZdZwdTeZ
--HG--
extra : rebase_source : b731a0b5dd7cad68afcd6caf944e62fbf02a0b01
2018-04-05 08:41:28 +10:00
Margareta Eliza Balazs
210797c4c1
Merge inbound to mozilla-central. a=merge
2018-04-04 12:43:55 +03:00
Emilio Cobos Álvarez
f004e39cd6
Bug 1441136: Add a fast way to enumerate ShadowRoots in a document. r=smaug
...
MozReview-Commit-ID: 7QffP56jsyk
2018-04-04 07:40:34 +02:00
Ciure Andrei
5ffac2bcd3
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-04-04 00:58:50 +03:00