mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Simplify our setup for font metric queries from style
This is a backport of https://phabricator.services.mozilla.com/D157589, by Emilio Cobos Álvarez, plus some additions so that Servo compiles, and some parts from https://phabricator.services.mozilla.com/D144455. Should have no change in behavior.
This commit is contained in:
parent
feaa66b597
commit
ab2ba273e3
21 changed files with 172 additions and 322 deletions
|
@ -13,7 +13,6 @@ use crate::context::SharedStyleContext;
|
|||
use crate::context::{PostAnimationTasks, UpdateAnimationsTasks};
|
||||
use crate::data::ElementData;
|
||||
use crate::element_state::ElementState;
|
||||
use crate::font_metrics::FontMetricsProvider;
|
||||
use crate::media_queries::Device;
|
||||
use crate::properties::{AnimationDeclarations, ComputedValues, PropertyDeclarationBlock};
|
||||
use crate::selector_parser::{AttrValue, Lang, PseudoElement, SelectorImpl};
|
||||
|
@ -363,12 +362,6 @@ pub trait TElement:
|
|||
/// syntax.
|
||||
type TraversalChildrenIterator: Iterator<Item = Self::ConcreteNode>;
|
||||
|
||||
/// Type of the font metrics provider
|
||||
///
|
||||
/// XXXManishearth It would be better to make this a type parameter on
|
||||
/// ThreadLocalStyleContext and StyleContext
|
||||
type FontMetricsProvider: FontMetricsProvider + Send;
|
||||
|
||||
/// Get this element as a node.
|
||||
fn as_node(&self) -> Self::ConcreteNode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue