style: Remove PresentationalHintsSynthesizer.

This is not really an useful abstraction, and I never knew how to spell it.
This commit is contained in:
Emilio Cobos Álvarez 2017-10-26 11:40:44 +02:00
parent a814fc578f
commit 6c796b50ec
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 48 additions and 54 deletions

View file

@ -20,7 +20,7 @@ use style::attr::AttrValue;
use style::computed_values::display;
use style::context::SharedStyleContext;
use style::data::ElementData;
use style::dom::{LayoutIterator, NodeInfo, PresentationalHintsSynthesizer, TNode};
use style::dom::{LayoutIterator, NodeInfo, TNode};
use style::dom::OpaqueNode;
use style::font_metrics::ServoMetricsProvider;
use style::properties::{CascadeFlags, ComputedValues};
@ -290,10 +290,14 @@ pub trait DangerousThreadSafeLayoutNode: ThreadSafeLayoutNode {
unsafe fn dangerous_next_sibling(&self) -> Option<Self>;
}
pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug +
::selectors::Element<Impl=SelectorImpl> +
GetLayoutData +
PresentationalHintsSynthesizer {
pub trait ThreadSafeLayoutElement
: Clone
+ Copy
+ Sized
+ Debug
+ ::selectors::Element<Impl=SelectorImpl>
+ GetLayoutData
{
type ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<ConcreteThreadSafeLayoutElement = Self>;
fn as_node(&self) -> Self::ConcreteThreadSafeLayoutNode;