diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-02 20:01:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 20:01:10 -0500 |
commit | 7b1006936a27232fb77fef5893cc141e66bb12b7 (patch) | |
tree | 750a15b93482d99f1aadd7afe507dd910516a6d1 /components/script/dom/bindings | |
parent | 536d63c67028c7368dff780945626283d2c48f1c (diff) | |
parent | fd1c814e7812e68e1207165c9387ddcfd8a6379b (diff) | |
download | servo-7b1006936a27232fb77fef5893cc141e66bb12b7.tar.gz servo-7b1006936a27232fb77fef5893cc141e66bb12b7.zip |
Auto merge of #16702 - bholley:custom_arc, r=emilio
Use a custom arc in the style system
See https://bugzilla.mozilla.org/show_bug.cgi?id=1360889
<!-- 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/16702)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 1bc9c165fb1..2ecae0d9d73 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -99,6 +99,7 @@ use style::media_queries::MediaList; use style::properties::PropertyDeclarationBlock; use style::selector_parser::{PseudoElement, Snapshot}; use style::shared_lock::{SharedRwLock as StyleSharedRwLock, Locked as StyleLocked}; +use style::stylearc::Arc as StyleArc; use style::stylesheets::{CssRules, FontFaceRule, KeyframesRule, MediaRule}; use style::stylesheets::{NamespaceRule, StyleRule, ImportRule, SupportsRule}; use style::values::specified::Length; @@ -166,6 +167,12 @@ unsafe impl<T: JSTraceable> JSTraceable for Arc<T> { } } +unsafe impl<T: JSTraceable> JSTraceable for StyleArc<T> { + unsafe fn trace(&self, trc: *mut JSTracer) { + (**self).trace(trc) + } +} + unsafe impl<T: JSTraceable + ?Sized> JSTraceable for Box<T> { unsafe fn trace(&self, trc: *mut JSTracer) { (**self).trace(trc) |