aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-05-25 19:36:16 +0200
committerGitHub <noreply@github.com>2025-05-25 17:36:16 +0000
commit41ecfb53a1e35c042cb7052ad6a64dbd1ddccd97 (patch)
treee2501a90e6978fa9456f6a1a23a8fedb0dbf8a97 /components/script/dom
parent70a2ea3a66350036f361176d544b7c054d67d3dc (diff)
downloadservo-41ecfb53a1e35c042cb7052ad6a64dbd1ddccd97.tar.gz
servo-41ecfb53a1e35c042cb7052ad6a64dbd1ddccd97.zip
Rename `Stylesheet::Type_` to `Stylesheet::Type` (#37126)
I'm not sure if `CodegenRust.py` was supposed to remove the underscore, but we end up exposing `type_` to javascript which is obviously wrong. There's no need to rename the method in the first place, because `Type` (with a capital T) is not a rust keyword. Testing: Covered by existing web platform tests --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/stylesheet.rs4
1 files changed, 2 insertions, 2 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<crate::DomTypeHolder> for StyleSheet {
- // https://drafts.csswg.org/cssom/#dom-stylesheet-type
- fn Type_(&self) -> DOMString {
+ /// <https://drafts.csswg.org/cssom/#dom-stylesheet-type>
+ fn Type(&self) -> DOMString {
self.type_.clone()
}