Text should overflow when list item height set to 0
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 20:49:24 +0000 (20:49 +0000)
committerrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 20:49:24 +0000 (20:49 +0000)
commit93c2a7647d5b9605e8cafbdcfbb7e708e0bee697
tree52ead21670c8f6de6bf8e9cd966578b712cac64a
parentfb885b07b68a0a1fea762b1e06add773716cb7ef
Text should overflow when list item height set to 0
https://bugs.webkit.org/show_bug.cgi?id=78726

Reviewed by Julien Chaffraix.

Source/WebCore:

Tests: css2.1/20110323/height-applies-to-010a-expected.html
       fast/css/heightless-list-item-expected.html
       fast/css/heightless-list-item.html

* rendering/RenderListItem.cpp:
(WebCore::RenderListItem::paint):
   If the list item has height:0, only paint it if the list item allows any block or inline content
   to overflow unclipped. The zero-height check is a shortcut to avoid unnecessary painting and
   this seems to be the only case where there's something to do.

LayoutTests:

* css2.1/20110323/height-applies-to-010a-expected.html: Added.
* css2.1/20110323/height-applies-to-010a.htm: Added.
* fast/css/heightless-list-item-expected.html: Added.
* fast/css/heightless-list-item.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css2.1/20110323/height-applies-to-010a-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/height-applies-to-010a.htm [new file with mode: 0644]
LayoutTests/fast/css/heightless-list-item-expected.html [new file with mode: 0644]
LayoutTests/fast/css/heightless-list-item.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderListItem.cpp