Chromium Code Reviews
Description[RenderText] Added append text
RenderText previously only had a SetText to alter the text. Calling SetText would reset the text styling already setup.
It can be more efficient in some cases to preserve the existing font styling and when only adding text to the end of the RenderText.
This patch adds AppendText that allows adding to an exiting RenderText without disturbing the existing styling.
This change is related to (and used by) CL 795933009.
BUG=
Committed: https://crrev.com/92bc0de851bc0c094bbd1e3ac5e6b24202011d69
Cr-Commit-Position: refs/heads/master@{#321507}
Patch Set 1 #Patch Set 2 : Added DoAppendText #Patch Set 3 : Merge from master #Patch Set 4 : Changed DoAppendText to UpdateStyleLengths #
Total comments: 4
Patch Set 5 : Moved comment for UpdateStyleLengths #
Total comments: 2
Patch Set 6 : Changed UpdateStyleLengths comment #Messages
Total messages: 23 (7 generated)
|