mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Color links blue
This commit is contained in:
parent
dcfabb71d1
commit
e2bcd3648e
3 changed files with 14 additions and 1 deletions
|
@ -121,6 +121,9 @@ h1 { page-break-before: always }
|
||||||
h4, h5, h6 { page-break-after: avoid }
|
h4, h5, h6 { page-break-after: avoid }
|
||||||
ul, ol, dl { page-break-before: 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()
|
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 {
|
fn with_node_id<R>(&self, node: &AbstractNode<LayoutView>, f: &fn(Option<&str>) -> R) -> R {
|
||||||
if !node.is_element() {
|
if !node.is_element() {
|
||||||
fail!(~"attempting to style non-element node");
|
fail!(~"attempting to style non-element node");
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit e3057f02d48bf43856a0c13ad17372647f3b934f
|
Subproject commit 8a642ca9c853709bccc25f58960087d1f55d69e6
|
Loading…
Add table
Add a link
Reference in a new issue