Skip to content
  • inferno@chromium.org's avatar
    :before content rendering issues with list markers and run-ins. · 0f3545f6
    inferno@chromium.org authored
    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
    0f3545f6