Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Issue 1014163002: [RenderText] Added append text (Closed)

Created:
5 years, 9 months ago by dschuyler
Modified:
5 years, 9 months ago
Reviewers:
msw, oshima
CC:
chromium-reviews, groby-ooo-7-16, Justin Donnelly, Peter Kasting
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -10 lines) Patch
M ui/gfx/render_text.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 4 3 chunks +21 lines, -10 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
dschuyler
5 years, 9 months ago (2015-03-18 01:29:39 UTC) #2
msw
See my comments at https://codereview.chromium.org/795933009/ ... Not sure if you intend to land this before ...
5 years, 9 months ago (2015-03-18 18:05:18 UTC) #4
dschuyler
On 2015/03/18 18:05:18, msw wrote: > See my comments at https://codereview.chromium.org/795933009/ ... Not sure if ...
5 years, 9 months ago (2015-03-18 19:25:11 UTC) #5
dschuyler
merged review changes from CL 795933009
5 years, 9 months ago (2015-03-18 19:25:43 UTC) #6
dschuyler
+CC jdonnelly and pkasting
5 years, 9 months ago (2015-03-18 22:51:54 UTC) #7
dschuyler
Bringing over comment from CL 795933009: msw 2015/03/18 20:20:16 Sorry, I changed my mind here ...
5 years, 9 months ago (2015-03-19 23:23:06 UTC) #8
msw
lgtm with comment nits. https://codereview.chromium.org/1014163002/diff/60001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1014163002/diff/60001/ui/gfx/render_text.cc#newcode1248 ui/gfx/render_text.cc:1248: // Adjust ranged styles and ...
5 years, 9 months ago (2015-03-20 00:24:11 UTC) #9
dschuyler
https://codereview.chromium.org/1014163002/diff/60001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1014163002/diff/60001/ui/gfx/render_text.cc#newcode1248 ui/gfx/render_text.cc:1248: // Adjust ranged styles and colors to accommodate a ...
5 years, 9 months ago (2015-03-20 00:46:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014163002/80001
5 years, 9 months ago (2015-03-20 00:46:21 UTC) #13
msw
Still lgtm, but I hoped you'd update the comment to what I suggested. https://codereview.chromium.org/1014163002/diff/80001/ui/gfx/render_text.h File ...
5 years, 9 months ago (2015-03-20 01:10:32 UTC) #14
chromium-reviews
Whoops, I'll do a separate CL On Thu, Mar 19, 2015 at 6:10 PM, <msw@chromium.org> ...
5 years, 9 months ago (2015-03-20 01:13:15 UTC) #15
dschuyler
Ok, looks like I was able to change it in this CL. https://codereview.chromium.org/1014163002/diff/80001/ui/gfx/render_text.h File ui/gfx/render_text.h ...
5 years, 9 months ago (2015-03-20 01:17:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014163002/100001
5 years, 9 months ago (2015-03-20 01:18:52 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-20 03:24:30 UTC) #21
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/92bc0de851bc0c094bbd1e3ac5e6b24202011d69 Cr-Commit-Position: refs/heads/master@{#321507}
5 years, 9 months ago (2015-03-20 03:25:26 UTC) #22
msw
5 years, 9 months ago (2015-03-20 16:19:22 UTC) #23
Message was sent while issue was closed.
Can you please add a unit test for this new functionality?

Powered by Google App Engine
This is Rietveld 408576698