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

12951 Коммитов

Автор SHA1 Сообщение Дата
jeffin143 be122e52af Bug 1600482 : convert NS_STYLE_RUBY_POSITION_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55379

--HG--
extra : moz-landing-system : lando
2019-12-02 17:22:42 +00:00
jeffin143 0070e7ec58 Bug 1600484 : convert NS_STYLE_TEXT_SIZE_ADJUST_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55382

--HG--
extra : moz-landing-system : lando
2019-12-02 05:09:33 +00:00
jeffin143 0ed9c7c846 Bug 1600483 : convert NS_STYLE_RUBY_ALIGN_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55380

--HG--
extra : moz-landing-system : lando
2019-12-01 13:08:49 +00:00
jeffin143 6e53ecda96 Bug 1600476 : convert NS_STYLE_TOP_LAYER_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55377

--HG--
extra : moz-landing-system : lando
2019-12-01 13:05:55 +00:00
Emilio Cobos Álvarez 1c8bfea810 Bug 1600436 - Fix servo build.
Depends on D55357

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

--HG--
extra : moz-landing-system : lando
2019-11-30 14:06:06 +00:00
Emilio Cobos Álvarez f628d09be6 Bug 1600436 - Rustfmt recent changes.
Differential Revision: https://phabricator.services.mozilla.com/D55357

--HG--
extra : moz-landing-system : lando
2019-11-30 14:13:04 +00:00
Emilio Cobos Álvarez 91bdbdf2ed Bug 1600436 - Update some servo-2020 layout ifdefs.
Differential Revision: https://phabricator.services.mozilla.com/D55356

--HG--
extra : moz-landing-system : lando
2019-11-30 14:05:50 +00:00
Alex Touchet 5ae76bccfa Bug 1600436 - Update some URLs.
Differential Revision: https://phabricator.services.mozilla.com/D55355

--HG--
extra : moz-landing-system : lando
2019-11-30 14:05:43 +00:00
Simon Sapin c8373d6efe Bug 1600436 - Fix some warnings new in Rust Nightly.
Differential Revision: https://phabricator.services.mozilla.com/D55354

--HG--
extra : moz-landing-system : lando
2019-11-30 14:05:41 +00:00
Federico Mena Quintero 4ff8a1dc93 Bug 1600436 - derive_common: Fix example in documentation.
Differential Revision: https://phabricator.services.mozilla.com/D55353

--HG--
extra : moz-landing-system : lando
2019-11-30 14:05:34 +00:00
Emilio Cobos Álvarez 2051e11775 Bug 1600320 - Avoid writing into the empty array header. r=jwatt
The only way for this to happen is calling set_len(0) on an already-empty array.

We should be replacing these bindings by the `ThinVec` crate, but this is easier
for now.

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

--HG--
extra : moz-landing-system : lando
2019-11-30 11:58:18 +00:00
enordin d69bff9bdb Bug 1597642 - Have scale function and scale property accept percentage value. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D55012

--HG--
extra : moz-landing-system : lando
2019-11-29 04:40:03 +00:00
Emilio Cobos Álvarez 8e2d3636d7 Bug 1599876 - Make some string handling in the bindings a bit less terrible. r=boris
cbindgen understands references, so use them rather than pointers when we expect
non-null stuff.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 20:57:51 +00:00
Emilio Cobos Álvarez bcdc101492 Bug 1599324 - Fix Servo_IsCssPropertyRecordedInUseCounter so that we also report disabled properties. r=boris
When zoom is disabled, we still count it, but with the current code the testing
function will throw instead of returning the right value, which means we'd fail
layout/style/test/test_use_counters.html.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 20:51:20 +00:00
jeffin143 e9711f487b Bug 1598528 : convert NS_STYLE_TEXT_ORIENTATION_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54252

--HG--
extra : moz-landing-system : lando
2019-11-26 04:50:04 +00:00
Emilio Cobos Álvarez 526c7105f0 Bug 1599115 - Simplify some code now that lifetimes are non-lexical. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D54529

--HG--
extra : moz-landing-system : lando
2019-11-25 19:14:37 +00:00
jeffin143 7868d04683 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-25 16:00:23 +00:00
jeffin143 9b7464720b Bug 1598348 : convert NS_STYLE_OBJECT_FIT_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54153

--HG--
extra : moz-landing-system : lando
2019-11-25 15:40:50 +00:00
jeffin143 2293551763 Bug 1598539 : convert NS_STYLE_IME_MODE_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54255

--HG--
extra : moz-landing-system : lando
2019-11-25 15:41:18 +00:00
Mats Palmgren 6bb620e019 Bug 1598234 - [css-grid][cssom] Make 'grid-area'/'grid-column'/'grid-row' shorthands serialize to shortest possible form. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54386

--HG--
extra : moz-landing-system : lando
2019-11-23 21:24:33 +00:00
Mats Palmgren f96607afa0 Bug 1597884 - [css-grid] Make some grid/grid-template values serialize to a shorter form. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53913

--HG--
extra : moz-landing-system : lando
2019-11-23 19:58:35 +00:00
Mats Palmgren 774a732b4a Bug 1597639 - [css-grid] Don't accept two trailing <line-names> in the grid/grid-template shorthands. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53909

--HG--
extra : moz-landing-system : lando
2019-11-23 19:56:34 +00:00
Brindusan Cristian 116ada0728 Backed out changeset f07b485c29ad (bug 1595620) for xpcshell failures at test_css-properties-db.js. CLOSED TREE 2019-11-23 14:48:06 +02:00
Markivo 9dcd8c4485 Bug 1595620 Add support for -webkit-font-feature-settings as an alias of font-feature-settings.r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54159

--HG--
extra : moz-landing-system : lando
2019-11-23 10:29:58 +00:00
Noemi Erli 92d932148c Backed out changeset 8cdae49ab472 (bug 1598539) for causing build bustages in EditorBase.cpp CLOSED TREE 2019-11-22 22:04:00 +02:00
jeffin143 058d24f2df Bug 1598539 : convert NS_STYLE_IME_MODE_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54255

--HG--
extra : moz-landing-system : lando
2019-11-22 13:33:59 +00:00
Razvan Maries 8520cc6954 Backed out changeset dce49f743139 (bug 1597893) for build bustages on nsCocoaWindow.mm. CLOSED TREE 2019-11-22 14:50:12 +02:00
jeffin143 6967337237 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 16:52:06 +00:00
Boris Chiou 7a959a5da5 Bug 1582554 - Add a preference for offset-path:ray(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53110

--HG--
extra : moz-landing-system : lando
2019-11-20 22:38:26 +00:00
Bogdan Tara 6aae1c4aaa Backed out changeset 726c8aa10d1a (bug 1597893) for bustages complaining about nsCocoaWindow.h CLOSED TREE 2019-11-21 15:35:09 +02:00
jeffin143 9f50df6c78 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 12:09:03 +00:00
Emilio Cobos Álvarez a46d4afe4b Bug 1559076 - Invalidate parts in nested shadow trees correctly. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D54010

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:10 +00:00
Emilio Cobos Álvarez 74823e8b90 Bug 1559076 - Implement shadow part forwarding (minus invalidation). r=heycam
Some of the stuff, in particular inside GeckoBindings stuff should be
refactored to be less ugly and duplicate a bit less code, but the rest of the
code should be landable as is.

Some invalidation changes are already needed because we weren't matching with
the right shadow host during invalidation (which made existing ::part() tests
fail).

Pending invalidation work:

 * Making exportparts work right on the snapshots.
 * Invalidating parts from descendant hosts.

They're not very hard but I need to think how to best implement it:

 * Maybe get rid of ShadowRoot::mParts and just walk DOM descendants in the
   Shadow DOM.

 * Maybe implement a ElementHasExportPartsAttr much like HasPartAttr and use
   that to keep the list of elements.

 * Maybe invalidate :host and ::part() together in here[1]

 * Maybe something else.

Opinions?

[1]: https://searchfox.org/mozilla-central/rev/131338e5017bc0283d86fb73844407b9a2155c98/servo/components/style/invalidation/element/invalidator.rs#561

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:32:32 +00:00
jeffin143 74bcc4abb7 Bug 1597979 : convert NS_STYLE_TEXT_ANCHOR_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53956

--HG--
extra : moz-landing-system : lando
2019-11-21 08:48:19 +00:00
jeffin143 aa897e8496 Bug 1597881 : convert NS_STYLE_STROKE_LINECAP_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53908

--HG--
extra : moz-landing-system : lando
2019-11-21 06:07:30 +00:00
Emilio Cobos Álvarez 6ea82affcf Bug 1597588 - Make rust Atom use NonZeroUsize. r=heycam
At first I thought this was going to enable simplifications in the selector
parser (to simplify the attribute selector setup), but I couldn't end up
shrinking the layout enough.

However this should help with bug 1559076, which returns Option<Atom>, and it
was easy to write.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 05:46:56 +00:00
jeffin143 6482a37fc1 Bug 1597741 : use Enum class for NS_STYLE_SHAPE_RENDERING instead of #define r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53840

--HG--
extra : moz-landing-system : lando
2019-11-20 00:49:19 +00:00
Emilio Cobos Álvarez 1ce127f931 Bug 1559076 - Minor debugging improvements. r=heycam
These were useful when implementing forwarding, and forgot to send them
earlier.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 06:47:12 +00:00
Emilio Cobos Álvarez 8e7c1ccca2 Bug 1597273 - Handle logical shorthand animations with variable references correctly. r=hiro
When we physicalize the declarations for @keyframes, we end up having a physical
declaration with an unparsed value with `from_shorthand` being the logical
shorthand.

Account for this case properly when substituting custom properties, to avoid
panicking.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 00:43:34 +00:00
Boris Chiou d41bf3236a Bug 1506746 - Update the expected direction vector of rotate property in wpt. r=birtles
For interpolations with the primitive rotate3d(), the direction vectors of
the transform functions get normalized first. This should also be applied to
rotate property.

https://drafts.csswg.org/css-transforms-2/#interpolation-of-transform-functions

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

--HG--
extra : moz-landing-system : lando
2019-11-18 20:47:01 +00:00
Emilio Cobos Álvarez ba2ffbed2e Bug 1597123 - Remove NODE_IS_ANONYMOUS_ROOT. r=smaug
We no longer have multiple kinds of anonymous subtrees, so we can get back one
node bit.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 08:49:27 +00:00
Emilio Cobos Álvarez 3bbe26d009 Bug 1596712 - Use only Origin during the cascade, rather than CascadeLevel. r=heycam
The micro-benchmark `style-attr-1.html` regressed slightly with my patch, after
the CascadeLevel size increase.

This benchmark is meant to test for the "changing the style attribute doesn't
cause selector-matching" optimization (which, mind you, keeps working).

But in the process it creates 10k rules which form a perfect path in the rule
tree and that we put into a SmallVec during the cascade, and the benchmark
spends most of the time pushing to that SmallVec and iterating the declarations
(as there's only one property to apply).

So we could argue that the regression is minor and is not what the benchark is
supposed to be testing, but given I did the digging... :)

My patch made CascadeLevel bigger, which means that we create a somewhat bigger
vector in this case. Thankfully it also removed the dependency in the
CascadeLevel, so we can stop using that and use just Origin which is one byte to
revert the perf regression.

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

--HG--
extra : moz-landing-system : lando
2019-11-17 23:28:39 +00:00
Boris Chiou 52546e8558 Bug 1596610 - Set WillChangeBits::TRANSFORM for offset-path and add tests for it. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D53109

--HG--
extra : moz-landing-system : lando
2019-11-16 01:52:32 +00:00
Boris Chiou f918f7fc49 Bug 1594946 - Treat 3d translate/scale as 2d if the value can be expressed as 2d. r=emilio
For the individual transform properties if they spec a value that can be
expressed as 2d we treat as 2d and serialize accordingly.

We drop Translate::Translate and Scale::Scale, and then rename
Translate::Translate3D as Translate::Translate, Scale::Scale3D as
Scale::Scale. So now we use Translate::Translate to represent 2d and 3d
translation, and Scale::Scale to represent 2d and 3d scale. There is no
difference between 2d and 3d translate/scale in Gecko because we always
convert them into 3d format to layers (on the compositor thread), so this
change makes things simpler.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 19:38:24 +00:00
Emilio Cobos Álvarez dbb16b3158 Bug 1596050 - Centralize logic to ignore document colors. r=jfkthame
This was a follow-up from the backplate stuff which I requested but didn't
happen.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 13:39:08 +00:00
Emilio Cobos Álvarez 760ba894bf Bug 1596391 - Fix silly boolean logic mistake. r=bustage a=dluca
MANUAL PUSH: bustage
2019-11-14 15:17:25 +01:00
Emilio Cobos Álvarez 186586e54a Bug 1596391 - Remove NODE_MAY_BE_IN_BINDING_MNGR. r=smaug
Never set anymore.

Depends on D52993

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

--HG--
extra : moz-landing-system : lando
2019-11-14 12:54:00 +00:00
Emilio Cobos Álvarez 1d1b44bdd9 Bug 1588431 - Optimize storage of ApplicableDeclaration again. r=heycam
So that we don't regress perf.

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

--HG--
extra : moz-landing-system : lando
2019-11-13 09:59:10 +00:00
Emilio Cobos Álvarez 7862314a7d Bug 1588431 - Fix cascade order of shadow parts. r=heycam
This moves the shadow cascade order into the cascade level, and refactors the
code a bit for that.

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

--HG--
extra : moz-landing-system : lando
2019-11-14 02:49:54 +00:00
Emilio Cobos Álvarez cdec933a85 Bug 1588431 - Split collect_style_attribute_and_animation_rules. r=heycam
Animations are their own cascade level per https://drafts.csswg.org/css-cascade-4/#cascade-origin

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

--HG--
extra : moz-landing-system : lando
2019-11-13 09:58:52 +00:00