Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Sync changes from mozilla-central. #22111

Merged
merged 32 commits into from Nov 5, 2018
Merged

Conversation

@emilio
Copy link
Member

emilio commented Nov 5, 2018

See each individual commit for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1504644


This change is Reviewable

emilio and others added 30 commits Oct 24, 2018
Also remove specified-value-only keywords, since those are handled
only in Rust code and C++ doesn't need to know about them.

Differential Revision: https://phabricator.services.mozilla.com/D9634
…r tags in the rightmost compound.

Before this patch we were only optimizing the case of a single selector, which
is fine, but not enough to catch ones like .foo .bar or so.

This patch allows us to optimize classes and tags in the rightmost compound,
while keeping the current optimization for #id selectors.

Need to profile this, but code-wise should be ready for review.

Differential Revision: https://phabricator.services.mozilla.com/D9351
See w3c/csswg-drafts#3150 for the issue that would
expand this to all pseudos.

Differential Revision: https://phabricator.services.mozilla.com/D9994
eqrion/cbindgen#233 changed the way one of the options
we use work.

I think the new behavior is better, but we should do this sooner rather than
later, and fix broken builds.

Differential Revision: https://phabricator.services.mozilla.com/D10301
…hen the angle of one is zero.

Bug: 1501176
Reviewed-by: hiro
…ndant rust types.

We will blacklist this type and add a module raw line to map the gecko
type to its rust type (as an alias).

Differential Revision: https://phabricator.services.mozilla.com/D10303
So we could avoid generating it in rust-bindgen and drop transmute.

Differential Revision: https://phabricator.services.mozilla.com/D10304
Map these two types to their original rust type in rust-bindgen.

Differential Revision: https://phabricator.services.mozilla.com/D10141
This needs to update the "fill-rule" and "clip-rule" to use
predefined_type to avoid some compilation errors.

Differential Revision: https://phabricator.services.mozilla.com/D10142
So we could drop transmute in svg_path related functions.

Differential Revision: https://phabricator.services.mozilla.com/D10140
A minor update to drop the redundant "mozilla" namespace prefix in
`cbindgen_types` array.

Depends on D10305

Differential Revision: https://phabricator.services.mozilla.com/D10325
For now, we keep supporting the prefixed version, since there are examples/instructions
on the Web that don't include an unprefixed value.

Differential Revision: https://phabricator.services.mozilla.com/D10451
It doesn't make much sense to return const UniquePtr<Foo>& for something that
can't be null, it's just confusing.

Also make more stuff actually const.

Differential Revision: https://phabricator.services.mozilla.com/D10647
When you're in a ShadowRoot and can share style with a sibling, the sharing code
is smart enough to skip document author rules.

But then it could get confused if you also include document rules, since
revalidation selectors are matched against these.

This is not a correctness issue, because we're matching more than what we need,
and avoid sharing if we failed.

Also fix the detection for user rules in any_applicable_rule_data.

Differential Revision: https://phabricator.services.mozilla.com/D10117
…ghands.

Most of the change is moving sets around to be static functions on
LonghandIdSet. I think I like that pattern, but I can also make the new set a
global static and add mako code to be `pub` or something.

Though I think the LonghandIdSet::foo().contains(..) pattern is nice to read :)

Differential Revision: https://phabricator.services.mozilla.com/D10653
Doesn't really need to be in a mako file.

Differential Revision: https://phabricator.services.mozilla.com/D10839
…_properties.

Similarly, no need to be here.

Differential Revision: https://phabricator.services.mozilla.com/D10840
It's nicer, I think.

Differential Revision: https://phabricator.services.mozilla.com/D10841
Similarly, the code is not trivial and doesn't really need to be in
mako.

Differential Revision: https://phabricator.services.mozilla.com/D10842
There are better ways, plus the existing code didn't handle aliases at
all (not that it needed to, but it's better if it does).

Differential Revision: https://phabricator.services.mozilla.com/D10838
…ies.

Being in mako is unnecessary, and makes it harder to debug and such.

Differential Revision: https://phabricator.services.mozilla.com/D10843
It's overly generic for no good reason.

Differential Revision: https://phabricator.services.mozilla.com/D10844
It's a bit useless to keep a set of invalid properties if we're going
to use them just to reject lookups into another key. This makes it more
consistent with the cascade / no-references code, and should not change
behavior.

Differential Revision: https://phabricator.services.mozilla.com/D9632
@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

Testing commit 8560c8d with merge 7fcb7c4...

bors-servo added a commit that referenced this pull request Nov 5, 2018
style: Sync changes from mozilla-central.

See each individual commit for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1504644
@emilio
Copy link
Member Author

emilio commented Nov 5, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

📌 Commit 64e70e2 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

Testing commit 64e70e2 with merge 6b32b63...

bors-servo added a commit that referenced this pull request Nov 5, 2018
style: Sync changes from mozilla-central.

See each individual commit for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1504644

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22111)
<!-- Reviewable:end -->
@emilio emilio force-pushed the emilio:gecko-sync branch from 24d26b5 to ac6f921 Nov 5, 2018
@emilio
Copy link
Member Author

emilio commented Nov 5, 2018

@bors-servo r+

  • Now should pass tests :)
@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

📌 Commit ac6f921 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

Testing commit ac6f921 with merge ff7c695...

bors-servo added a commit that referenced this pull request Nov 5, 2018
style: Sync changes from mozilla-central.

See each individual commit for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1504644

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22111)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

💔 Test failed - mac-rel-wpt4

@emilio
Copy link
Member Author

emilio commented Nov 5, 2018

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2018

@bors-servo bors-servo merged commit ac6f921 into servo:master Nov 5, 2018
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.