Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Add node_is_link #11

Merged
merged 1 commit into from
May 30, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub trait SelectHandler<N> {
fn node_has_id(&self, node: &N, &str) -> bool;
fn named_ancestor_node(&self, node: &N, name: &str) -> Option<N>;
fn node_is_root(&self, node: &N) -> bool;
fn node_is_link(&self, node: &N) -> bool;
}

/** Used to convert the netsurfcss CssSelectHandler callbacks to out SelectHandler callbacks */
Expand Down Expand Up @@ -138,10 +139,8 @@ impl<N, H: SelectHandler<N>> n::s::CssSelectHandler<N> for SelectHandlerWrapper<
self.inner_ref().node_is_root(node)
}

fn node_is_link(&self, _node: &N) -> bool {
// FIXME
warn_unimpl("node_is_link");
false
fn node_is_link(&self, node: &N) -> bool {
self.inner_ref().node_is_link(node)
}

fn node_is_visited(&self, _node: &N) -> bool {
Expand Down