[New Block-Inside-Inline Model] Anonymous inline-blocks should size as though they...
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Mar 2015 19:14:19 +0000 (19:14 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Mar 2015 19:14:19 +0000 (19:14 +0000)
commit7204fb6eb01ee9ed5b915e3b7eede76f63591819
treecb3169bcb2dd79a220c1d7a4eb2e217113273539
parentd6360ac59c71cb40d31420df0b35809681397339
[New Block-Inside-Inline Model] Anonymous inline-blocks should size as though they are block-level.
https://bugs.webkit.org/show_bug.cgi?id=143271

Reviewed by Dean Jackson.

Source/WebCore:

Added fast/block/inside-inlines/block-width-check.html.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::sizesLogicalWidthToFitContent):
Return false when an anonymous inline-block is encountered, since we want to treat it like a regular
block instead.

LayoutTests:

* fast/block/inside-inlines/block-width-check-expected.html: Added.
* fast/block/inside-inlines/block-width-check.html: Added.
* fast/block/inside-inlines/new-model/block-width-check-expected.html: Added.
* fast/block/inside-inlines/new-model/block-width-check.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@182195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/inside-inlines/block-width-check-expected.html [new file with mode: 0644]
LayoutTests/fast/block/inside-inlines/block-width-check.html [new file with mode: 0644]
LayoutTests/fast/block/inside-inlines/new-model/block-width-check-expected.html [new file with mode: 0644]
LayoutTests/fast/block/inside-inlines/new-model/block-width-check.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp