Crash in WebCore::RenderStyle::overflowX with display:contents
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2017 14:46:17 +0000 (14:46 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2017 14:46:17 +0000 (14:46 +0000)
commite5deb5917d3d672dfa2fc8198b7e3f2fd3aa6f4e
treeab6f31459167a90c68e4be38232c5ed4e801af27
parentf4af3c3e240deca4a489761d6c4866a79cc314e6
Crash in WebCore::RenderStyle::overflowX with display:contents
https://bugs.webkit.org/show_bug.cgi?id=178857
<rdar://problem/35201120>

Reviewed by Zalan Bujtas.

LayoutTests/imported/w3c:

* web-platform-tests/css/css-display-3/display-contents-computed-style-expected.txt:

Source/WebCore:

Crash test by Renata Hodovan.

Tests: fast/css/display-contents-all.html
       fast/css/display-contents-document-element.html

* css/StyleResolver.cpp:
(WebCore::adjustDisplayContentsStyle):

For document element 'display:contents' should adjust to 'display:block' like it does for other display types.

LayoutTests:

* fast/css/display-contents-all-expected.html: Added.
* fast/css/display-contents-all.html: Added.
* fast/css/display-contents-document-element-expected.txt: Added.
* fast/css/display-contents-document-element.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/display-contents-all-expected.html [new file with mode: 0644]
LayoutTests/fast/css/display-contents-all.html [new file with mode: 0644]
LayoutTests/fast/css/display-contents-document-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/display-contents-document-element.html [new file with mode: 0644]
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css/css-display-3/display-contents-computed-style-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp