mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make LayoutSVGSVGElementHelpers methods take self
This commit is contained in:
parent
56793f24da
commit
301acdc309
1 changed files with 2 additions and 2 deletions
|
@ -49,12 +49,12 @@ impl SVGSVGElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait LayoutSVGSVGElementHelpers {
|
pub trait LayoutSVGSVGElementHelpers {
|
||||||
fn data(&self) -> SVGSVGData;
|
fn data(self) -> SVGSVGData;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LayoutSVGSVGElementHelpers for LayoutDom<'_, SVGSVGElement> {
|
impl LayoutSVGSVGElementHelpers for LayoutDom<'_, SVGSVGElement> {
|
||||||
#[allow(unsafe_code, non_snake_case)]
|
#[allow(unsafe_code, non_snake_case)]
|
||||||
fn data(&self) -> SVGSVGData {
|
fn data(self) -> SVGSVGData {
|
||||||
unsafe {
|
unsafe {
|
||||||
let SVG = &*self.unsafe_get();
|
let SVG = &*self.unsafe_get();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue