diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-11-01 23:11:24 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-11-24 17:07:38 -0800 |
commit | 992f7dddf4771cf298c3510fca82b497d2593750 (patch) | |
tree | 1d495d5597da007294c79fc009b17d7f07288cf4 /components/script/dom | |
parent | e1eff691f8a1d8c9c7ab33344364f0419626b80e (diff) | |
download | servo-992f7dddf4771cf298c3510fca82b497d2593750.tar.gz servo-992f7dddf4771cf298c3510fca82b497d2593750.zip |
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.
MozReview-Commit-ID: 7wH5XcILVmX
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/document.rs | 1 | ||||
-rw-r--r-- | components/script/dom/node.rs | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index b4273233c37..5870e4c1320 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -434,7 +434,6 @@ impl Document { // that workable. match self.GetDocumentElement() { Some(root) => { - root.upcast::<Node>().is_dirty() || root.upcast::<Node>().has_dirty_descendants() || !self.pending_restyles.borrow().is_empty() || self.needs_paint() diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8e8bf6edc9e..983e2e8d403 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -149,9 +149,6 @@ bitflags! { #[doc = "Specifies whether this node is in a document."] const IS_IN_DOC = 0x01, #[doc = "Specifies whether this node needs style recalc on next reflow."] - const IS_DIRTY = 0x04, - #[doc = "Specifies whether this node has descendants (inclusive of itself) which \ - have changed since the last reflow."] const HAS_DIRTY_DESCENDANTS = 0x08, // TODO: find a better place to keep this (#4105) // https://critic.hoppipolla.co.uk/showcomment?chain=8873 @@ -172,7 +169,7 @@ bitflags! { impl NodeFlags { pub fn new() -> NodeFlags { - IS_DIRTY + NodeFlags::empty() } } @@ -428,14 +425,6 @@ impl Node { self.flags.set(flags); } - pub fn is_dirty(&self) -> bool { - self.get_flag(IS_DIRTY) - } - - pub fn set_is_dirty(&self, state: bool) { - self.set_flag(IS_DIRTY, state) - } - pub fn has_dirty_descendants(&self) -> bool { self.get_flag(HAS_DIRTY_DESCENDANTS) } |