Skip to content

Improve implementation of DOMRect and implement DOMRectReadOnly - #7415

Merged
bors-servo merged 2 commits into
servo:masterfrom
tschneidereit:dom-rect
Oct 17, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
tschneidereit:dom-rect

Conversation

@tschneidereit

Copy link
Copy Markdown
Contributor

Passes most tests from test-css. The remaining ones should pass once we have w3c/csswg-test#834.

r? @Ms2ger

Review on Reviewable

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

Copy link
Copy Markdown
Contributor Author

Rookie mistake. Will fix.

@bors-servo

Copy link
Copy Markdown
Contributor

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

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 27, 2015
@tschneidereit
tschneidereit force-pushed the dom-rect branch 3 times, most recently from c6332c0 to 6f4a68e Compare August 28, 2015 11:48
@nox nox added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-needs-rebase There are merge conflict errors. S-awaiting-review There is new code that needs to be reviewed. labels Aug 28, 2015
@nox

nox commented Aug 28, 2015

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-needs-code-changes

Use drafts.fxtf.org links, fix the nits, and it's all good.


Reviewed 11 of 11 files at r1.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/script/devtools.rs, line 106 [r1] (raw file):
.r() is useless now that Root implements Deref.


components/script/dom/domrect.rs, line 5 [r1] (raw file):
Nit: We generally don't import Wrap in IDL implementations, instead we import both the Binding module and the Methods trait inside.


components/script/dom/domrectreadonly.rs, line 94 [r1] (raw file):
Implement helper methods on DOMRect itself, without an intermediate trait.


Comments from the review on Reviewable.io

@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 Aug 28, 2015
@nox

nox commented Aug 28, 2015

Copy link
Copy Markdown
Contributor

Reviewed 1 of 12 files at r2, 11 of 11 files at r3.
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful.


components/script/dom/domrectreadonly.rs, line 41 [r3] (raw file):
set_x


components/script/dom/domrectreadonly.rs, line 45 [r3] (raw file):
set_y


components/script/dom/domrectreadonly.rs, line 49 [r3] (raw file):
set_width


components/script/dom/domrectreadonly.rs, line 53 [r3] (raw file):
set_height


Comments from the review on Reviewable.io

@nox

nox commented Aug 28, 2015

Copy link
Copy Markdown
Contributor

Reviewed 2 of 2 files at r4.
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks pending.


Comments from the review on Reviewable.io

@nox nox self-assigned this Aug 28, 2015
@nox

nox commented Aug 28, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit d5049c9 has been approved by nox

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit d5049c9 with merge 32bb538...

@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 Aug 28, 2015
bors-servo pushed a commit that referenced this pull request Aug 28, 2015
Improve implementation of DOMRect and implement DOMRectReadOnly

Passes most tests from test-css. The remaining ones should pass once we have w3c/csswg-test#834.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7415)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac1

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 28, 2015
@jdm

jdm commented Aug 28, 2015

Copy link
Copy Markdown
Member
/_mozilla/mozilla/getBoundingClientRect.html
--------------------------------------------
FAIL Untitled
FAIL Untitled 1
/html/rendering/replaced-elements/svg-embedded-sizing/svg-in-img-auto.html
--------------------------------------------------------------------------
PASS expected FAIL placeholder: 'img', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', 
PASS expected FAIL placeholder: 'img', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', containerHeightStyle: '400px', placeholderWidthAttr: '50%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
/html/rendering/replaced-elements/svg-embedded-sizing/svg-in-img-percentage.html
--------------------------------------------------------------------------------
PASS expected FAIL placeholder: 'img', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '200', 
PASS expected FAIL placeholder: 'img', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '200', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
PASS expected FAIL placeholder: 'img', placeholderWidthAttr: '50%', placeholderHeightAttr: '100%', svgViewBoxAttr: '0 0 100 200', svgWidthAttr: '25%', svgHeightAttr: '25%', 
/html/rendering/replaced-elements/svg-inline-sizing/svg-inline.html
-------------------------------------------------------------------
PASS expected FAIL svgViewBoxAttr: '0 0 100 200', 
PASS expected FAIL containerHeightStyle: '400px', svgViewBoxAttr: '0 0 100 200', 

@nox nox added S-awaiting-answer Someone asked a question that requires an answer. S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Sep 13, 2015
@nox

nox commented Sep 13, 2015

Copy link
Copy Markdown
Contributor

Reviewed 3 of 3 files at r6.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

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

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 18, 2015
@nox

nox commented Oct 4, 2015

Copy link
Copy Markdown
Contributor

@tschneidereit Ping?

@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 Oct 17, 2015
@tschneidereit

Copy link
Copy Markdown
Contributor Author

@nox, I finally rebased this, should be ready for review again.

@nox

nox commented Oct 17, 2015

Copy link
Copy Markdown
Contributor

Still one issue and this is good to go.

-S-awaiting-answer -S-awaiting-answer -S-needs-rebase


Reviewed 6 of 6 files at r7.
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks pending.


tests/wpt/metadata-css/geometry-1_dev/html/DOMRect-001.htm.ini, line 14 [r7] (raw file):
We still don't have the changes from your csswg-test fix?


Comments from the review on Reviewable.io

@nox nox 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. S-needs-rebase There are merge conflict errors. S-awaiting-review There is new code that needs to be reviewed. labels Oct 17, 2015
@tschneidereit

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks pending.


components/script/dom/element.rs, line 1269 [r5] (raw file):
As discussed on IRC, that'd make things either more tedious by requiring us to first unwrap the scalar values, then convert them to f64, and then create {Point,Size}2D<f64> from them. Or implement a From trait, but that'd need to go into app_units (or Euclid, but probably the former). Punting for now.


tests/wpt/metadata-css/geometry-1_dev/html/DOMRect-001.htm.ini, line 14 [r7] (raw file):
We don't, no. The last import was from a day before my fix landed upstream.


Comments from the review on Reviewable.io

@nox

nox commented Oct 17, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

Thanks for your contribution!

-S-needs-code-changes


Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks pending.


Comments from the review on Reviewable.io

@nox nox removed the S-needs-code-changes Changes have not yet been made that were requested by a reviewer. label Oct 17, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 4c1c05f has been approved by nox

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 17, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4c1c05f with merge 810d28a...

bors-servo pushed a commit that referenced this pull request Oct 17, 2015
Improve implementation of DOMRect and implement DOMRectReadOnly

Passes most tests from test-css. The remaining ones should pass once we have w3c/csswg-test#834.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7415)
<!-- Reviewable:end -->
@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

@bors-servo
bors-servo merged commit 4c1c05f into servo:master Oct 17, 2015
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.

5 participants