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.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed