Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntroduce ElementCSSInlineStyle for SVGElement #26789
Conversation
highfive
commented
Jun 4, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 4, 2020
|
I haven't tried to build an apk and run it in an Android phone or emulator but I think this should also fix #21990 |
|
@bors-servo try=wpt |
Introduce ElementCSSInlineStyle for SVGElement --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26777 and fix #26032 and fix #21990 - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| @@ -13,9 +18,18 @@ use style::element_state::ElementState; | |||
| #[dom_struct] | |||
| pub struct SVGElement { | |||
| element: Element, | |||
| style_decl: MutNullableDom<CSSStyleDeclaration>, | |||
This comment has been minimized.
This comment has been minimized.
CYBAI
Jun 4, 2020
Author
Collaborator
also cc @emilio
I basically refer to HTMLElement to add this field. Does this make sense?
This comment has been minimized.
This comment has been minimized.
emilio
Jun 4, 2020
Member
It does, though maybe it should be moved down to Element, even if not web-exposed there, because that's where style_attribute lives. Anyhow no big deal.
|
This looks fine to me if tests pass! |
|
|
|
@bors-servo r+ |
|
|
|
thanks! btw, with enabling |
|
|
CYBAI commentedJun 4, 2020
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors