Chromium Code Reviews| Index: Source/core/rendering/RenderText.cpp |
| diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp |
| index 7911acabef303ca84e6695b2ff682f19cd9b8015..ab3cb1ca6564071a58710c3125bc2f5bb7a3e4eb 100644 |
| --- a/Source/core/rendering/RenderText.cpp |
| +++ b/Source/core/rendering/RenderText.cpp |
| @@ -528,7 +528,7 @@ static PositionWithAffinity createPositionWithAffinityForBox(const InlineBox* bo |
| affinity = offset > box->caretMinOffset() ? VP_UPSTREAM_IF_POSSIBLE : DOWNSTREAM; |
| break; |
| } |
| - return box->renderer()->createPositionWithAffinity(offset, affinity); |
| + return box->renderer()->createPositionWithAffinity(offset + toRenderText(box->renderer())->textStartOffset(), affinity); |
|
tkent
2013/08/02 02:22:19
Is it safe to assume box->renderer() is RenderText
yosin_UTC9
2013/08/02 05:01:55
No. Good catch!
|
| } |
| static PositionWithAffinity createPositionWithAffinityForBoxAfterAdjustingOffsetForBiDi(const InlineTextBox* box, int offset, ShouldAffinityBeDownstream shouldAffinityBeDownstream) |