mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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;
|
|||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct HTMLTitleElement {
|
||||
pub htmlelement: HTMLElement,
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
||||
impl HTMLTitleElementDerived for EventTarget {
|
||||
|
@ -50,7 +51,7 @@ impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
|
|||
for child in node.children() {
|
||||
let text: Option<JSRef<Text>> = TextCast::to_ref(child);
|
||||
match text {
|
||||
Some(text) => content.push_str(text.characterdata.data.borrow().as_slice()),
|
||||
Some(text) => content.push_str(text.characterdata().data().as_slice()),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue