Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node_is_link #11

Merged
merged 1 commit into from May 30, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -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 */
@@ -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 {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.