aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorTim Taubert <tim@timtaubert.de>2014-10-12 14:12:37 +0200
committerTim Taubert <tim@timtaubert.de>2014-10-13 13:25:43 +0200
commitd0addd36bb83d56071200b051e21ae3ad7417ac2 (patch)
treec8695b6b1d9864cf2820e1d8ff83b1b5713c4389 /components/script/dom/node.rs
parentad6649d1022890eb3ecc295e01ebd23fd974eef2 (diff)
downloadservo-d0addd36bb83d56071200b051e21ae3ad7417ac2.tar.gz
servo-d0addd36bb83d56071200b051e21ae3ad7417ac2.zip
Privatize ProcessingInstruction
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 8a2179a0760..68119f33d23 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1496,8 +1496,8 @@ impl Node {
},
ProcessingInstructionNodeTypeId => {
let pi: JSRef<ProcessingInstruction> = ProcessingInstructionCast::to_ref(node).unwrap();
- let pi = ProcessingInstruction::new(pi.target.clone(),
- pi.characterdata.data().clone(), *document);
+ let pi = ProcessingInstruction::new(pi.target().clone(),
+ pi.characterdata().data().clone(), *document);
NodeCast::from_temporary(pi)
},
}.root();
@@ -1974,8 +1974,8 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
fn is_equal_processinginstruction(node: JSRef<Node>, other: JSRef<Node>) -> bool {
let pi: JSRef<ProcessingInstruction> = ProcessingInstructionCast::to_ref(node).unwrap();
let other_pi: JSRef<ProcessingInstruction> = ProcessingInstructionCast::to_ref(other).unwrap();
- (pi.target == other_pi.target) &&
- (*pi.characterdata.data() == *other_pi.characterdata.data())
+ (*pi.target() == *other_pi.target()) &&
+ (*pi.characterdata().data() == *other_pi.characterdata().data())
}
fn is_equal_characterdata(node: JSRef<Node>, other: JSRef<Node>) -> bool {
let characterdata: JSRef<CharacterData> = CharacterDataCast::to_ref(node).unwrap();