Skip to content

stylo: Stop restyling display: none elements, remove the has_changed hack that made us use ReconstructFrame unconditionally. - #12757

Merged
bors-servo merged 12 commits into
servo:masterfrom
emilio:stylo
Aug 11, 2016

Conversation

@emilio

@emilio emilio commented Aug 6, 2016 •

Copy link
Copy Markdown
Member

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors

r? @bholley


This change is Reviewable

@highfive

highfive commented Aug 6, 2016

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/parallel.rs, components/style/sequential.rs, components/style/dom.rs, components/style/traversal.rs, components/style/matching.rs
  • @KiChjang: components/script_layout_interface/restyle_damage.rs

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

highfive commented Aug 6, 2016

Copy link
Copy Markdown

warning Warning warning

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

@emilio

emilio commented Aug 7, 2016

Copy link
Copy Markdown
Member Author

@bors-servo: try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 1130e7a with merge bf43593...

bors-servo pushed a commit that referenced this pull request Aug 7, 2016
stylo: Stop restyling display: none elements, remove the has_changed hack that made us use ReconstructFrame unconditionally.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @bholley

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

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 7, 2016
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Aug 7, 2016
@emilio

emilio commented Aug 7, 2016

Copy link
Copy Markdown
Member Author

@bors-servo: try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 8b3a8fc with merge dbffad1...

bors-servo pushed a commit that referenced this pull request Aug 7, 2016
stylo: Stop restyling display: none elements, remove the has_changed hack that made us use ReconstructFrame unconditionally.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @bholley

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive

highfive commented Aug 7, 2016

Copy link
Copy Markdown
  ▶ Unexpected subtest result in /html/browsers/browsing-the-web/history-traversal/browsing_context_name.html:
  └ PASS [expected FAIL] Retaining window.name on history traversal

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 7, 2016
@emilio

emilio commented Aug 8, 2016 •

Copy link
Copy Markdown
Member Author

That's a known intermittent (#12568), cool :)

@emilio emilio removed the S-tests-failed The changes caused existing tests to fail. label Aug 8, 2016
Comment thread components/style/traversal.rs Outdated
/// performed.
///
/// If it's false, then process_postorder has no effect at all.
fn should_traverse_back_up(&self) -> bool { true }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call this has_postorder_traversal?

Comment thread components/style/sequential.rs Outdated
context.pre_process_child_hook(node, kid);
if context.should_process(kid) {
doit::<N, C>(context, kid);
if !should_stop {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: don't convert RestyleResult to a boolean.

@pcwalton

Copy link
Copy Markdown
Contributor

r=me

@emilio

emilio commented Aug 11, 2016

Copy link
Copy Markdown
Member Author

@bors-servo: r=bholley,pcwalton

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 9b8eac0 has been approved by bholley,pcwalton

@highfive highfive assigned bholley and unassigned pcwalton Aug 11, 2016
@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. S-needs-rebase There are merge conflict errors. labels Aug 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9b8eac0 with merge 1b24503...

bors-servo pushed a commit that referenced this pull request Aug 11, 2016
stylo: Stop restyling display: none elements, remove the has_changed hack that made us use ReconstructFrame unconditionally.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @bholley

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

Copy link
Copy Markdown
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo
bors-servo merged commit 9b8eac0 into servo:master Aug 11, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 11, 2016
@emilio
emilio deleted the stylo branch August 11, 2016 03:02
@bors-servo bors-servo mentioned this pull request Aug 11, 2016
4 of 5 tasks
@bholley

bholley commented Aug 11, 2016

Copy link
Copy Markdown
Contributor

@emilio does the gecko-dev branch need to be updated in correspondence with this commit?

@emilio

emilio commented Aug 11, 2016

Copy link
Copy Markdown
Member Author

@bholley no, not necessarily

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.

5 participants