Index: Source/core/rendering/BidiRunForLine.cpp |
diff --git a/Source/core/rendering/BidiRunForLine.cpp b/Source/core/rendering/BidiRunForLine.cpp |
index 9032966f7090d6e580bb424ef55d18c423062721..ffea34db61ad9db491f49989e2e34880d830758d 100644 |
--- a/Source/core/rendering/BidiRunForLine.cpp |
+++ b/Source/core/rendering/BidiRunForLine.cpp |
@@ -83,8 +83,8 @@ static RenderObject* firstRenderObjectForDirectionalityDetermination( |
TextDirection determinePlaintextDirectionality(RenderObject* root, |
RenderObject* current = 0, unsigned pos = 0) |
{ |
- InlineIterator iter(root, |
- firstRenderObjectForDirectionalityDetermination(root, current), pos); |
+ RenderObject* firstRenderObject = firstRenderObjectForDirectionalityDetermination(root, current); |
+ InlineIterator iter(root, firstRenderObject, firstRenderObject == current ? pos : 0); |
InlineBidiResolver observer; |
observer.setStatus(BidiStatus(root->style()->direction(), |
isOverride(root->style()->unicodeBidi()))); |