aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/tree.rs
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2017-06-06 16:36:25 -0500
committerJ. Ryan Stinnett <jryans@gmail.com>2017-06-07 14:23:53 -0500
commit6b1b8bbee83a090b67dbccb83ac527052559a5a6 (patch)
treeb030192f5a88a97d7734af280716eb371891cd81 /components/selectors/tree.rs
parenteaefcbe55186b874b96c6dffc7e8dd2b6283634d (diff)
downloadservo-6b1b8bbee83a090b67dbccb83ac527052559a5a6.tar.gz
servo-6b1b8bbee83a090b67dbccb83ac527052559a5a6.zip
Log element during selector matching
MozReview-Commit-ID: D8eFyRCy5BR
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r--components/selectors/tree.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs
index 6122f22490f..93b59dbb4c5 100644
--- a/components/selectors/tree.rs
+++ b/components/selectors/tree.rs
@@ -8,8 +8,9 @@
use attr::{AttrSelectorOperation, NamespaceConstraint};
use matching::{ElementSelectorFlags, MatchingContext, RelevantLinkStatus};
use parser::SelectorImpl;
+use std::fmt::Debug;
-pub trait Element: Sized {
+pub trait Element: Sized + Debug {
type Impl: SelectorImpl;
fn parent_element(&self) -> Option<Self>;