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

15349 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 70c89405ba Bug 1571530 - Trivially cleanup a condition. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D41089

--HG--
extra : moz-landing-system : lando
2019-08-13 09:16:33 +00:00
Emilio Cobos Álvarez d1d4f54714 Bug 1571530 - Make the parsing mode part of the cache key. r=heycam
Rather than checking after-the fact and dropping the cached result on the floor.

Depends on D40690

Differential Revision: https://phabricator.services.mozilla.com/D40691

--HG--
extra : moz-landing-system : lando
2019-08-13 09:06:09 +00:00
Emilio Cobos Álvarez 30b487ccad Bug 1571530 - Move SheetLoadData out of line too. r=heycam
Now that Sheets is out of line this can move to the cpp file too.

Depends on D40689

Differential Revision: https://phabricator.services.mozilla.com/D40690

--HG--
extra : moz-landing-system : lando
2019-08-13 09:05:59 +00:00
Emilio Cobos Álvarez dea1e66fa8 Bug 1571530 - Cleanup initialization and usage of Loader::mSyncCallback. r=heycam
Little pet peeve o' mine.

Depends on D40687

Differential Revision: https://phabricator.services.mozilla.com/D40688

--HG--
extra : moz-landing-system : lando
2019-08-13 05:12:28 +00:00
Emilio Cobos Álvarez 8abfa9f557 Bug 1571530 - Move Loader::Sheets out of line. r=heycam
I'm going to tweak it a bit.

Differential Revision: https://phabricator.services.mozilla.com/D40687

--HG--
extra : moz-landing-system : lando
2019-08-13 05:08:50 +00:00
Sylvestre Ledru 645f2d5773 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D41559

--HG--
extra : moz-landing-system : lando
2019-08-13 07:15:25 +00:00
Csoregi Natalia 3edad1f4b7 Merge mozilla-central to autoland. CLOSED TREE 2019-08-11 00:36:21 +03:00
Csoregi Natalia 6d04491407 Merge inbound to mozilla-central. a=merge 2019-08-11 00:28:20 +03:00
Emilio Cobos Álvarez 6068035edc Bug 1572805 - Use cbindgen for text-emphasis-style. r=boris
I sent https://github.com/eqrion/cbindgen/pull/377 since I got sick of
copy-pasting the private default constructor stuff :)

Differential Revision: https://phabricator.services.mozilla.com/D41419

--HG--
extra : moz-landing-system : lando
2019-08-10 18:11:31 +00:00
Joel Olsson aa7bc8f357 Bug 1553545 - Enable font-size:xxx-large. r=emilio
MANUAL PUSH: Manually fixed up contributor's patch stack to squash the two patches in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D41240
2019-08-10 18:32:33 +02:00
Cosmin Sabou 7a5022a31f Merge mozilla-inbound to mozilla-central. a=merge 2019-08-10 00:57:59 +03:00
Emilio Cobos Álvarez 31c098f33b Bug 1571530 - Don't uselessly check for OOM in Loader::PostLoadEvent. r=heycam
MANUAL PUSH: This part of the stack is independent and has been reviewed sooner, so can land now.

Differential Revision: https://phabricator.services.mozilla.com/D40849
2019-08-09 13:17:42 +02:00
Emilio Cobos Álvarez ca91e4cc05 Bug 1571530 - Cleanup a bit PreloadedStyleSheet construction. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40848
2019-08-09 13:17:12 +02:00
Charlie Marlow ab6f4c453d Bug 1572303: updating text-underline-offset to support ::first-line/first-letter/placeholder r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41227

--HG--
extra : moz-landing-system : lando
2019-08-09 04:58:10 +00:00
Daniel Varga 3430859a68 Backed out 2 changesets (bug 1572805) for build-rusttests failure. On a CLOSED TREE
Backed out changeset 849ca4b3f9de (bug 1572805)
Backed out changeset 81b56d76505a (bug 1572805)
2019-08-10 21:07:03 +03:00
Emilio Cobos Álvarez ccd8c3bedc Bug 1572805 - Use cbindgen for text-emphasis-style. r=boris
I sent https://github.com/eqrion/cbindgen/pull/377 since I got sick of
copy-pasting the private default constructor stuff :)

Differential Revision: https://phabricator.services.mozilla.com/D41419

--HG--
extra : moz-landing-system : lando
2019-08-10 16:21:15 +00:00
Cosmin Sabou 58ff25cbdb Merge mozilla-central to autoland. CLOSED TREE 2019-08-10 01:11:17 +03:00
Emilio Cobos Álvarez 56df9575bc Bug 1499000 - Don't do CORS checks on CSS images with the resource:// scheme. r=bzbarsky
CORS only works on http channels, so anything else that tries to do a
CORS-enabled request fails catastrophically.

resource:// images are useful for extension developers, so don't perform CORS
checks on them. We may want to also do file:// and fix bug 1565509, while at it,
if we consider it's causing developer pain.

Differential Revision: https://phabricator.services.mozilla.com/D40651

--HG--
extra : moz-landing-system : lando
2019-08-09 18:09:55 +00:00
Nicholas Nethercote 4ee7b811de Bug 1563555 - Don't bindgen static prefs. r=emilio
Bindgen is no longer necessary now that Rust bindings are generated by
generate_static_pref_list.py.

Differential Revision: https://phabricator.services.mozilla.com/D40793

--HG--
extra : moz-landing-system : lando
2019-08-08 21:33:15 +00:00
Charlie Marlow b469e3daed Bug 1572304: updating text-decoration-skip-ink to support ::first-line/first-letter/placeholder r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D41228

--HG--
extra : moz-landing-system : lando
2019-08-08 18:44:03 +00:00
Jared Wein c4dc4bec25 Bug 1571567 - Fix no-fallthrough errors in /layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40876

--HG--
extra : moz-landing-system : lando
2019-08-08 15:18:39 +00:00
Bogdan Tara 844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Jared Wein 90040ef5e2 Bug 1571567 - Fix no-fallthrough errors in /layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40876

--HG--
extra : moz-landing-system : lando
2019-08-08 01:38:51 +00:00
Emilio Cobos Álvarez 03209c7dd2 Bug 1569078 - Back out changeset 97e691afc504c62ba2295bb3e9c3d33204b15d60 (bug 1456052) for causing this bug.
MANUAL PUSH: Backout
2019-08-09 13:06:40 +02:00
Tom Schuster 0e913c22c4 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 19:49:40 +00:00
Charlie Marlow be2d349416 Bug 1555865: added text-decoration-thickness to the text-decoration shorthands r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D40335

--HG--
extra : moz-landing-system : lando
2019-08-07 17:42:15 +00:00
Emilio Cobos Álvarez af948d7634 Bug 1572114 - Don't bother blocking onload for already-complete shape images. r=bradwerth
That way we don't need to re-request a reflow. This code can run from reflow
itself, so requesting a reflow from here can break invariants.

There's the question of whether this code should be running at all for
continuations, but this patch fixes a bug regardless of whether we do that or
not.

Differential Revision: https://phabricator.services.mozilla.com/D41021

--HG--
extra : moz-landing-system : lando
2019-08-07 17:17:05 +00:00
Cosmin Sabou c3430326e6 Backed out changeset ca88862d6b63 (bug 1558915) for causing build bustages on StartupCacheUtils. CLOSED TREE 2019-08-07 13:20:32 +03:00
Tom Schuster 8bc1f5ada8 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-07 09:36:56 +00:00
Cosmin Sabou 9453cf60bf Backed out 2 changesets (bug 1563555) for causing marionette failures on test_profile_management.py.
Backed out changeset 2559f5ddf8e0 (bug 1563555)
Backed out changeset e3c86ffa168c (bug 1563555)

--HG--
extra : histedit_source : 8569cceff2845f697109e2077a00c96074c7fe83
2019-08-07 12:09:13 +03:00
Nicholas Nethercote d5bd89d9a0 Bug 1563555 - Don't bindgen static prefs. r=emilio
Bindgen is no longer necessary now that Rust bindings are generated by
generate_static_pref_list.py.

Differential Revision: https://phabricator.services.mozilla.com/D40793

--HG--
extra : moz-landing-system : lando
2019-08-07 04:17:22 +00:00
Razvan Maries eedbf1137f Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
Boris Chiou e158ad1169 Bug 1339672 - Support multiple track sizes for grid-auto-{columns|rows}. r=emilio,mats
Support `<track-size>+` on the implicit track sizing properties,
grid-auto-columns and grid-auto-rows.

Differential Revision: https://phabricator.services.mozilla.com/D38408

--HG--
extra : moz-landing-system : lando
2019-08-06 18:32:16 +00:00
Tom Schuster 03c7998ef2 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-06 20:19:41 +00:00
Gurzau Raul b882212938 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-06 01:04:53 +03:00
Emilio Cobos Álvarez 30fc8c8c4d Bug 1519958 - Improve stack size of grid templates and re-enable style struct size assertions disabled in the previous patch. r=boris
This re-enables the assertion which was disabled on the previous patch by doing
a bit of boxing around.

Differential Revision: https://phabricator.services.mozilla.com/D36599
2019-08-05 22:13:33 +02:00
Emilio Cobos Álvarez 1f3d6c04f2 Bug 1519958 - Refactor grid types to preserve repeat() at computed value time and use cbindgen. r=mats,boris
I'm _really_ sorry for the size of the patch. I tried to do this in two steps
but it was a lot of work and pretty ugly.

This patch makes us use cbindgen for grid-template-{rows,columns}, in order to:

 * Make us preserve repeat() at computed-value time. This is per spec since
   interpolation needs to know about repeat(). Except for subgrid, which did the
   repeat expansion at parse-time and was a bit more annoying (plus it doesn't
   really animate yet so we don't need it to comply with the spec).

 * Tweaks the WPT tests for interpolation to adopt the resolution at:
   https://github.com/w3c/csswg-drafts/issues/3503.

Trade-off here, as this patch stands, is that this change makes us use less
long-living memory, since we expand repeat() during layout, but at the cost of a
bit of CPU time during layout (conditional on the property applying though,
which wasn't the case before). It should be very easy to store a cached version
of the template, should this be too hot (I expect it isn't), or to change the
representation in other ways to optimize grid layout code if it's worth it.

Another trade-off: I've used SmallPointerArray to handle line-name merging,
pointing to the individual arrays in the style data, rather than actually
heap-allocating the merged lists. This would also be pretty easy to change
should we measure and see that it's not worth it.

This patch also opens the gate to potentially improving memory usage in some
other ways, by reference-counting line-name lists for example, though I don't
have data that suggests it is worth it.

In general, this patch makes much easier to tweak the internal representation of
the grid style data structures. Overall, I think it's a win, the amount of magic
going on in that mako code was a bit huge; it took a bit to wrap my head around
it.

This patch comments out the style struct size assertions. They will be
uncommented in a follow-up patch which contains some improvements for this type,
which are worth getting reviewed separately.

Also, this patch doesn't remove as much code as I would've hoped for because of
I tried not to change most of the dom/grid code for inspector, but I think a
fair bit of the nsGridContainerFrame.cpp code that collects information for it
can be simplified / de-copy-pasted to some extent. But that was a pre-existing
problem and this patch is already quite massive.

Differential Revision: https://phabricator.services.mozilla.com/D36598
2019-08-05 22:13:21 +02:00
Emilio Cobos Álvarez b4ac7dbf3f No bug - Improve CSS loader logging. 2019-08-05 10:58:56 +02:00
Emilio Cobos Álvarez 09da414857 Bug 1404140 - followup: Avoid busting GCC base toolchain jobs which warn about a debug-only variable. 2019-08-03 04:51:42 +02:00
Emilio Cobos Álvarez 0f118f30e5 Bug 1404140 - Remove the GetCSNeedsLayoutFlush flag, as it is unneeded now. r=heycam
MANUAL PUSH: Would need to reorder the stack manually (https://bugzilla.mozilla.org/show_bug.cgi?id=1481539)

Differential Revision: https://phabricator.services.mozilla.com/D40300
2019-08-03 04:10:55 +02:00
Emilio Cobos Álvarez b38e7248ab Bug 1404140 - Don't flush layout for layout-dependent properties if we know that it won't affect the result. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40299
2019-08-03 04:09:13 +02:00
Emilio Cobos Álvarez b509090178 Bug 1404140 - Refactor nsComputedDOMStyle::UpdateCurrentStyleSources so that it happens in two flushes, not one. r=heycam
We still don't optimize out the second based on the results of the first, but I
plan to do that in a bit. That's what this bug is about anyway.

Differential Revision: https://phabricator.services.mozilla.com/D40298
2019-08-03 04:05:35 +02:00
Emilio Cobos Álvarez ac6ac81c6f Bug 1404140 - Return early when trying to flush to get the style of a disconnected element. r=heycam
We just don't return a styles for them anyway, and this simplifies the following
patches a bit.

Differential Revision: https://phabricator.services.mozilla.com/D40297
2019-08-03 04:05:34 +02:00
Emilio Cobos Álvarez d53b9edd1d Bug 1404140 - Factor out getting the outer and inner frame. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40296
2019-08-03 04:05:34 +02:00
Emilio Cobos Álvarez 61e965dfe9 Bug 1404140 - Rename nsComputedDOMStyle::NeedsToFlush to NeedsToFlushStyle. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40295
2019-08-03 04:05:33 +02:00
Emilio Cobos Álvarez 405bc1b7e9 Bug 1404140 - Cleanup initialization of nsComputedDOMStyle::mFlushedPendingReflows. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40294
2019-08-03 04:05:32 +02:00
Emilio Cobos Álvarez 12cc4ad0c8 Bug 1404140 - Fix non-unified build bustage in nsComputedDOMStyle.cpp r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D40293
2019-08-03 04:05:31 +02:00
Boris Chiou f7b833b7ce Bug 1559231 - Make offset-anchor animatable. r=birtles
Per the spec issue, https://github.com/w3c/csswg-drafts/issues/3482,
we update the wpt to keep the percentage in `calc()` for `offset-anchor`.

Differential Revision: https://phabricator.services.mozilla.com/D39552

--HG--
extra : moz-landing-system : lando
2019-08-02 20:12:40 +00:00
Boris Chiou b91b90c199 Bug 1559231 - Support offset-anchor. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D39432

--HG--
extra : moz-landing-system : lando
2019-08-02 20:12:38 +00:00
Edwin Gao 7e8510c1ae Bug 1559975 - convert layout/style to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35699

--HG--
extra : moz-landing-system : lando
2019-08-02 19:46:12 +00:00