mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Pull decls from Gecko for link preshints
Based on a link's active state and the visited handling mode, pull in link, vlink, and alink preshint declaration blocks from Gecko as needed. MozReview-Commit-ID: A6udMYbzQnK
This commit is contained in:
parent
fa158a78b6
commit
56b44d2709
5 changed files with 59 additions and 10 deletions
|
@ -51,7 +51,7 @@ use script_layout_interface::{OpaqueStyleAndLayoutData, StyleData};
|
|||
use script_layout_interface::wrapper_traits::{DangerousThreadSafeLayoutNode, GetLayoutData, LayoutNode};
|
||||
use script_layout_interface::wrapper_traits::{PseudoElementType, ThreadSafeLayoutElement, ThreadSafeLayoutNode};
|
||||
use selectors::attr::{AttrSelectorOperation, NamespaceConstraint};
|
||||
use selectors::matching::{ElementSelectorFlags, MatchingContext, RelevantLinkStatus};
|
||||
use selectors::matching::{ElementSelectorFlags, MatchingContext, RelevantLinkStatus, VisitedHandlingMode};
|
||||
use servo_atoms::Atom;
|
||||
use servo_url::ServoUrl;
|
||||
use std::fmt;
|
||||
|
@ -364,7 +364,9 @@ impl<'le> fmt::Debug for ServoLayoutElement<'le> {
|
|||
}
|
||||
|
||||
impl<'le> PresentationalHintsSynthesizer for ServoLayoutElement<'le> {
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V)
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self,
|
||||
_visited_handling: VisitedHandlingMode,
|
||||
hints: &mut V)
|
||||
where V: Push<ApplicableDeclarationBlock>
|
||||
{
|
||||
unsafe {
|
||||
|
@ -1228,6 +1230,8 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
|
|||
}
|
||||
|
||||
impl<'le> PresentationalHintsSynthesizer for ServoThreadSafeLayoutElement<'le> {
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, _hints: &mut V)
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self,
|
||||
_visited_handling: VisitedHandlingMode,
|
||||
_hints: &mut V)
|
||||
where V: Push<ApplicableDeclarationBlock> {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue