aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-03-29 20:50:47 -0500
committerGitHub <noreply@github.com>2017-03-29 20:50:47 -0500
commit2084ee29c40291c9abf9b0922e05f0663b215333 (patch)
tree0eef84afaa901c27102eab990fca223524c185dc /components/script/dom
parent0f9dbcc8080e5763553d316261e2d158c19ce6f1 (diff)
parent5c9152e3df2f7b7780b3325b489bde5927f13dcb (diff)
downloadservo-2084ee29c40291c9abf9b0922e05f0663b215333.tar.gz
servo-2084ee29c40291c9abf9b0922e05f0663b215333.zip
Auto merge of #16187 - upsuper:bug1345696, r=Manishearth,heycam
Implement access to CSSFontFaceRule for stylo This is the Servo part of [bug 1345696](https://bugzilla.mozilla.org/show_bug.cgi?id=1345696) which has been reviewed on Bugzilla.
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/trace.rs5
-rw-r--r--components/script/dom/cssfontfacerule.rs2
2 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs
index 25e738a0d1c..890074974d3 100644
--- a/components/script/dom/bindings/trace.rs
+++ b/components/script/dom/bindings/trace.rs
@@ -94,14 +94,13 @@ use std::time::{SystemTime, Instant};
use style::attr::{AttrIdentifier, AttrValue, LengthOrPercentageOrAuto};
use style::context::QuirksMode;
use style::element_state::*;
-use style::font_face::FontFaceRule;
use style::keyframes::Keyframe;
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::stylesheets::{CssRules, KeyframesRule, MediaRule, NamespaceRule, StyleRule, ImportRule};
-use style::stylesheets::SupportsRule;
+use style::stylesheets::{CssRules, FontFaceRule, KeyframesRule, MediaRule};
+use style::stylesheets::{NamespaceRule, StyleRule, ImportRule, SupportsRule};
use style::values::specified::Length;
use style::viewport::ViewportRule;
use time::Duration;
diff --git a/components/script/dom/cssfontfacerule.rs b/components/script/dom/cssfontfacerule.rs
index 184f6784afa..1f247c25fdc 100644
--- a/components/script/dom/cssfontfacerule.rs
+++ b/components/script/dom/cssfontfacerule.rs
@@ -11,8 +11,8 @@ use dom::cssstylesheet::CSSStyleSheet;
use dom::window::Window;
use dom_struct::dom_struct;
use std::sync::Arc;
-use style::font_face::FontFaceRule;
use style::shared_lock::{Locked, ToCssWithGuard};
+use style::stylesheets::FontFaceRule;
#[dom_struct]
pub struct CSSFontFaceRule {