style: Remove damage_handled, and use a reconstructed_ancestor bit instead.

Reviewed-By: bholley
Bug: 1368236
MozReview-Commit-ID: 8KK0YfhiS2
This commit is contained in:
Emilio Cobos Álvarez 2017-06-13 14:13:24 +02:00
parent f9c268922d
commit dc521b2799
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 30 additions and 58 deletions

View file

@ -111,9 +111,9 @@ use std::thread;
use style::animation::Animation;
use style::context::{QuirksMode, ReflowGoal, SharedStyleContext};
use style::context::{StyleSystemOptions, ThreadLocalStyleContextCreationInfo};
use style::data::StoredRestyleHint;
use style::dom::{ShowSubtree, ShowSubtreeDataAndPrimaryValues, TElement, TNode};
use style::error_reporting::{NullReporter, RustLogReporter};
use style::invalidation::element::restyle_hints::RestyleHint;
use style::logical_geometry::LogicalPoint;
use style::media_queries::{Device, MediaList, MediaType};
use style::selector_parser::SnapshotMap;
@ -1119,7 +1119,7 @@ impl LayoutThread {
let el = node.as_element().unwrap();
if let Some(mut d) = element.mutate_data() {
if d.has_styles() {
d.ensure_restyle().hint.insert(StoredRestyleHint::subtree());
d.ensure_restyle().hint.insert(RestyleHint::restyle_subtree());
}
}
if let Some(p) = el.parent_element() {
@ -1155,7 +1155,7 @@ impl LayoutThread {
if needs_dirtying {
if let Some(mut d) = element.mutate_data() {
if d.has_styles() {
d.ensure_restyle().hint.insert(StoredRestyleHint::subtree());
d.ensure_restyle().hint.insert(RestyleHint::restyle_subtree());
}
}
}