aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/query.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-03-28 13:37:31 -0400
committerGitHub <noreply@github.com>2020-03-28 13:37:31 -0400
commit15d8c6058bb5fd21036cb35500a0c2f23a9ef7f7 (patch)
treefde1850c9fe7f9050d0342a7c01f76f39985040f /components/layout_2020/query.rs
parente69de9bc9cf5cdd29d1c392c613bc1c1ad4815bf (diff)
parentdba6a635e5df980b2837495aae59711739c23716 (diff)
downloadservo-15d8c6058bb5fd21036cb35500a0c2f23a9ef7f7.tar.gz
servo-15d8c6058bb5fd21036cb35500a0c2f23a9ef7f7.zip
Auto merge of #26048 - nox:layout-2020-transparent-data, r=jdm
Give a lifetime parameter to LayoutDom
Diffstat (limited to 'components/layout_2020/query.rs')
-rw-r--r--components/layout_2020/query.rs17
1 files changed, 7 insertions, 10 deletions
diff --git a/components/layout_2020/query.rs b/components/layout_2020/query.rs
index 45eb3b25ac0..fc4ac985253 100644
--- a/components/layout_2020/query.rs
+++ b/components/layout_2020/query.rs
@@ -192,9 +192,9 @@ pub fn process_node_geometry_request(
fragment_tree_root.get_border_dimensions_for_node(requested_node)
}
-pub fn process_node_scroll_id_request<N: LayoutNode>(
+pub fn process_node_scroll_id_request<'dom>(
id: PipelineId,
- requested_node: N,
+ requested_node: impl LayoutNode<'dom>,
) -> ExternalScrollId {
let layout_node = requested_node.to_threadsafe();
layout_node.generate_scroll_id(id)
@@ -207,15 +207,12 @@ pub fn process_node_scroll_area_request(_requested_node: OpaqueNode) -> Rect<i32
/// Return the resolved value of property for a given (pseudo)element.
/// <https://drafts.csswg.org/cssom/#resolved-value>
-pub fn process_resolved_style_request<'a, N>(
+pub fn process_resolved_style_request<'dom>(
_context: &LayoutContext,
- _node: N,
+ _node: impl LayoutNode<'dom>,
_pseudo: &Option<PseudoElement>,
_property: &PropertyId,
-) -> String
-where
- N: LayoutNode,
-{
+) -> String {
"".to_owned()
}
@@ -223,12 +220,12 @@ pub fn process_offset_parent_query(_requested_node: OpaqueNode) -> OffsetParentR
OffsetParentResponse::empty()
}
-pub fn process_style_query<N: LayoutNode>(_requested_node: N) -> StyleResponse {
+pub fn process_style_query<'dom>(_requested_node: impl LayoutNode<'dom>) -> StyleResponse {
StyleResponse(None)
}
// https://html.spec.whatwg.org/multipage/#the-innertext-idl-attribute
-pub fn process_element_inner_text_query<N: LayoutNode>(_node: N) -> String {
+pub fn process_element_inner_text_query<'dom>(_node: impl LayoutNode<'dom>) -> String {
"".to_owned()
}