mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
selectors: Remove the get_ prefix from get_local_name and get_namespace.
This commit is contained in:
parent
da99f159f4
commit
7ab4b21bc3
12 changed files with 60 additions and 55 deletions
|
@ -347,8 +347,8 @@ pub trait ThreadSafeLayoutElement
|
|||
|
||||
#[inline]
|
||||
fn get_details_summary_pseudo(&self) -> Option<Self> {
|
||||
if self.get_local_name() == &local_name!("details") &&
|
||||
self.get_namespace() == &ns!(html) {
|
||||
if self.local_name() == &local_name!("details") &&
|
||||
self.namespace() == &ns!(html) {
|
||||
Some(self.with_pseudo(PseudoElementType::DetailsSummary))
|
||||
} else {
|
||||
None
|
||||
|
@ -357,8 +357,8 @@ pub trait ThreadSafeLayoutElement
|
|||
|
||||
#[inline]
|
||||
fn get_details_content_pseudo(&self) -> Option<Self> {
|
||||
if self.get_local_name() == &local_name!("details") &&
|
||||
self.get_namespace() == &ns!(html) &&
|
||||
if self.local_name() == &local_name!("details") &&
|
||||
self.namespace() == &ns!(html) &&
|
||||
self.get_attr(&ns!(), &local_name!("open")).is_some() {
|
||||
Some(self.with_pseudo(PseudoElementType::DetailsContent))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue