diff options
author | Jack Moffitt <jack@metajack.im> | 2014-01-22 17:02:21 -0700 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-01-22 17:02:21 -0700 |
commit | c443bcbfff2a68e0f37dba7e20fe752d6d8fa2d8 (patch) | |
tree | f3583c22c2d377dc8f987cd817ac41b7de3d966c /src/components/style/node.rs | |
parent | 539cf58f732e62be3fd23a86603d78e53f33c82e (diff) | |
download | servo-c443bcbfff2a68e0f37dba7e20fe752d6d8fa2d8.tar.gz servo-c443bcbfff2a68e0f37dba7e20fe752d6d8fa2d8.zip |
Change `get_attr()` to `get_attr_val_for_layout()`.
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
Diffstat (limited to 'src/components/style/node.rs')
-rw-r--r-- | src/components/style/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/style/node.rs b/src/components/style/node.rs index 546ef329795..df136a97be2 100644 --- a/src/components/style/node.rs +++ b/src/components/style/node.rs @@ -18,7 +18,7 @@ pub trait TNode<E:TElement> : Clone { } pub trait TElement { - fn get_attr(&self, namespace: Option<~str>, attr: &str) -> Option<~str>; + fn get_attr(&self, namespace: Option<~str>, attr: &str) -> Option<&'static str>; fn get_link(&self) -> Option<~str>; fn get_local_name<'a>(&'a self) -> &'a str; fn get_namespace_url<'a>(&'a self) -> &'a str; |