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

Several fixes #492

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Color links blue

  • Loading branch information
pcwalton committed May 30, 2013
commit 45419707c526400677867182e2cef0ed61eb3224
@@ -121,6 +121,9 @@ h1 { page-break-before: always }
h4, h5, h6 { page-break-after: avoid }
ul, ol, dl { page-break-before: avoid }
}
/* Servo additions */
:link { color: blue }
"
}

@@ -76,6 +76,16 @@ impl SelectHandler<AbstractNode<LayoutView>> for NodeSelectHandler {
self.parent_node(node).is_none()
}

fn node_is_link(&self, node: &AbstractNode<LayoutView>) -> bool {
if node.is_element() {
do node.with_imm_element |element| {
"a" == element.tag_name
}
} else {
false
}
}

fn with_node_id<R>(&self, node: &AbstractNode<LayoutView>, f: &fn(Option<&str>) -> R) -> R {
if !node.is_element() {
fail!(~"attempting to style non-element node");
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.