Changeset 89183 in webkit


Ignore:
Timestamp:
Jun 17, 2011 7:38:45 PM (13 years ago)
Author:
jchaffraix@webkit.org
Message:

2011-06-17 Julien Chaffraix <jchaffraix@webkit.org>

Reviewed by Darin Adler.

Assertion failure in SVGTextLayoutEngine constructor (!m_layoutAttributes.isEmpty())
https://bugs.webkit.org/show_bug.cgi?id=62884

  • svg/custom/assert-empty-layout-attributes-expected.txt: Added.
  • svg/custom/assert-empty-layout-attributes.svg: Added.

2011-06-17 Julien Chaffraix <jchaffraix@webkit.org>

Reviewed by Darin Adler.

Assertion failure in SVGTextLayoutEngine constructor (!m_layoutAttributes.isEmpty())
https://bugs.webkit.org/show_bug.cgi?id=62884

Test: svg/custom/assert-empty-layout-attributes.svg

  • rendering/svg/SVGRootInlineBox.cpp: (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation): Added a early return here. It is not needed to do the text layout algorithm if you don't have any layout information as your size is (0, 0) anyway.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89176 r89183  
     12011-06-17  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Assertion failure in SVGTextLayoutEngine constructor (!m_layoutAttributes.isEmpty())
     6        https://bugs.webkit.org/show_bug.cgi?id=62884
     7
     8        * svg/custom/assert-empty-layout-attributes-expected.txt: Added.
     9        * svg/custom/assert-empty-layout-attributes.svg: Added.
     10
    1112011-06-17  David Grogan  <dgrogan@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r89181 r89183  
     12011-06-17  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Assertion failure in SVGTextLayoutEngine constructor (!m_layoutAttributes.isEmpty())
     6        https://bugs.webkit.org/show_bug.cgi?id=62884
     7
     8        Test: svg/custom/assert-empty-layout-attributes.svg
     9
     10        * rendering/svg/SVGRootInlineBox.cpp:
     11        (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation): Added a early return here.
     12        It is not needed to do the text layout algorithm if you don't have any layout information as
     13        your size is (0, 0) anyway.
     14
    1152011-06-17  Alexey Proskuryakov  <ap@apple.com>
    216
  • trunk/Source/WebCore/rendering/svg/SVGRootInlineBox.cpp

    r87964 r89183  
    7878
    7979    Vector<SVGTextLayoutAttributes>& attributes = parentBlock->layoutAttributes();
     80    if (attributes.isEmpty())
     81        return;
     82
    8083    if (parentBlock->needsReordering())
    8184        reorderValueLists(attributes);
Note: See TracChangeset for help on using the changeset viewer.