Changeset 204908 in webkit


Ignore:
Timestamp:
Aug 24, 2016 11:33:43 AM (8 years ago)
Author:
Alan Bujtas
Message:

ASSERTION FAILED: childrenInline() in WebCore::RenderBlockFlow::hasLines
https://bugs.webkit.org/show_bug.cgi?id=139396
<rdar://problem/27704339>

Reviewed by David Hyatt.

Source/WebCore:

RenderBlockFlow::hasLines() should be able to handle the block-children case.

Test: fast/ruby/assert-with-block-rt-child-and-emphasis.html

  • rendering/RenderBlock.h:

(WebCore::RenderBlock::hasLines): Deleted.

  • rendering/RenderBlockFlow.cpp:

(WebCore::RenderBlockFlow::hasLines):

  • rendering/RenderBlockFlow.h:

LayoutTests:

  • fast/ruby/assert-with-block-rt-child-and-emphasis-expected.txt: Added.
  • fast/ruby/assert-with-block-rt-child-and-emphasis.html: Added.
Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r204907 r204908  
     12016-08-24  Zalan Bujtas  <zalan@apple.com>
     2
     3        ASSERTION FAILED: childrenInline() in WebCore::RenderBlockFlow::hasLines
     4        https://bugs.webkit.org/show_bug.cgi?id=139396
     5        <rdar://problem/27704339>
     6
     7        Reviewed by David Hyatt.
     8
     9        * fast/ruby/assert-with-block-rt-child-and-emphasis-expected.txt: Added.
     10        * fast/ruby/assert-with-block-rt-child-and-emphasis.html: Added.
     11
    1122016-08-24  Per Arne Vollan  <pvollan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r204894 r204908  
     12016-08-24  Zalan Bujtas  <zalan@apple.com>
     2
     3        ASSERTION FAILED: childrenInline() in WebCore::RenderBlockFlow::hasLines
     4        https://bugs.webkit.org/show_bug.cgi?id=139396
     5        <rdar://problem/27704339>
     6
     7        Reviewed by David Hyatt.
     8
     9        RenderBlockFlow::hasLines() should be able to handle the block-children case.
     10
     11        Test: fast/ruby/assert-with-block-rt-child-and-emphasis.html
     12
     13        * rendering/RenderBlock.h:
     14        (WebCore::RenderBlock::hasLines): Deleted.
     15        * rendering/RenderBlockFlow.cpp:
     16        (WebCore::RenderBlockFlow::hasLines):
     17        * rendering/RenderBlockFlow.h:
     18
    1192016-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebCore/rendering/RenderBlock.h

    r204400 r204908  
    418418    virtual bool childrenPreventSelfCollapsing() const;
    419419   
    420     // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to RenderBlockFlow
    421     virtual bool hasLines() const { return false; }
    422 
    423420    void createFirstLetterRenderer(RenderElement* firstLetterBlock, RenderText* currentTextChild);
    424421    void updateFirstLetterStyle(RenderElement* firstLetterBlock, RenderObject* firstLetterContainer);
  • trunk/Source/WebCore/rendering/RenderBlockFlow.cpp

    r204466 r204908  
    35983598bool RenderBlockFlow::hasLines() const
    35993599{
    3600     ASSERT(childrenInline());
     3600    if (!childrenInline())
     3601        return false;
    36013602
    36023603    if (auto simpleLineLayout = this->simpleLineLayout())
  • trunk/Source/WebCore/rendering/RenderBlockFlow.h

    r200220 r204908  
    346346    RootInlineBox* lastRootBox() const { return downcast<RootInlineBox>(m_lineBoxes.lastLineBox()); }
    347347
    348     bool hasLines() const final;
     348    bool hasLines() const;
    349349    void invalidateLineLayoutPath() final;
    350350
Note: See TracChangeset for help on using the changeset viewer.