aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-10-13 21:43:09 -0500
committerGitHub <noreply@github.com>2017-10-13 21:43:09 -0500
commit86a5135ffaa60d4743b6f6950fc395c2615e85ba (patch)
treeed0e65587ac5c4c5a27dbfeee1c9135bafbbd8ec /components/script
parentf0b8dad063b459db12ac27d44afff32cd6923d30 (diff)
parentb505c9e94817847e19f22854b2ee4258f66f18d2 (diff)
downloadservo-86a5135ffaa60d4743b6f6950fc395c2615e85ba.tar.gz
servo-86a5135ffaa60d4743b6f6950fc395c2615e85ba.zip
Auto merge of #18870 - servo:cast, r=KiChjang
Use pointer casts instead of tramsutes to raw::TraitObject Casting `*const T` to `*const U` with `U: Sized` is allowed even if `T: ?Sized`. This safely extracts the data pointer out of a trait object, without relying on the memory representation of trait objects. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18870) <!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/element.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index ee5682b561a..f6e5357df10 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -89,9 +89,8 @@ use script_layout_interface::message::ReflowGoal;
use script_thread::ScriptThread;
use selectors::Element as SelectorsElement;
use selectors::attr::{AttrSelectorOperation, NamespaceConstraint, CaseSensitivity};
-use selectors::matching::{ElementSelectorFlags, LocalMatchingContext, MatchingContext, MatchingMode};
+use selectors::matching::{ElementSelectorFlags, LocalMatchingContext, MatchingContext, RelevantLinkStatus};
use selectors::matching::{HAS_EDGE_CHILD_SELECTOR, HAS_SLOW_SELECTOR, HAS_SLOW_SELECTOR_LATER_SIBLINGS};
-use selectors::matching::{RelevantLinkStatus, matches_selector_list};
use selectors::sink::Push;
use servo_arc::Arc;
use servo_atoms::Atom;