:before content rendering issues with list markers and run-ins.
authorAbhishek Arya <inferno@chromium.org>
Fri, 9 Sep 2011 16:23:53 +0000 (16:23 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 12 Sep 2011 15:03:52 +0000 (12:03 -0300)
commit226e912b0efbde3669ddc28e5493b47281acaeba
treefe088c98d62aa892960ba74ecc22342b383272d6
parentfd242857e5f72c0e071953fc4fce26ac8f80c2a8
:before content rendering issues with list markers and run-ins.
https://bugs.webkit.org/show_bug.cgi?id=67735

Source/WebCore:

1) Remove the isAnonymous checks for run-in detection since the
run-in can belong to a node.
2) When the parent has block children, then the list marker will
be enclosed in an anonymous block. In that case, for going to the
next list marker, we need to traverse one level up. We don't need
this check when searching for generated run-in (loop 2), since we
know parent will have inline children, so the list marker wont be
enclosed in an anonymous block.

Reviewed by Dave Hyatt.

Tests: fast/lists/list-marker-before-content-table.html
       fast/runin/runin-generated-before-content.html

* rendering/RenderObjectChildList.cpp:
(WebCore::RenderObjectChildList::beforePseudoElementRenderer):

LayoutTests:

Reviewed by Dave Hyatt.

* fast/lists/list-marker-before-content-table-expected.png: Added.
* fast/lists/list-marker-before-content-table-expected.txt: Added.
* fast/lists/list-marker-before-content-table.html: Added.
* fast/runin/runin-generated-before-content-expected.png: Added.
* fast/runin/runin-generated-before-content-expected.txt: Added.
* fast/runin/runin-generated-before-content.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/lists/list-marker-before-content-table-expected.png [new file with mode: 0644]
LayoutTests/fast/lists/list-marker-before-content-table-expected.txt [new file with mode: 0644]
LayoutTests/fast/lists/list-marker-before-content-table.html [new file with mode: 0644]
LayoutTests/fast/runin/runin-generated-before-content-expected.png [new file with mode: 0644]
LayoutTests/fast/runin/runin-generated-before-content-expected.txt [new file with mode: 0644]
LayoutTests/fast/runin/runin-generated-before-content.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObjectChildList.cpp