Color links blue

This commit is contained in:
Patrick Walton 2013-05-29 19:01:07 -07:00
parent dcfabb71d1
commit e2bcd3648e
3 changed files with 14 additions and 1 deletions

View file

@ -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 }
"
}

View file

@ -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");

@ -1 +1 @@
Subproject commit e3057f02d48bf43856a0c13ad17372647f3b934f
Subproject commit 8a642ca9c853709bccc25f58960087d1f55d69e6