mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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:
parent
f9c268922d
commit
dc521b2799
4 changed files with 30 additions and 58 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue