diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-06-02 13:08:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 13:08:04 -0700 |
commit | 54448305de3048f23004de0d9ee84efd25af8a79 (patch) | |
tree | 676a85320f37382a70205cb0f36c429ea5d56cc2 /components/script/layout_wrapper.rs | |
parent | fa158a78b6f976156a93bcccae3fdd27046faf50 (diff) | |
parent | b03867da5da0041c3fd3ec98c2e037e30c5c8f43 (diff) | |
download | servo-54448305de3048f23004de0d9ee84efd25af8a79.tar.gz servo-54448305de3048f23004de0d9ee84efd25af8a79.zip |
Auto merge of #17144 - jryans:link-pres-hints, r=Manishearth
Stylo: Support link preshints on <body>
https://bugzilla.mozilla.org/show_bug.cgi?id=1367923
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 10 |
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> {} } |