Changeset 280909 in webkit
- Timestamp:
- Aug 11, 2021 8:39:04 AM (11 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-style-element/style_type_change-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLStyleElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r280907 r280909 1 2021-08-11 Chris Dumez <cdumez@apple.com> 2 3 Dynamically changing HTMLStyleElement.type should change the rendering accordingly 4 https://bugs.webkit.org/show_bug.cgi?id=228980 5 6 Reviewed by Antti Koivisto. 7 8 Rebaseline WPT test that is now passing. 9 10 * web-platform-tests/html/semantics/document-metadata/the-style-element/style_type_change-expected.txt: 11 1 12 2021-08-11 Lauro Moura <lmoura@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-style-element/style_type_change-expected.txt
r267646 r280909 2 2 3 3 PASS Check initial styleSheets length type 4 FAIL Change type from invalid type to valid type assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)" 5 FAIL Change type from valid type to invalid type assert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)" 4 PASS Change type from invalid type to valid type 5 PASS Change type from valid type to invalid type 6 6 -
trunk/Source/WebCore/ChangeLog
r280890 r280909 1 2021-08-11 Chris Dumez <cdumez@apple.com> 2 3 Dynamically changing HTMLStyleElement.type should change the rendering accordingly 4 https://bugs.webkit.org/show_bug.cgi?id=228980 5 6 Reviewed by Antti Koivisto. 7 8 Dynamically changing HTMLStyleElement.type should change the rendering accordingly. 9 10 This is causing the following WPT test to fail in WebKit: 11 - html/semantics/document-metadata/the-style-element/style_type_change.html 12 13 This test is passing in both Firefox and Chrome. 14 15 No new tests, rebaselined existing test. 16 17 * html/HTMLStyleElement.cpp: 18 (WebCore::HTMLStyleElement::parseAttribute): 19 1 20 2021-08-11 Adrian Perez de Castro <aperez@igalia.com> 2 21 -
trunk/Source/WebCore/html/HTMLStyleElement.cpp
r262003 r280909 88 88 } else 89 89 m_styleSheetOwner.childrenChanged(*this); 90 } else if (name == typeAttr) 90 } else if (name == typeAttr) { 91 91 m_styleSheetOwner.setContentType(value); 92 else 92 m_styleSheetOwner.childrenChanged(*this); 93 if (auto* scope = m_styleSheetOwner.styleScope()) 94 scope->didChangeStyleSheetContents(); 95 } else 93 96 HTMLElement::parseAttribute(name, value); 94 97 }
Note: See TracChangeset
for help on using the changeset viewer.