aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/data.rs')
-rw-r--r--components/style/data.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/style/data.rs b/components/style/data.rs
index 658c7a42a5d..2478f9761c3 100644
--- a/components/style/data.rs
+++ b/components/style/data.rs
@@ -70,11 +70,16 @@ impl RestyleData {
/// Returns whether this element or any ancestor is going to be
/// reconstructed.
pub fn reconstructed_self_or_ancestor(&self) -> bool {
- self.reconstructed_ancestor() ||
+ self.reconstructed_ancestor() || self.reconstructed_self()
+ }
+
+ /// Returns whether this element is going to be reconstructed.
+ pub fn reconstructed_self(&self) -> bool {
self.damage.contains(RestyleDamage::reconstruct())
}
- /// Returns whether any ancestor of this element was restyled.
+ /// Returns whether any ancestor of this element is going to be
+ /// reconstructed.
fn reconstructed_ancestor(&self) -> bool {
self.flags.contains(ANCESTOR_WAS_RECONSTRUCTED)
}