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. #20900

Merged
merged 16 commits into from Jun 2, 2018
Merged

Conversation

@emilio
Copy link
Member

emilio commented Jun 2, 2018

See each individual commit for details.


This change is Reviewable

muhammedyusuf-sermet and others added 16 commits May 29, 2018
Bug: 1463599
Reviewed-by: mattwoodrow
MozReview-Commit-ID: Ln72MOlHXwi
Corresponding to this spec change;
w3c/csswg-drafts@3281266

The expected value in test_transitions_per_property.html can be calculated;

  'start' + ('end' - 'start') * 0.25

Bug: 1464647
Reviewed-by: birtles, emilio
MozReview-Commit-ID: NI9gOUuPnG
MozReview-Commit-ID: 5CdOdQPZzyb
…fect the namespace map.

Bug: 1464865
Reviewed-by: xidorn
MozReview-Commit-ID: 9bjlEBExqsr
Bug: 1464865
Reviewed-by: xidorn
MozReview-Commit-ID: 8ClaBR9ooGb
Reviewed-by: hiro
But: 1465066
MozReview-Commit-ID: D9rq8CZIgf5
… other NAC inherit from their parents.

Currently, NAC always inherits from the closest non-NAC ancestor element,
regardless of whether it is for an element-backed pseudo or not.

This patch changes the inheritance so that for element-backed pseudos, we
inherit from the closest native anonymous root's parent, and for other NAC we
inherit from the parent.

This prevents the following two issues and allows us to remove the
NODE_IS_NATIVE_ANONYMOUS flag:

 * Avoiding inheriting from the non-NAC ancestor in XBL bindings bound to NAC.

   - This is no longer a problem since we apply the rule only if we're a
     pseudo-element, and all pseudo-elements are in native anonymous subtrees.

   - This also allows to remove the hack that propagates the
     NODE_IS_NATIVE_ANONYMOUS flag from the ::cue pseudo-element from
     BindToTree.

 * Inheriting from the wrong thing if we're a nested NAC subtree.

   - We no longer look past our NAC subtree, with the exception of
     ::-moz-number-text's pseudo-elements, for which we do want to propagate
     ::placeholder to.

A few rules from forms.css have been modified because they're useless or needed
to propagate stuff to the anonymous form control in input[type="number"] which
previously inherited from the input itself.

Bug: 1460382
Reviewed-by: heycam
MozReview-Commit-ID: IDKYt3EJtSH
Bug: 1463589
Reviewed-by: emilio
MozReview-Commit-ID: 4fOqln3oOpC
Change mStopColor, mFloodColor, and mLightingColor in nsStyleSVGReset.

Bug: 1457353
Reviewed-by: xidorn
MozReview-Commit-ID: KMRMtHk1jNK
Bug: 1464496
Reviewed-by: emilio
MozReview-Commit-ID: By9fV70Oq0K
…t it.

Bug: 1466008
Reviewed-by: xidorn
MozReview-Commit-ID: JyzwaRgf5Ct
Bug: 1466095
Reviewed-by: xidorn
MozReview-Commit-ID: 2BmtSDPmHj9
…ce we use it.

Though I think it may be slightly fishy if used in, e.g., a @Keyframes block.

For our purposes right now it doesn't make a difference, I think.

Bug: 1466008
MozReview-Commit-ID: A7VCTOqaIuB
That way we avoid cfg churn in WillChange stuff.
…code.
@highfive
Copy link

highfive commented Jun 2, 2018

Heads up! This PR modifies the following files:

  • @bholley: components/style/stylesheets/rule_parser.rs, components/style/properties/longhand/svg.mako.rs, components/style/traversal.rs, components/style/matching.rs, components/style/sharing/mod.rs and 14 more
  • @asajeffrey: components/script/dom/cssstyledeclaration.rs
  • @canaltinova: components/style/stylesheets/rule_parser.rs, components/style/properties/longhand/svg.mako.rs, components/style/traversal.rs, components/style/matching.rs, components/style/sharing/mod.rs and 14 more
  • @fitzgen: components/script/dom/cssstyledeclaration.rs
  • @KiChjang: components/script/dom/cssstyledeclaration.rs
@highfive
Copy link

highfive commented Jun 2, 2018

warning Warning warning

  • These commits modify style and script code, but no tests are modified. Please consider adding a test!
@emilio
Copy link
Member Author

emilio commented Jun 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

📌 Commit 97d8f6b has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

Testing commit 97d8f6b with merge 2434c2b...

bors-servo added a commit that referenced this pull request Jun 2, 2018
style: sync changes from mozilla-central.

See each individual commit for details.
@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

💔 Test failed - linux-rel-wpt

@jdm
Copy link
Member

jdm commented Jun 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

💔 Test failed - linux-rel-wpt

@jdm
Copy link
Member

jdm commented Jun 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 2, 2018

@bors-servo bors-servo merged commit 97d8f6b into servo:master Jun 2, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: Exception
Details
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

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