Skip to content

style: Remove -servo-text-decorations-in-effect - #19757

Merged
bors-servo merged 2 commits into
servo:masterfrom
emilio:bye-custom-cascade
Jan 15, 2018
Merged

bors-servo merged 2 commits into
servo:masterfrom
emilio:bye-custom-cascade

Conversation

@emilio

@emilio emilio commented Jan 13, 2018 •

Copy link
Copy Markdown
Member

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/longhand/inherited_text.mako.rs, components/style/properties/gecko.mako.rs, components/style/values/specified/box.rs, components/style/properties/data.py, components/style/values/computed/text.rs and 7 more
  • @canaltinova: components/style/properties/longhand/inherited_text.mako.rs, components/style/properties/gecko.mako.rs, components/style/values/specified/box.rs, components/style/properties/data.py, components/style/values/computed/text.rs and 7 more

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify style and layout code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 13, 2018
@emilio

emilio commented Jan 13, 2018

Copy link
Copy Markdown
Member Author

This is on top of #19709 (cc @CYBAI)

r? @SimonSapin

@highfive highfive assigned SimonSapin and unassigned cbrewster Jan 13, 2018
@emilio

emilio commented Jan 13, 2018

Copy link
Copy Markdown
Member Author

(or @mbrubeck)

/// The "used" text-decorations that apply to this box.
///
/// FIXME(emilio): This is technically a box-tree concept, and
/// would be nice to move away from syle.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the end.

from style

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed

@emilio

emilio commented Jan 13, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit f65d0e0 with merge 5172115...

bors-servo pushed a commit that referenced this pull request Jan 13, 2018
style: Remove -servo-text-decorations-in-effect

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.

<!-- 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/19757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-dev

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Jan 13, 2018
@emilio
emilio force-pushed the bye-custom-cascade branch from f65d0e0 to 247677e Compare January 14, 2018 14:28
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Jan 14, 2018
@emilio

emilio commented Jan 14, 2018

Copy link
Copy Markdown
Member Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 247677e with merge 9267c0d...

bors-servo pushed a commit that referenced this pull request Jan 14, 2018
style: Remove -servo-text-decorations-in-effect

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.

<!-- 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/19757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Jan 14, 2018
@CYBAI

CYBAI commented Jan 14, 2018

Copy link
Copy Markdown
Member

I saw bunch of tests failed with CRASH status; maybe need a retry?

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.
@emilio
emilio force-pushed the bye-custom-cascade branch from 247677e to 9dc25ed Compare January 14, 2018 16:10
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Jan 14, 2018
@emilio

emilio commented Jan 14, 2018

Copy link
Copy Markdown
Member Author

Nah, that was my bad. I need to avoid building OsMesa because I use LLVM trunk, and I need to land #19396. So I accidentally committed the commented out lines.

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 9dc25ed with merge 76a21cb...

bors-servo pushed a commit that referenced this pull request Jan 14, 2018
style: Remove -servo-text-decorations-in-effect

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.

<!-- 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/19757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
State: approved= try=True

@nox

nox commented Jan 15, 2018

Copy link
Copy Markdown
Contributor

Looks good to me with a green geckotry.

@emilio

emilio commented Jan 15, 2018

Copy link
Copy Markdown
Member Author

@bors-servo r=nox

  • This is servo-only code.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 9dc25ed has been approved by nox

@highfive highfive assigned nox and unassigned SimonSapin Jan 15, 2018
@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 Jan 15, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9dc25ed with merge f2036e7...

bors-servo pushed a commit that referenced this pull request Jan 15, 2018
style: Remove -servo-text-decorations-in-effect

It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.

Replace it with a normal field instead.

Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.

Compute it after the cascade process in StyleAdjuster.

<!-- 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/19757)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: nox
Pushing f2036e7 to master...

@bors-servo
bors-servo merged commit 9dc25ed into servo:master Jan 15, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 15, 2018
@emilio emilio mentioned this pull request Feb 3, 2018
48 of 49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants