Skip to content

Use more WebRender types in gfx - #19824

Merged
bors-servo merged 1 commit into
servo:masterfrom
pyfisch:dl-move
Jan 30, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
pyfisch:dl-move

Conversation

@pyfisch

@pyfisch pyfisch commented Jan 20, 2018 •

Copy link
Copy Markdown
Contributor

Removes ImageBorder details from gfx.
Use WebRender BorderRadius in BoxShadow.
Stores cursors as integer.
Use FilterOp, BorderWidths from WebRender.
Store content_rect as LayoutRect.

This amends #19782.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @emilio: components/layout/display_list/webrender_helpers.rs, components/layout/display_list/builder.rs

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

Copy link
Copy Markdown

warning Warning warning

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

@pyfisch

pyfisch commented Jan 20, 2018

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 46b9b52 with merge 4a2aa7c...

bors-servo pushed a commit that referenced this pull request Jan 20, 2018
Use more WebRender types in gfx

Removes ImageBorder details from gfx.
Use WebRender BorderRadius in BoxShadow.
Stores cursors as integer.
Use FilterOp, BorderWidths from WebRender.
Store content_rect as LayoutRect.

This amends #19782.

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

Copy link
Copy Markdown
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Jan 20, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

@pyfisch

pyfisch commented Jan 21, 2018

Copy link
Copy Markdown
Contributor Author

Rebased.

@jdm

jdm commented Jan 22, 2018

Copy link
Copy Markdown
Member

r? @glennw

@highfive highfive assigned glennw and unassigned asajeffrey Jan 22, 2018
@pyfisch

pyfisch commented Jan 29, 2018

Copy link
Copy Markdown
Contributor Author

r? @mrobinson

As you already reviewed the previous PR (#19782) can you have a look here too?

The S-needs-rebase is outdated.

@highfive highfive assigned mrobinson and unassigned glennw Jan 29, 2018
@mrobinson mrobinson removed the S-needs-rebase There are merge conflict errors. label Jan 29, 2018

@mrobinson mrobinson left a comment

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.

This looks really great. Feel free to land when the nit is fixed.

},
let details = match border_style_struct.border_image_source {
Either::First(_) => Some(BorderDetails::Normal(NormalBorder {
left: webrender_api::BorderSide {

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.

I think it would be better to just include BorderSide and use it directly.

@mrobinson

Copy link
Copy Markdown
Member

@bors-servo delegate+

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @pyfisch can now approve this pull request

Removes ImageBorder details from gfx.
Use WebRender BorderRadius in BoxShadow.
Stores cursors as integer.
Use FilterOp, BorderWidths from WebRender.
Store content_rect as LayoutRect.
@pyfisch

pyfisch commented Jan 30, 2018

Copy link
Copy Markdown
Contributor Author

@bors-servo r+ r=mrobinson

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8bb50ac has been approved by mrobinson

@bors-servo

Copy link
Copy Markdown
Contributor

💡 This pull request was already approved, no need to approve it again.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8bb50ac has been approved by pyfisch

@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 30, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8bb50ac with merge bad4638...

bors-servo pushed a commit that referenced this pull request Jan 30, 2018
Use more WebRender types in gfx

Removes ImageBorder details from gfx.
Use WebRender BorderRadius in BoxShadow.
Stores cursors as integer.
Use FilterOp, BorderWidths from WebRender.
Store content_rect as LayoutRect.

This amends #19782.

<!-- 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/19824)
<!-- 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: pyfisch
Pushing bad4638 to master...

@bors-servo
bors-servo merged commit 8bb50ac into servo:master Jan 30, 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 30, 2018
@pyfisch
pyfisch deleted the dl-move branch January 30, 2018 11:31
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