aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-29 17:19:59 +0200
committerAnthony Ramine <nox@nox.paris>2020-03-29 17:19:59 +0200
commit1504f35031d804cecae08c5119f64537d6caf19a (patch)
tree6d6585acca92250bc2f6e5cc55283d63894bd740 /components/script/dom/htmliframeelement.rs
parent668ef35612c5e4b038d9c5b35a45f9ba154bbcd4 (diff)
downloadservo-1504f35031d804cecae08c5119f64537d6caf19a.tar.gz
servo-1504f35031d804cecae08c5119f64537d6caf19a.zip
Make HTMLIFrameElementLayoutMethods methods take self
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 16c5c1433b6..7b8c89bebf9 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -480,27 +480,27 @@ impl HTMLIFrameElement {
}
pub trait HTMLIFrameElementLayoutMethods {
- fn pipeline_id(&self) -> Option<PipelineId>;
- fn browsing_context_id(&self) -> Option<BrowsingContextId>;
- fn get_width(&self) -> LengthOrPercentageOrAuto;
- fn get_height(&self) -> LengthOrPercentageOrAuto;
+ fn pipeline_id(self) -> Option<PipelineId>;
+ fn browsing_context_id(self) -> Option<BrowsingContextId>;
+ fn get_width(self) -> LengthOrPercentageOrAuto;
+ fn get_height(self) -> LengthOrPercentageOrAuto;
}
impl HTMLIFrameElementLayoutMethods for LayoutDom<'_, HTMLIFrameElement> {
#[inline]
#[allow(unsafe_code)]
- fn pipeline_id(&self) -> Option<PipelineId> {
+ fn pipeline_id(self) -> Option<PipelineId> {
unsafe { (*self.unsafe_get()).pipeline_id.get() }
}
#[inline]
#[allow(unsafe_code)]
- fn browsing_context_id(&self) -> Option<BrowsingContextId> {
+ fn browsing_context_id(self) -> Option<BrowsingContextId> {
unsafe { (*self.unsafe_get()).browsing_context_id.get() }
}
#[allow(unsafe_code)]
- fn get_width(&self) -> LengthOrPercentageOrAuto {
+ fn get_width(self) -> LengthOrPercentageOrAuto {
unsafe {
(*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("width"))
@@ -511,7 +511,7 @@ impl HTMLIFrameElementLayoutMethods for LayoutDom<'_, HTMLIFrameElement> {
}
#[allow(unsafe_code)]
- fn get_height(&self) -> LengthOrPercentageOrAuto {
+ fn get_height(self) -> LengthOrPercentageOrAuto {
unsafe {
(*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("height"))