DescriptionRenderText: Allow setting display offset explicitly
Currently, display offset for a gfx::RenderText is computed
automatically to ensure the cursor is always visible. This CL adds the
ability to set display offset explicitly which, as an example, can be
useful in adding touch scrolling to textfields. Display offset set this
way is not permanent and will be recalculated next time a property
(text, font, alignment, etc.) is changed.
BUG=388862
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282308
Patch Set 1 #
Total comments: 4
Patch Set 2 : Pass only horizontal offset #Patch Set 3 : Fixed center-aligned texts #Patch Set 4 : Added test #
Total comments: 1
Patch Set 5 : nit #
Messages
Total messages: 8 (0 generated)
|