⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 101180 in webkit


Ignore:
Timestamp:
Nov 25, 2011, 12:21:06 PM (15 years ago)
Author:
rniwa@webkit.org
Message:

Crash in BidiRunList<Run>::replaceRunWithRuns with an empty bdi element
https://bugs.webkit.org/show_bug.cgi?id=73116

Reviewed by Eric Seidel.

Source/WebCore:

The assertion failure was caused because isolatedResolver is initialized with
null start object due to the isolated run being empty.

Fixed the failure by skipping empty isolated runs.

Test: fast/text/empty-bdi-crash.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::constructBidiRuns):

LayoutTests:

Added a regression test.

  • fast/text/empty-bdi-crash-expected.txt: Added.
  • fast/text/empty-bdi-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r101173 r101180  
     12011-11-25  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Crash in BidiRunList<Run>::replaceRunWithRuns with an empty bdi element
     4        https://bugs.webkit.org/show_bug.cgi?id=73116
     5
     6        Reviewed by Eric Seidel.
     7
     8        Added a regression test.
     9
     10        * fast/text/empty-bdi-crash-expected.txt: Added.
     11        * fast/text/empty-bdi-crash.html: Added.
     12
    1132011-11-25  Yury Semikhatsky  <yurys@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r101177 r101180  
     12011-11-25  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Crash in BidiRunList<Run>::replaceRunWithRuns with an empty bdi element
     4        https://bugs.webkit.org/show_bug.cgi?id=73116
     5
     6        Reviewed by Eric Seidel.
     7
     8        The assertion failure was caused because isolatedResolver is initialized with
     9        null start object due to the isolated run being empty.
     10
     11        Fixed the failure by skipping empty isolated runs.
     12
     13        Test: fast/text/empty-bdi-crash.html
     14
     15        * rendering/RenderBlockLineLayout.cpp:
     16        (WebCore::constructBidiRuns):
     17
    1182011-11-25  Antti Koivisto  <antti@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r100949 r101180  
    965965        // currently prevents this code from moving into BidiResolver.
    966966        RenderObject* startObj = bidiFirstSkippingEmptyInlines(isolatedSpan, &isolatedResolver);
     967        if (!startObj)
     968            continue;
    967969        isolatedResolver.setPosition(InlineIterator(isolatedSpan, startObj, 0));
    968970
Note: See TracChangeset for help on using the changeset viewer.