Auto merge of #18268 - emilio:dirty-viewport-followup, r=SimonSapin

style: Recascade the document instead of using the dirty_on_viewport_size_change bit

This allows us to simplify a lot of code.

On top of #18267.

<!-- 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/18268)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-08-29 14:18:58 -05:00 committed by GitHub
commit 473934c989
13 changed files with 13 additions and 181 deletions

View file

@ -721,7 +721,6 @@ impl Stylist {
parent,
parent,
None,
None,
font_metrics,
cascade_flags,
self.quirks_mode,
@ -901,7 +900,6 @@ impl Stylist {
Some(inherited_style_ignoring_first_line),
Some(layout_parent_style_for_visited),
None,
None,
font_metrics,
cascade_flags,
self.quirks_mode,
@ -927,7 +925,6 @@ impl Stylist {
Some(parent_style_ignoring_first_line),
Some(layout_parent_style),
visited_values,
None,
font_metrics,
cascade_flags,
self.quirks_mode,
@ -1543,7 +1540,6 @@ impl Stylist {
Some(parent_style),
Some(parent_style),
None,
None,
&metrics,
CascadeFlags::empty(),
self.quirks_mode,