Skip to content

Move LayerKind and ScrollPolicy enums to gfx_traits - #8938

Merged
bors-servo merged 1 commit into
servo:masterfrom
nerith:gfx
Dec 23, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
nerith:gfx

Conversation

@nerith

@nerith nerith commented Dec 11, 2015

Copy link
Copy Markdown
Contributor

Fixes #8836.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 11, 2015
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!

@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 1b58410 with merge e656fac...

bors-servo pushed a commit that referenced this pull request Dec 11, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - gonk

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Dec 11, 2015
@KiChjang

Copy link
Copy Markdown
Contributor

It looks like you need to do a ./mach update-cargo -p gfx_traits

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Dec 11, 2015
@jdm

jdm commented Dec 11, 2015

Copy link
Copy Markdown
Member

@nerith: Could you try an experiment for me? It looks like it might be possible to move LayerId and LayerProperties into gfx_traits, which would allow us to remove the new dependency in msg on gfx_traits.

@jdm jdm added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 11, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Dec 11, 2015
@nerith

nerith commented Dec 17, 2015

Copy link
Copy Markdown
Contributor Author

@jdm: It is possible to move LayerId and LayerProperties into gfx_traits. This also includes moving ScriptToCompositorMsg.

@jdm

jdm commented Dec 17, 2015

Copy link
Copy Markdown
Member

@nerith Could we move ScriptToCompositorMsg to script_traits and make script_traits depend on gfx_traits? If so, that would be my preferred solution. If not, go ahead and push the changes with everything moved to gfx_traits.

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-answer Someone asked a question that requires an answer. labels Dec 17, 2015
@jdm

jdm commented Dec 20, 2015

Copy link
Copy Markdown
Member

Looks like my last comment is addressed by #9027, so we can rebase on top of that when it merges.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 21, 2015
This also moves LayerId and LayerProperties to gfx_traits.

Fixes servo#8836.
@Ms2ger

Ms2ger commented Dec 22, 2015

Copy link
Copy Markdown
Contributor

Does gfx_traits need to depend on util? That would be nice to avoid.

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Dec 22, 2015
@jdm

jdm commented Dec 22, 2015

Copy link
Copy Markdown
Member

It looks like the answer to that is no, since there's no use util lines in the diff.

@nerith

nerith commented Dec 22, 2015

Copy link
Copy Markdown
Contributor Author

@Ms2ger @jdm If the dependency on util is removed, gfx_traits can't be compiled.

servo/components/gfx_traits/lib.rs:42:69: 42:73 error: failed to resolve. Maybe a missing `extern crate util`? [E0433]
servo/components/gfx_traits/lib.rs:42 #[derive(Clone, PartialEq, Eq, Copy, Deserialize, Serialize, Debug, HeapSizeOf)]
                                                                                                          ^~~~
servo/components/gfx_traits/lib.rs:42:69: 42:79 note: in this expansion of #[derive_HeapSizeOf] (defined in servo/components/gfx_traits/lib.rs)
servo/components/gfx_traits/lib.rs:42:69: 42:73 help: run `rustc --explain E0433` to see a detailed explanation
servo/components/gfx_traits/lib.rs:42:69: 42:79 error: use of undeclared trait name `util::mem::HeapSizeOf` [E0405]
servo/components/gfx_traits/lib.rs:42 #[derive(Clone, PartialEq, Eq, Copy, Deserialize, Serialize, Debug, HeapSizeOf)]
                                                                                                          ^~~~~~~~~~
servo/components/gfx_traits/lib.rs:42:69: 42:79 note: in this expansion of #[derive_HeapSizeOf] (defined in servo/components/gfx_traits/lib.rs)
servo/components/gfx_traits/lib.rs:42:69: 42:79 help: run `rustc --explain E0405` to see a detailed explanation
servo/components/gfx_traits/lib.rs:50:68: 50:72 error: failed to resolve. Maybe a missing `extern crate util`? [E0433]
servo/components/gfx_traits/lib.rs:50 #[derive(Clone, PartialEq, Eq, Copy, Hash, Deserialize, Serialize, HeapSizeOf)]
                                                                                                         ^~~~
servo/components/gfx_traits/lib.rs:50:68: 50:78 note: in this expansion of #[derive_HeapSizeOf] (defined in servo/components/gfx_traits/lib.rs)
servo/components/gfx_traits/lib.rs:50:68: 50:72 help: run `rustc --explain E0433` to see a detailed explanation
servo/components/gfx_traits/lib.rs:50:68: 50:78 error: use of undeclared trait name `util::mem::HeapSizeOf` [E0405]
servo/components/gfx_traits/lib.rs:50 #[derive(Clone, PartialEq, Eq, Copy, Hash, Deserialize, Serialize, HeapSizeOf)]
                                                                                                         ^~~~~~~~~~
servo/components/gfx_traits/lib.rs:50:68: 50:78 note: in this expansion of #[derive_HeapSizeOf] (defined in servo/components/gfx_traits/lib.rs)
servo/components/gfx_traits/lib.rs:50:68: 50:78 help: run `rustc --explain E0405` to see a detailed explanation
error: aborting due to 4 previous errors
Could not compile `gfx_traits`.

@Ms2ger

Ms2ger commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

Sigh. Thanks for checking.

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 637afec has been approved by Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 637afec with merge 68c4f29...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 23, 2015
bors-servo pushed a commit that referenced this pull request Dec 23, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@jdm

jdm commented Dec 23, 2015

Copy link
Copy Markdown
Member

Thanks @nerith!

@nerith
nerith deleted the gfx branch January 16, 2016 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants