mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Privatize Comment
This commit is contained in:
parent
78fef7eec5
commit
e15f8cb37f
3 changed files with 9 additions and 3 deletions
|
@ -18,8 +18,9 @@ use servo_util::str::DOMString;
|
|||
/// An HTML comment.
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct Comment {
|
||||
pub characterdata: CharacterData,
|
||||
characterdata: CharacterData,
|
||||
}
|
||||
|
||||
impl CommentDerived for EventTarget {
|
||||
|
@ -44,6 +45,11 @@ impl Comment {
|
|||
let document = global.as_window().Document().root();
|
||||
Ok(Comment::new(data, *document))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn characterdata<'a>(&'a self) -> &'a CharacterData {
|
||||
&self.characterdata
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Comment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue