From d155dfe253628f04ad1d57a5486e26ddf4f17c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Sun, 25 May 2025 17:33:34 +0200 Subject: [PATCH] Rename `Stylesheet::Type_` to `Stylesheet::Type` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon Wülker --- components/script/dom/stylesheet.rs | 4 ++-- components/script_bindings/webidls/StyleSheet.webidl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/script/dom/stylesheet.rs b/components/script/dom/stylesheet.rs index bf708685426..8bb6faa0c90 100644 --- a/components/script/dom/stylesheet.rs +++ b/components/script/dom/stylesheet.rs @@ -39,8 +39,8 @@ impl StyleSheet { } impl StyleSheetMethods for StyleSheet { - // https://drafts.csswg.org/cssom/#dom-stylesheet-type - fn Type_(&self) -> DOMString { + /// + fn Type(&self) -> DOMString { self.type_.clone() } diff --git a/components/script_bindings/webidls/StyleSheet.webidl b/components/script_bindings/webidls/StyleSheet.webidl index cb8290cc30b..7e0636cf7c0 100644 --- a/components/script_bindings/webidls/StyleSheet.webidl +++ b/components/script_bindings/webidls/StyleSheet.webidl @@ -5,7 +5,7 @@ // https://drafts.csswg.org/cssom/#the-stylesheet-interface [Exposed=Window] interface StyleSheet { - readonly attribute DOMString type_; + readonly attribute DOMString type; readonly attribute DOMString? href; readonly attribute Element? ownerNode;