mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize InheritTypes
This commit is contained in:
parent
acd98a73a4
commit
9a52bb8310
80 changed files with 252 additions and 101 deletions
|
@ -18,8 +18,9 @@ use servo_util::str::DOMString;
|
|||
/// An HTML text node.
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct Text {
|
||||
pub characterdata: CharacterData,
|
||||
characterdata: CharacterData,
|
||||
}
|
||||
|
||||
impl TextDerived for EventTarget {
|
||||
|
@ -44,6 +45,11 @@ impl Text {
|
|||
let document = global.as_window().Document().root();
|
||||
Ok(Text::new(text, *document))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn characterdata<'a>(&'a self) -> &'a CharacterData {
|
||||
&self.characterdata
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Text {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue