aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-29 17:22:11 +0200
committerAnthony Ramine <nox@nox.paris>2020-03-29 17:22:11 +0200
commit09600301c522ce1217750a15404dcf1b47c806af (patch)
tree22d3a68e7e6140b7a356c89899391920ae3db03a
parentf794feb6f4f4b5d98de9c0262f82ba0ed67ef685 (diff)
downloadservo-09600301c522ce1217750a15404dcf1b47c806af.tar.gz
servo-09600301c522ce1217750a15404dcf1b47c806af.zip
Make HTMLTableCellElementLayoutHelpers methods take self
-rw-r--r--components/script/dom/htmltablecellelement.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs
index aa3db5733bc..6aa9b466602 100644
--- a/components/script/dom/htmltablecellelement.rs
+++ b/components/script/dom/htmltablecellelement.rs
@@ -98,15 +98,15 @@ impl HTMLTableCellElementMethods for HTMLTableCellElement {
}
pub trait HTMLTableCellElementLayoutHelpers {
- fn get_background_color(&self) -> Option<RGBA>;
- fn get_colspan(&self) -> Option<u32>;
- fn get_rowspan(&self) -> Option<u32>;
- fn get_width(&self) -> LengthOrPercentageOrAuto;
+ fn get_background_color(self) -> Option<RGBA>;
+ fn get_colspan(self) -> Option<u32>;
+ fn get_rowspan(self) -> Option<u32>;
+ fn get_width(self) -> LengthOrPercentageOrAuto;
}
#[allow(unsafe_code)]
impl HTMLTableCellElementLayoutHelpers for LayoutDom<'_, HTMLTableCellElement> {
- fn get_background_color(&self) -> Option<RGBA> {
+ fn get_background_color(self) -> Option<RGBA> {
unsafe {
(&*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("bgcolor"))
@@ -115,7 +115,7 @@ impl HTMLTableCellElementLayoutHelpers for LayoutDom<'_, HTMLTableCellElement> {
}
}
- fn get_colspan(&self) -> Option<u32> {
+ fn get_colspan(self) -> Option<u32> {
unsafe {
(&*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("colspan"))
@@ -123,7 +123,7 @@ impl HTMLTableCellElementLayoutHelpers for LayoutDom<'_, HTMLTableCellElement> {
}
}
- fn get_rowspan(&self) -> Option<u32> {
+ fn get_rowspan(self) -> Option<u32> {
unsafe {
(&*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("rowspan"))
@@ -131,7 +131,7 @@ impl HTMLTableCellElementLayoutHelpers for LayoutDom<'_, HTMLTableCellElement> {
}
}
- fn get_width(&self) -> LengthOrPercentageOrAuto {
+ fn get_width(self) -> LengthOrPercentageOrAuto {
unsafe {
(&*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("width"))