mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 04:29:37 +08:00
Explicitly check sTextBuf.IsEmpty() in CPWL_EditImpl::DrawEdit() to force a reset of the continuous rendering run state. Update the base placement coordinates for new character sequences even when the text buffer is empty, preventing newly typed text from incorrectly inheriting stale coordinates from the previous run. On the testing side, the baseline expected bitmaps for embedder tests are updated. Previously, trailing Left-To-Right glyph was drawn at coordinates overlapping the preceding Right-To-Left text run. Updated images verify the trailing LTR character's placement coordinate correctly advances past the bounding box of the RTL run. Bug: 535730401 Change-Id: I430abe2255f38a739488313b7f7a2b1c304ac857 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/152290 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Seung Hyun Jin <seunghyunjin@google.com>