Commit 7fa7cb0
committed
Align SVGStyleElement's type and media attributes with HTML
https://bugs.webkit.org/show_bug.cgi?id=297909
Reviewed by NOBODY (OOPS!).
See w3c/svgwg#1001
This aligns SVGStyleElement type and media to use pure attribute reflection which matches how HTMLStyleElement works.
This aligns WebKit with Firefox/Gecko.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-media-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-media.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-type-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-type.html: Added.
* Source/WebCore/svg/SVGStyleElement.cpp:
(WebCore::SVGStyleElement::type const): Deleted.
(WebCore::SVGStyleElement::setType): Deleted.
(WebCore::SVGStyleElement::media const): Deleted.
(WebCore::SVGStyleElement::setMedia): Deleted.
* Source/WebCore/svg/SVGStyleElement.h:
* Source/WebCore/svg/SVGStyleElement.idl:1 parent 46a9586 commit 7fa7cb0
File tree
7 files changed
+40
-30
lines changed- LayoutTests/imported/w3c/web-platform-tests/svg/styling
- Source/WebCore/svg
7 files changed
+40
-30
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 69 | | |
92 | 70 | | |
93 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments