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

Update WR (switch to new text-decorations API in WR). #17814

Merged
merged 1 commit into from Jul 24, 2017

Conversation

@glennw
Copy link
Member

glennw commented Jul 21, 2017

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.


This change is Reviewable

@highfive
Copy link

highfive commented Jul 21, 2017

Heads up! This PR modifies the following files:

  • @emilio: components/layout/webrender_helpers.rs, components/layout/display_list_builder.rs
@highfive
Copy link

highfive commented Jul 21, 2017

warning Warning warning

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

glennw commented Jul 21, 2017

@highfive highfive assigned emilio and unassigned Manishearth Jul 21, 2017
@glennw
Copy link
Member Author

glennw commented Jul 21, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

Trying commit 06fd6b2 with merge f7f69a5...

bors-servo added a commit that referenced this pull request Jul 21, 2017
Update WR (switch to new text-decorations API in WR).

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.
@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

💔 Test failed - linux-rel-css

@glennw
Copy link
Member Author

glennw commented Jul 21, 2017

Huh, test failure seems related but doesn't occur locally.

@glennw glennw force-pushed the glennw:update-wr-text-decorations branch from 06fd6b2 to 24f9f52 Jul 21, 2017
@glennw
Copy link
Member Author

glennw commented Jul 21, 2017

Ah, I see the failure now. Before this PR, no text decoration showed up at all in this test, so it accidentally passes. With this update, the text decoration does show up, but exposes a bug in how Servo handles vertical-align. Marked the test as an expected fail given it was previously incorrectly marked as a PASS.

@glennw
Copy link
Member Author

glennw commented Jul 21, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

Trying commit 24f9f52 with merge b7019a9...

bors-servo added a commit that referenced this pull request Jul 21, 2017
Update WR (switch to new text-decorations API in WR).

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.

<!-- 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/17814)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented Jul 21, 2017

That is an instance of #13479.

@bors-servo
Copy link
Contributor

bors-servo commented Jul 21, 2017

The latest upstream changes (presumably #17822) made this pull request unmergeable. Please resolve the merge conflicts.

@glennw glennw force-pushed the glennw:update-wr-text-decorations branch from 24f9f52 to 3ec092a Jul 23, 2017
@glennw
Copy link
Member Author

glennw commented Jul 23, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2017

Trying commit 3ec092a with merge 2823794...

bors-servo added a commit that referenced this pull request Jul 23, 2017
Update WR (switch to new text-decorations API in WR).

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.

<!-- 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/17814)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2017

@glennw
Copy link
Member Author

glennw commented Jul 23, 2017

r? anyone

@emilio
emilio approved these changes Jul 23, 2017
Copy link
Member

emilio left a comment

LGTM, with that either addressed or explained.

@@ -2135,7 +2135,7 @@ impl FragmentDisplayListBuilding for Fragment {
.get_inheritedtext()
._servo_text_decorations_in_effect;
// Note that the text decoration colors are always the same as the text color.
text_decorations.underline = text_decorations.underline.map(|_| text_color);
text_decorations.underline = text_decorations.underline;//.map(|_| text_color);

This comment has been minimized.

@emilio

emilio Jul 23, 2017

Member

Why is this correct? Mind leaving a comment so people note it's intentional?

Also, if this change is really correct, please remove the leftover comment.

This comment has been minimized.

@glennw

glennw Jul 24, 2017

Author Member

Oops, that was a mistake, fixed.

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.
@glennw glennw force-pushed the glennw:update-wr-text-decorations branch from 3ec092a to dc82366 Jul 24, 2017
@glennw
Copy link
Member Author

glennw commented Jul 24, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Jul 24, 2017

📌 Commit dc82366 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Jul 24, 2017

Testing commit dc82366 with merge 46ffcba...

bors-servo added a commit that referenced this pull request Jul 24, 2017
Update WR (switch to new text-decorations API in WR).

This only makes use of the "Solid" text decoration type, which
matches the existing support. WR now supports dotted, dashed
and wavy text decorations, but supporting those will need some
extra work in Servo to pass through the correct values.

<!-- 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/17814)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 24, 2017

@bors-servo bors-servo merged commit dc82366 into servo:master Jul 24, 2017
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.