aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2017-06-01 13:37:54 -0500
committerJ. Ryan Stinnett <jryans@gmail.com>2017-06-02 14:34:39 -0500
commit56b44d27098ad0134bede344124f76b70d25a6be (patch)
treece9574bfc2f9c22793f3ccd53d18835081ec8f6d /components/script
parentfa158a78b6f976156a93bcccae3fdd27046faf50 (diff)
downloadservo-56b44d27098ad0134bede344124f76b70d25a6be.tar.gz
servo-56b44d27098ad0134bede344124f76b70d25a6be.zip
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
Diffstat (limited to 'components/script')
-rw-r--r--components/script/layout_wrapper.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 0b230e6081f..e915a2d07b1 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -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> {}
}