DescriptionAdd a unit tests for RenderText::FindCursorPosition.
Verifies that FindCursorPosition works with GetGlyphBounds values.
Prompted by a question reviewing Cem's WIP RenderTextHarfBuzz:
https://codereview.chromium.org/152473008/diff/100001/ui/gfx/render_text_harfbuzz.cc#newcode787
I thought RenderTextWin::GetRunContainingXCoord needed visual run order.
Logical run order is fine as-is, because it checks the range of x bounds.
(RenderTextHarfBuzz should probably do the same thing to be safe/correct)
BUG=NONE
TEST=NONE
R=asvitkine@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269941
Patch Set 1 #Patch Set 2 : Refine the test; cleanup debugging code. #
Total comments: 2
Patch Set 3 : EnsureLayout in RenderTextWin::GetGlyphBounds; cleanup. #
Messages
Total messages: 8 (0 generated)
|