Skip to content

Completed implementation of devtools' getLayout. - #9661

Merged
bors-servo merged 1 commit into
servo:masterfrom
jdm:devtools-inspector-get-layout
Feb 24, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
jdm:devtools-inspector-get-layout

Conversation

@jdm

@jdm jdm commented Feb 16, 2016

Copy link
Copy Markdown
Member

Rebase of #7267. Fixes #3598.

This avoids all of the sketchy issues of trying to read the style data for margins from the script thread. I replaced it with a layout query that fetches the margin style properties for a given element.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 16, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify layout and script code, but no tests are modified. Please consider adding a test!

@jdm

jdm commented Feb 16, 2016

Copy link
Copy Markdown
Member Author

r? @pcwalton

@emilio

emilio commented Feb 17, 2016

Copy link
Copy Markdown
Member

A lot of nits, over all from the serde(rename="") and a conflicting dep.

./components/devtools/actors/inspector.rs:407: missing space before =
./components/devtools/actors/inspector.rs:407: missing space after =
./components/devtools/actors/inspector.rs:409: missing space before =
./components/devtools/actors/inspector.rs:409: missing space after =
./components/devtools/actors/inspector.rs:415: missing space before =
./components/devtools/actors/inspector.rs:415: missing space after =
./components/devtools/actors/inspector.rs:417: missing space before =
./components/devtools/actors/inspector.rs:417: missing space after =
./components/devtools/actors/inspector.rs:419: missing space before =
./components/devtools/actors/inspector.rs:419: missing space after =
./components/devtools/actors/inspector.rs:421: missing space before =
./components/devtools/actors/inspector.rs:421: missing space after =
./components/devtools/actors/inspector.rs:424: missing space before =
./components/devtools/actors/inspector.rs:424: missing space after =
./components/devtools/actors/inspector.rs:426: missing space before =
./components/devtools/actors/inspector.rs:426: missing space after =
./components/devtools/actors/inspector.rs:428: missing space before =
./components/devtools/actors/inspector.rs:428: missing space after =
./components/devtools/actors/inspector.rs:430: missing space before =
./components/devtools/actors/inspector.rs:430: missing space after =
./components/devtools/actors/inspector.rs:433: missing space before =
./components/devtools/actors/inspector.rs:433: missing space after =
./components/devtools/actors/inspector.rs:435: missing space before =
./components/devtools/actors/inspector.rs:435: missing space after =
./components/devtools/actors/inspector.rs:437: missing space before =
./components/devtools/actors/inspector.rs:437: missing space after =
./components/devtools/actors/inspector.rs:439: missing space before =
./components/devtools/actors/inspector.rs:439: missing space after =
./components/script/devtools.rs:155: missing space before =
./components/servo/Cargo.lock:1: duplicate versions for package "serde_json"
    found dependency on version 0.5.1
    but highest version is 0.6.0
    try upgrading with ./mach cargo-update -p serde_json:0.5.1
    The following packages depend on version 0.5.1:
        layout

@jdm jdm added the S-fails-tidy `./mach test-tidy` reported errors. label Feb 17, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Feb 19, 2016
@pcwalton

Copy link
Copy Markdown
Contributor

r=me when rebased.

@jdm
jdm force-pushed the devtools-inspector-get-layout branch from 96b1ca9 to 0785d91 Compare February 24, 2016 18:52
@jdm jdm removed S-fails-tidy `./mach test-tidy` reported errors. S-needs-rebase There are merge conflict errors. labels Feb 24, 2016
@jdm

jdm commented Feb 24, 2016

Copy link
Copy Markdown
Member Author

@bors-servo: r=pcwalton

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 0785d91 has been approved by pcwalton

@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 Feb 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0785d91 with merge 09e987b...

bors-servo pushed a commit that referenced this pull request Feb 24, 2016
Completed implementation of devtools' `getLayout`.

Rebase of #7267. Fixes #3598.

This avoids all of the sketchy issues of trying to read the style data for margins from the script thread. I replaced it with a layout query that fetches the margin style properties for a given element.

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

Copy link
Copy Markdown
Contributor

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

@bors-servo
bors-servo merged commit 0785d91 into servo:master Feb 24, 2016
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