Set the end position on the placeholder BidiRun properly.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2016 23:24:59 +0000 (23:24 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Jun 2016 23:24:59 +0000 (23:24 +0000)
commit2a1d894135b917a7b59b9f7ca410ab4da7bc9c2e
tree554f88ed484d46e52c1ab2a052d3c8d7cb1c8368
parent70d3183a013e71c999f5c6b1e2406231efdca261
Set the end position on the placeholder BidiRun properly.
https://bugs.webkit.org/show_bug.cgi?id=158958

Reviewed by Myles C. Maxfield.
rdar://problem/26609266

The second paramenter for BidiRun indicates the end position and not the length of the run.
This was regressed at r102875 where only the start position was changed from 0 to pos.

Source/WebCore:

Test: fast/text/international/bidi-style-in-isolate-crash.html

* rendering/InlineIterator.h:
(WebCore::addPlaceholderRunForIsolatedInline):

LayoutTests:

* fast/text/international/bidi-style-in-isolate-crash-expected.txt: Added.
* fast/text/international/bidi-style-in-isolate-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/international/bidi-style-in-isolate-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/international/bidi-style-in-isolate-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/InlineIterator.h