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

Partial text decoration support for layout 2020 #25888

Merged
merged 15 commits into from Mar 23, 2020

Conversation

@ferjm
Copy link
Member

ferjm commented Mar 4, 2020

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25166
  • There are tests for these changes
@highfive
Copy link

highfive commented Mar 4, 2020

Heads up! This PR modifies the following files:

  • @jgraham: tests/wpt/include-layout-2020.ini
  • @emilio: components/style/properties/shorthands/text.mako.rs, components/style/properties/longhands/text.mako.rs
@ferjm
Copy link
Member Author

ferjm commented Mar 4, 2020

@bors-servo try=layout-2020

@bors-servo
Copy link
Contributor

bors-servo commented Mar 4, 2020

🙁 There is no try chooser layout-2020 for this repo, try one of: linux, mac, windows, wpt, wpt-2020, wpt-mac, wpt-android, android, magicleap, arm

@ferjm
Copy link
Member Author

ferjm commented Mar 4, 2020

@bor-servo try=wpt-2020

let text_decorations = fragment
.parent_style
.get_inherited_text()
.text_decorations_in_effect;

This comment has been minimized.

Copy link
@emilio

emilio Mar 4, 2020

Member

It would be good to not use the text_decorations_in_effect mechanism, because it's pretty busted, see https://searchfox.org/mozilla-central/rev/d5b34cc8872177d3ee071e06f787c2a14268595b/servo/components/style/style_adjuster.rs#550

@CYBAI
Copy link
Collaborator

CYBAI commented Mar 4, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Mar 4, 2020

Trying commit f7fd0f9 with merge 63167b9...

bors-servo added a commit that referenced this pull request Mar 4, 2020
[WIP] Text decoration support for layout 2020

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25166
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Mar 4, 2020

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Mar 4, 2020

👀

  ▶ FAIL [expected PASS] /css/CSS2/generated-content/content-070.xht
  │   → /css/CSS2/generated-content/content-070.xht 520d8e614f1c2732a4d76fa0a46b43dc23bd2625
  └   → /css/CSS2/generated-content/content-070-ref.html 31ea9caaabf2e1460d2a7f3e2d5b8e45ca608e5d
  ▶ PASS [expected FAIL] /_mozilla/css/text_decoration_smoke_a.html
  ▶ PASS [expected FAIL] /_mozilla/css/text_decoration_underline_subpx_a.html
@ferjm ferjm force-pushed the ferjm:text.decoration.2020 branch from f7fd0f9 to f57d4ee Mar 4, 2020
@highfive highfive removed the S-tests-failed label Mar 4, 2020
@ferjm
Copy link
Member Author

ferjm commented Mar 5, 2020

@bors-servo try=wpt-2020

@bors-servo
Copy link
Contributor

bors-servo commented Mar 5, 2020

Trying commit d8210c4 with merge b6a9f98...

bors-servo added a commit that referenced this pull request Mar 5, 2020
[WIP] Text decoration support for layout 2020

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25166
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Mar 5, 2020

☀️ Test successful - status-taskcluster
State: approved= try=True

@ferjm ferjm force-pushed the ferjm:text.decoration.2020 branch from d8210c4 to e95f1b5 Mar 5, 2020
@ferjm ferjm changed the title [WIP] Text decoration support for layout 2020 Partial text decoration support for layout 2020 Mar 5, 2020
@ferjm
Copy link
Member Author

ferjm commented Mar 5, 2020

r? @emilio

Copy link
Member

emilio left a comment

you need to walk up the fragment tree to figure out the actually-in-effect decorations.

@ferjm ferjm added the A-layout/2020 label Mar 6, 2020
@nox
Copy link
Member

nox commented Mar 6, 2020

you need to walk up the fragment tree to figure out the actually-in-effect decorations.

I think we can accumulate when we recurse down the fragment tree, right?

@emilio
Copy link
Member

emilio commented Mar 6, 2020

Yeah, that should work too of course.

@ferjm ferjm force-pushed the ferjm:text.decoration.2020 branch from e95f1b5 to d7cf405 Mar 9, 2020
@nox
Copy link
Member

nox commented Mar 10, 2020

That approach look a bit unfortunate to me. Can't we just have a variable of type TextDecorationLine when creating the fragment tree, instead of having to do additional loops over already constructed fragments? I think the current algo leads to a quadratic complexity.

@ferjm ferjm force-pushed the ferjm:text.decoration.2020 branch from ba033f4 to eea7eb4 Mar 23, 2020
@ferjm
Copy link
Member Author

ferjm commented Mar 23, 2020

r? ping @nox @emilio :)

@nox
Copy link
Member

nox commented Mar 23, 2020

@bors-servo r+

Didn't realise that had not landed yet, sorry.

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

📌 Commit eea7eb4 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

Testing commit eea7eb4 with merge 718bebd...

bors-servo added a commit that referenced this pull request Mar 23, 2020
Partial text decoration support for layout 2020

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25166
- [X] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

💔 Test failed - status-taskcluster

jdm added 2 commits Mar 23, 2020
@jdm
Copy link
Member

jdm commented Mar 23, 2020

@bors-servo r=nox

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

📌 Commit 132cee5 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

Testing commit 132cee5 with merge acd1467...

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2020

☀️ Test successful - status-taskcluster
Approved by: nox
Pushing acd1467 to master...

@bors-servo bors-servo merged commit acd1467 into servo:master Mar 23, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@ferjm ferjm deleted the ferjm:text.decoration.2020 branch Apr 10, 2020
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.

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