mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make HTMLTableSectionElementLayoutHelpers methods take self
This commit is contained in:
parent
5d3274c181
commit
56793f24da
1 changed files with 2 additions and 2 deletions
|
@ -84,12 +84,12 @@ impl HTMLTableSectionElementMethods for HTMLTableSectionElement {
|
|||
}
|
||||
|
||||
pub trait HTMLTableSectionElementLayoutHelpers {
|
||||
fn get_background_color(&self) -> Option<RGBA>;
|
||||
fn get_background_color(self) -> Option<RGBA>;
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
impl HTMLTableSectionElementLayoutHelpers for LayoutDom<'_, HTMLTableSectionElement> {
|
||||
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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue