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

Issue 953093003: Cleanup unnecessary code in canvas_skia (Closed)

Created:
5 years, 10 months ago by oshima
Modified:
5 years, 9 months ago
Reviewers:
msw, Jun Mukai, sky
CC:
chromium-reviews, tfarina, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup unnecessary code in canvas_skia * Removed AdjustStringDirection() * Removed FORCE_XXXX_DIRECTIONALITY and replace with TEXT_ALIGN_TO_HEAD. This is necessary not to use Canvas::DefaultCanvasTextAlignment for labels. * Also removed the safe guard in SizeStringFloat because RenderTextWin has been removed. BUG=None TEST=No functional change. Removed LabelTest, DirectionalityFromText that no longer makes sense. R=msw@chromium.org Committed: https://crrev.com/7410ba7817276da208e2794bae934bebbc8e9ab8 Cr-Commit-Position: refs/heads/master@{#319166}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -147 lines) Patch
M ui/gfx/canvas.h View 1 1 chunk +8 lines, -21 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 9 chunks +22 lines, -83 lines 0 comments Download
M ui/message_center/views/bounded_label.cc View 1 chunk +1 line, -5 lines 0 comments Download
M ui/views/controls/label.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M ui/views/controls/label_unittest.cc View 7 chunks +6 lines, -31 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
oshima
5 years, 10 months ago (2015-02-25 02:40:32 UTC) #5
msw
https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas.h#newcode43 ui/gfx/canvas.h:43: // Specifies the alignment for text rendered with the ...
5 years, 10 months ago (2015-02-25 17:05:20 UTC) #6
msw
+mukai, the Label rewrite uses this, I think...
5 years, 10 months ago (2015-02-25 23:27:21 UTC) #8
msw
On 2015/02/25 23:27:21, msw wrote: > +mukai, the Label rewrite uses this, I think... Nevermind, ...
5 years, 10 months ago (2015-02-25 23:49:45 UTC) #9
oshima
https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas.h#newcode43 ui/gfx/canvas.h:43: // Specifies the alignment for text rendered with the ...
5 years, 9 months ago (2015-03-04 08:01:50 UTC) #10
msw
lgtm with minor comments. https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas_skia.cc File ui/gfx/canvas_skia.cc (left): https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas_skia.cc#oldcode203 ui/gfx/canvas_skia.cc:203: const size_t kMaxRenderTextLength = 5000; ...
5 years, 9 months ago (2015-03-04 17:09:36 UTC) #11
oshima
https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas_skia.cc File ui/gfx/canvas_skia.cc (left): https://codereview.chromium.org/953093003/diff/80001/ui/gfx/canvas_skia.cc#oldcode204 ui/gfx/canvas_skia.cc:204: if (adjusted_text.length() >= kMaxRenderTextLength) { On 2015/03/04 17:09:36, msw ...
5 years, 9 months ago (2015-03-04 20:17:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/953093003/120001
5 years, 9 months ago (2015-03-04 20:26:42 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/47313)
5 years, 9 months ago (2015-03-04 20:47:10 UTC) #16
oshima
sky@ -> ui/views
5 years, 9 months ago (2015-03-04 21:42:22 UTC) #18
sky
LGTM
5 years, 9 months ago (2015-03-04 22:45:25 UTC) #19
Jun Mukai
lgtm
5 years, 9 months ago (2015-03-04 23:14:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/953093003/120001
5 years, 9 months ago (2015-03-04 23:16:11 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:120001)
5 years, 9 months ago (2015-03-05 00:09:03 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 00:09:37 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7410ba7817276da208e2794bae934bebbc8e9ab8
Cr-Commit-Position: refs/heads/master@{#319166}

Powered by Google App Engine
This is Rietveld 408576698