mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
Replace TElement::get_link() by specific methods.
This commit is contained in:
parent
c76d73d124
commit
fa31d7d909
6 changed files with 32 additions and 18 deletions
|
@ -265,7 +265,7 @@ impl StyleSharingCandidate {
|
|||
local_name: element.get_local_name().clone(),
|
||||
class: element.get_attr(&ns!(""), &atom!("class"))
|
||||
.map(|string| string.to_owned()),
|
||||
link: element.get_link().is_some(),
|
||||
link: element.is_link(),
|
||||
namespace: (*element.get_namespace()).clone(),
|
||||
common_style_affecting_attributes:
|
||||
create_common_style_affecting_attributes_from_element(&element)
|
||||
|
@ -333,7 +333,7 @@ impl StyleSharingCandidate {
|
|||
}
|
||||
}
|
||||
|
||||
if element.get_link().is_some() != self.link {
|
||||
if element.is_link() != self.link {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue