aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/message.rs
diff options
context:
space:
mode:
authorcsmoe <35686186+csmoe@users.noreply.github.com>2018-03-22 12:27:38 +0800
committercsmoe <35686186+csmoe@users.noreply.github.com>2018-03-25 09:14:30 +0800
commit054d65763dcd148d2dfecf7a51a5d3b0f61c5694 (patch)
tree9eae012c198f73b61cc19bdd741a4d9b64452616 /components/script_layout_interface/message.rs
parent98fe118be44e829ec6f236ff8f527a7b518f755e (diff)
downloadservo-054d65763dcd148d2dfecf7a51a5d3b0f61c5694.tar.gz
servo-054d65763dcd148d2dfecf7a51a5d3b0f61c5694.zip
fix time measure
Diffstat (limited to 'components/script_layout_interface/message.rs')
-rw-r--r--components/script_layout_interface/message.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs
index 8a8b1f8b0d0..ac52d9373ce 100644
--- a/components/script_layout_interface/message.rs
+++ b/components/script_layout_interface/message.rs
@@ -24,7 +24,6 @@ use style::context::QuirksMode;
use style::properties::PropertyId;
use style::selector_parser::PseudoElement;
use style::stylesheets::Stylesheet;
-use time;
/// Asynchronous messages that script can send to layout.
pub enum Msg {
@@ -172,26 +171,6 @@ impl ReflowGoal {
},
}
}
-
- /// Set the timestamp of query message.
- pub fn set_timestamp(&mut self) {
- match *self {
- ReflowGoal::LayoutQuery(_, ref mut timestamp) => {
- *timestamp = time::precise_time_ns();
- },
- _ => (),
- }
- }
-
- /// Get the query timestamp.
- pub fn timestamp(&self) -> Option<u64> {
- match *self {
- ReflowGoal::LayoutQuery(_, ref timestamp) => {
- Some(*timestamp)
- },
- _ => None,
- }
- }
}
/// Information needed for a reflow.