aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlserializer.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-09-10 14:07:55 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-09-11 04:54:38 +0900
commitb73b06b9a82f6a02fdc4859776af1c9929d95641 (patch)
tree39b6fee8400b319ea89ee9044d59b146f4adaf34 /components/script/dom/htmlserializer.rs
parent842823e321fdadcff0ef4e7c077873b1d83a5289 (diff)
downloadservo-b73b06b9a82f6a02fdc4859776af1c9929d95641.tar.gz
servo-b73b06b9a82f6a02fdc4859776af1c9929d95641.zip
Move Attr helper methods to AttrHelpers trait to avoid to touch them from layout task.
Diffstat (limited to 'components/script/dom/htmlserializer.rs')
-rw-r--r--components/script/dom/htmlserializer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlserializer.rs b/components/script/dom/htmlserializer.rs
index cb9e1769255..624ede52bb7 100644
--- a/components/script/dom/htmlserializer.rs
+++ b/components/script/dom/htmlserializer.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use dom::attr::Attr;
+use dom::attr::{Attr, AttrHelpers};
use dom::bindings::codegen::InheritTypes::{ElementCast, TextCast, CommentCast, NodeCast};
use dom::bindings::codegen::InheritTypes::{DocumentTypeCast, CharacterDataCast};
use dom::bindings::codegen::InheritTypes::ProcessingInstructionCast;
@@ -153,7 +153,7 @@ fn serialize_attr(attr: &JSRef<Attr>, html: &mut String) {
html.push_str(attr.deref().name.as_slice());
};
html.push_str("=\"");
- escape(attr.deref().value().as_slice(), true, html);
+ escape(attr.value().as_slice(), true, html);
html.push_char('"');
}