Skip to content

Don't re-add stylesheets to recompute vw/vh lengths - #10105

Merged
bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:dirty-viewport-percentages
Mar 22, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:dirty-viewport-percentages

Conversation

@mbrubeck

Copy link
Copy Markdown
Contributor

This is a follow-up to #9876. It avoids clearing and rebuilding SelectorMaps
when vh and vw units need to be recomputed. Instead it just dirties all nodes,
to force elements to be re-cascaded.

Filed #10104 for later follow-up work to dirty only affected nodes.

r? @SimonSapin


This change is Reviewable

This is a follow-up to servo#9876.  It avoids clearing and rebuilding SelectorMaps
when vh and vw units need to be recomputed. Instead it just dirties all nodes,
to force elements to be re-cascaded.

Filed servo#10104 for later follow-up work to dirty only affected nodes.
@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/selector_matching.rs

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

Copy link
Copy Markdown

warning Warning warning

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

@SimonSapin

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 37636e8 has been approved by SimonSapin

@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 Mar 22, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 37636e8 with merge 41060db...

bors-servo pushed a commit that referenced this pull request Mar 22, 2016
Don't re-add stylesheets to recompute vw/vh lengths

This is a follow-up to #9876.  It avoids clearing and rebuilding SelectorMaps
when vh and vw units need to be recomputed. Instead it just dirties all nodes,
to force elements to be re-cascaded.

Filed #10104 for later follow-up work to dirty only affected nodes.

r? @SimonSapin

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10105)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

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

@bors-servo
bors-servo merged commit 37636e8 into servo:master Mar 22, 2016
@mbrubeck
mbrubeck deleted the dirty-viewport-percentages branch May 11, 2016 03:48
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.

4 participants