Skip to content

style: Sync changes from mozilla-central. - #22111

Merged
bors-servo merged 32 commits into
servo:masterfrom
emilio:gecko-sync
Nov 5, 2018
Merged

bors-servo merged 32 commits into
servo:masterfrom
emilio:gecko-sync

Conversation

@emilio

@emilio emilio commented Nov 5, 2018 •

Copy link
Copy Markdown
Member

emilio and others added 30 commits November 5, 2018 12:28
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
mozilla/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
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
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
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
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
Copy Markdown
Contributor

⌛ Testing commit 8560c8d with merge 7fcb7c4...

bors-servo pushed a commit that referenced this pull request Nov 5, 2018
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 5, 2018
@emilio

emilio commented Nov 5, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 64e70e2 has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 5, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 64e70e2 with merge 6b32b63...

bors-servo pushed a commit that referenced this pull request Nov 5, 2018
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 5, 2018
@emilio

emilio commented Nov 5, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r+

  • Now should pass tests :)

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ac6f921 has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 5, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ac6f921 with merge ff7c695...

bors-servo pushed a commit that referenced this pull request Nov 5, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt4

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 5, 2018
@emilio

emilio commented Nov 5, 2018

Copy link
Copy Markdown
Member Author

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit ac6f921 into servo:master Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-tests-failed The changes caused existing tests to fail.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants