mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
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>
This commit is contained in:
parent
70a2ea3a66
commit
41ecfb53a1
3 changed files with 3 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue