mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move all *MatchMethods to TElement.
MozReview-Commit-ID: 3V6JIlOVVhw
This commit is contained in:
parent
1090abae87
commit
2fce2fbb0c
7 changed files with 98 additions and 163 deletions
|
@ -160,7 +160,6 @@ impl<'ln> NodeInfo for GeckoNode<'ln> {
|
|||
impl<'ln> TNode for GeckoNode<'ln> {
|
||||
type ConcreteDocument = GeckoDocument<'ln>;
|
||||
type ConcreteElement = GeckoElement<'ln>;
|
||||
type ConcreteRestyleDamage = GeckoRestyleDamage;
|
||||
type ConcreteChildrenIterator = GeckoChildrenIterator<'ln>;
|
||||
|
||||
fn to_unsafe(&self) -> UnsafeNode {
|
||||
|
@ -399,6 +398,7 @@ lazy_static! {
|
|||
impl<'le> TElement for GeckoElement<'le> {
|
||||
type ConcreteNode = GeckoNode<'le>;
|
||||
type ConcreteDocument = GeckoDocument<'le>;
|
||||
type ConcreteRestyleDamage = GeckoRestyleDamage;
|
||||
|
||||
fn as_node(&self) -> Self::ConcreteNode {
|
||||
unsafe { GeckoNode(&*(self.0 as *const _ as *const RawGeckoNode)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue