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

WR update #22973

Merged
merged 8 commits into from Mar 22, 2019
Merged

WR update #22973

merged 8 commits into from Mar 22, 2019

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Mar 5, 2019

Need rust-windowing/winit#803

@emilio can I ask you to look at the "WR udpate: layout" commit? There are a few changes I'm not sure about (should_inflate, the new filters_data and cache_tiles).

Fix: #22993


This change is Reviewable

@highfive
Copy link

highfive commented Mar 5, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/Cargo.toml, components/webdriver_server/Cargo.toml
  • @jgraham: components/webdriver_server/Cargo.toml
  • @edunham: servo-tidy.toml
  • @KiChjang: components/script/Cargo.toml, components/net_traits/Cargo.toml
  • @emilio: components/layout/Cargo.toml, components/style/Cargo.toml, components/layout/display_list/webrender_helpers.rs, components/layout/display_list/builder.rs
@highfive
Copy link

highfive commented Mar 5, 2019

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@jdm
Copy link
Member

jdm commented Mar 5, 2019

If we remove the use of the icon_loading feature (and replace it with code from https://github.com/tomaka/winit/pull/799/files) then can we skip the winit issue?

@bors-servo
Copy link
Contributor

bors-servo commented Mar 5, 2019

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

@@ -2012,6 +2012,7 @@ impl Fragment {
offset: LayoutVector2D::new(shadow.horizontal.px(), shadow.vertical.px()),
color: self.style.resolve_color(shadow.color).to_layout(),
blur_radius: shadow.blur.px(),
should_inflate: false,

This comment has been minimized.

@emilio

emilio Mar 5, 2019

Member

This should be true (Gecko inflates shadow bounds already to account for the blurs, Servo does not).

@@ -233,7 +243,9 @@ impl WebRenderDisplayItemConverter for DisplayItem {
stacking_context.transform_style,
stacking_context.mix_blend_mode,
&stacking_context.filters,
&[],

This comment has been minimized.

@emilio

emilio Mar 5, 2019

Member

This seems fine, it's only used for component transfer iirc.

RasterSpace::Screen,
/* cache_tiles = */ false,

This comment has been minimized.

@emilio

emilio Mar 5, 2019

Member

You should probably set this to true only for the root stacking context. @gw3583 can probably confirm that.

This comment has been minimized.

@gw3583

gw3583 Mar 5, 2019

Contributor

I would probably just leave it as false unconditionally, for now. That will preserve existing behavior. Enabling picture caching could be done as a separate step / follow up.

@paulrouget paulrouget force-pushed the paulrouget:wrupdate branch 2 times, most recently from 9cf87d3 to a40570c Mar 6, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 6, 2019

@gw3583 or @emilio: can you look at the font API commit? Some changes were necessary for Windows.

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 6, 2019

@jdm:

If we remove the use of the icon_loading feature (and replace it with code from https://github.com/tomaka/winit/pull/799/files) then can we skip the winit issue?

Yes, this would have been easier. But at that point I've updated servo and skia to the new winit/glutin versions, so I'd rather go with it.

We can remove the dependency on the the icon_loading feature later.

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 7, 2019

The rand update is making things difficult on Android. I'm going to do what @jdm suggested instead.

@paulrouget paulrouget force-pushed the paulrouget:wrupdate branch 3 times, most recently from 1a7a15f to 721e68a Mar 7, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 7, 2019

@highfive highfive assigned emilio and unassigned nox Mar 7, 2019
@emilio
emilio approved these changes Mar 8, 2019
Copy link
Member

emilio left a comment

LGTM

let face = font.create_font_face();
let files = face.get_files();
if files.len() >= 1 {
if let Some(path) = files[0].get_font_file_path() {

This comment has been minimized.

@emilio

emilio Mar 8, 2019

Member

This could be written more clearly like:

if self.bytes.is_some() {
    return None;
}
let font = ...
let face = ...
let files = ...
let path = files.iter().next()?.get_font_file_path()?;
Some(NativeFontHandle { .. })
@@ -209,12 +211,20 @@ impl WebRenderDisplayItemConverter for DisplayItem {
stacking_context.perspective.is_some()
);

This comment has been minimized.

@emilio

emilio Mar 8, 2019

Member

I'd remove the assertion since it's now a release assertion effectively right below.

@atouchet
Copy link
Contributor

atouchet commented Mar 10, 2019

winit 0.19/glutin 0.20 are now out.

@paulrouget paulrouget force-pushed the paulrouget:wrupdate branch 2 times, most recently from 1e05b4a to 9adaa15 Mar 11, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 11, 2019

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Mar 11, 2019

📌 Commit 9adaa15 has been approved by emilio

bors-servo added a commit that referenced this pull request Mar 22, 2019
WR update

~Need rust-windowing/winit#803

@emilio can I ask you to look at the *"WR udpate: layout"* commit? There are a few changes I'm not sure about (should_inflate, the new filters_data and cache_tiles).

Fix: #22993

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

bors-servo commented Mar 22, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
State: approved= try=True

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 22, 2019

I'll go ahead and land this.

I had to mark 3 tests as FAIL, but the only one that's actually worrying is the mix-blend test on background behavior. Hope to fix that soon. See servo/webrender#3594

@paulrouget
Copy link
Contributor Author

paulrouget commented Mar 22, 2019

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2019

📌 Commit f1f7779 has been approved by emilio

bors-servo added a commit that referenced this pull request Mar 22, 2019
WR update

~Need rust-windowing/winit#803

@emilio can I ask you to look at the *"WR udpate: layout"* commit? There are a few changes I'm not sure about (should_inflate, the new filters_data and cache_tiles).

Fix: #22993

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

bors-servo commented Mar 22, 2019

Testing commit f1f7779 with merge ef9a4a1...

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2019

💔 Test failed - mac-rel-wpt4

@jdm
Copy link
Member

jdm commented Mar 22, 2019

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Mar 22, 2019

Testing commit f1f7779 with merge 525484a...

bors-servo added a commit that referenced this pull request Mar 22, 2019
WR update

~Need rust-windowing/winit#803

@emilio can I ask you to look at the *"WR udpate: layout"* commit? There are a few changes I'm not sure about (should_inflate, the new filters_data and cache_tiles).

Fix: #22993

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

bors-servo commented Mar 22, 2019

@bors-servo bors-servo merged commit f1f7779 into servo:master Mar 22, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 4, 2019
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 4, 2019
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
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.