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
|
@ -22,8 +22,9 @@ use string_cache::Atom;
|
|||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct HTMLElement {
|
||||
pub element: Element
|
||||
element: Element
|
||||
}
|
||||
|
||||
impl HTMLElementDerived for EventTarget {
|
||||
|
@ -48,6 +49,11 @@ impl HTMLElement {
|
|||
let element = HTMLElement::new_inherited(HTMLElementTypeId, localName, prefix, document);
|
||||
Node::reflect_node(box element, document, HTMLElementBinding::Wrap)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn element<'a>(&'a self) -> &'a Element {
|
||||
&self.element
|
||||
}
|
||||
}
|
||||
|
||||
trait PrivateHTMLElementHelpers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue