Changeset 234953 in webkit
- Timestamp:
- Aug 16, 2018 1:50:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r234950 r234953 1 2018-08-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Custom element doesn't invalidate its style when :defined rule starts to apply 4 https://bugs.webkit.org/show_bug.cgi?id=188637 5 6 Reviewed by Antti Koivisto. 7 8 Added a regression test. 9 10 * fast/custom-elements/defined-update-style-expected.html: Added. 11 * fast/custom-elements/defined-update-style.html: Added. 12 1 13 2018-08-16 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 14 -
trunk/LayoutTests/imported/w3c/ChangeLog
r234940 r234953 1 2018-08-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Custom element doesn't invalidate its style when :defined rule starts to apply 4 https://bugs.webkit.org/show_bug.cgi?id=188637 5 6 Reviewed by Antti Koivisto. 7 8 Rebaselined the test now that all relevant test cases pass. The only remaining test failures 9 are for customized builtins which we do not and shall not implement. 10 11 * web-platform-tests/custom-elements/pseudo-class-defined-expected.txt: 12 1 13 2018-08-15 Jer Noble <jer.noble@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/pseudo-class-defined-expected.txt
r234039 r234953 12 12 PASS createElementNS("http://www.w3.org/1999/xhtml", "a-a") should not be :defined 13 13 PASS createElementNS("http://www.w3.org/2000/svg", "a-a") should be :defined 14 FAIL Upgraded createElement("a-a") should be :defined assert_equals: getComputedStyle expected "rgb(255, 165, 0)" but got "rgb(0, 0, 255)" 15 FAIL Upgraded createElementNS("http://www.w3.org/1999/xhtml", "a-a") should be :defined assert_equals: getComputedStyle expected "rgb(255, 165, 0)" but got "rgb(0, 0, 255)" 14 PASS Upgraded createElement("a-a") should be :defined 15 PASS Upgraded createElementNS("http://www.w3.org/1999/xhtml", "a-a") should be :defined 16 16 PASS Without browsing context: createElement("a-a") should not be :defined 17 17 PASS Without browsing context: createElementNS("http://www.w3.org/1999/xhtml", "a-a") should not be :defined -
trunk/Source/WebCore/ChangeLog
r234949 r234953 1 2018-08-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Custom element doesn't invalidate its style when :defined rule starts to apply 4 https://bugs.webkit.org/show_bug.cgi?id=188637 5 6 Reviewed by Antti Koivisto. 7 8 Fixed the bug by invalidating the subtree when a custom element gets defined. 9 10 Test: fast/custom-elements/defined-update-style.html 11 12 * dom/Element.cpp: 13 (WebCore::Element::setIsDefinedCustomElement): 14 1 15 2018-08-16 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebCore/dom/Element.cpp
r234884 r234953 1979 1979 if (!data.customElementReactionQueue()) 1980 1980 data.setCustomElementReactionQueue(std::make_unique<CustomElementReactionQueue>(elementInterface)); 1981 invalidateStyleForSubtree(); 1981 1982 InspectorInstrumentation::didChangeCustomElementState(*this); 1982 1983 }
Note: See TracChangeset
for help on using the changeset viewer.