aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-06-04 08:30:39 -0400
committerGitHub <noreply@github.com>2019-06-04 08:30:39 -0400
commitfe8aad722749e8e5c9223800b98fc4e87b9ab161 (patch)
tree31150ecb4738828a3afd66fa1b1e76d0bf785550 /components/script_layout_interface
parent6e83856d7bcb79d1a937f026ef4fcf1a3256c2c6 (diff)
parentc155639bc5d8357d8c6e27535bc64f72bb8d2562 (diff)
downloadservo-fe8aad722749e8e5c9223800b98fc4e87b9ab161.tar.gz
servo-fe8aad722749e8e5c9223800b98fc4e87b9ab161.zip
Auto merge of #23503 - emilio:gecko-sync, r=emilio
style: sync changes from mozilla-central See each individual commit for details. This also cherry-picks #23463 with a few fixes that were needed in Gecko-only code. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23503) <!-- Reviewable:end -->
Diffstat (limited to 'components/script_layout_interface')
-rw-r--r--components/script_layout_interface/wrapper_traits.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs
index 0e1df2ac4c8..ae559474d06 100644
--- a/components/script_layout_interface/wrapper_traits.rs
+++ b/components/script_layout_interface/wrapper_traits.rs
@@ -391,7 +391,7 @@ pub trait ThreadSafeLayoutElement:
#[inline]
fn get_details_summary_pseudo(&self) -> Option<Self> {
- if self.local_name() == &local_name!("details") && self.namespace() == &ns!(html) {
+ if self.has_local_name(&local_name!("details")) && self.has_namespace(&ns!(html)) {
Some(self.with_pseudo(PseudoElementType::DetailsSummary))
} else {
None
@@ -400,8 +400,8 @@ pub trait ThreadSafeLayoutElement:
#[inline]
fn get_details_content_pseudo(&self) -> Option<Self> {
- if self.local_name() == &local_name!("details") &&
- self.namespace() == &ns!(html) &&
+ if self.has_local_name(&local_name!("details")) &&
+ self.has_namespace(&ns!(html)) &&
self.get_attr(&ns!(), &local_name!("open")).is_some()
{
Some(self.with_pseudo(PseudoElementType::DetailsContent))