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

Issue 2556083002: Don't subtract border from max size for display rect. (Closed)

Created:
4 years ago by oshima
Modified:
4 years ago
Reviewers:
sadrul, sky, Qiang(Joe) Xu
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't subtract border from max size for display rect. The display rect must be consistent with max size, otherwise the text may not fit. BUG=664370 TEST=TooltipControllerTest.TestMaxWidth Committed: https://crrev.com/8658c9c6854e1a550d2adc155cb17dc8ed39e62c Cr-Commit-Position: refs/heads/master@{#440337}

Patch Set 1 #

Total comments: 2

Patch Set 2 : RenderTextTestApi #

Total comments: 2

Patch Set 3 : explicit #

Patch Set 4 : update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -6 lines) Patch
M ui/views/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A ui/views/corewm/test/tooltip_aura_test_api.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A ui/views/corewm/test/tooltip_aura_test_api.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M ui/views/corewm/tooltip_aura.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M ui/views/corewm/tooltip_aura.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M ui/views/corewm/tooltip_controller_unittest.cc View 1 2 3 4 chunks +37 lines, -3 lines 0 comments Download

Messages

Total messages: 39 (27 generated)
oshima
4 years ago (2016-12-07 16:13:53 UTC) #3
sky
https://codereview.chromium.org/2556083002/diff/20001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/2556083002/diff/20001/ui/gfx/render_text.h#newcode532 ui/gfx/render_text.h:532: size_t line_size_for_test() const { return lines_.size(); } Add to ...
4 years ago (2016-12-07 17:09:37 UTC) #4
Qiang(Joe) Xu
On 2016/12/07 16:13:53, oshima wrote: lgtm, thanks, I didn't realize that the bug is in ...
4 years ago (2016-12-07 17:37:15 UTC) #5
oshima
https://codereview.chromium.org/2556083002/diff/20001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/2556083002/diff/20001/ui/gfx/render_text.h#newcode532 ui/gfx/render_text.h:532: size_t line_size_for_test() const { return lines_.size(); } On 2016/12/07 ...
4 years ago (2016-12-13 14:22:19 UTC) #6
sky
LGTM https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text_test_api.h File ui/gfx/test/render_text_test_api.h (right): https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text_test_api.h#newcode21 ui/gfx/test/render_text_test_api.h:21: RenderTextTestApi(RenderText* render_text) : render_text_(render_text) {} explicit
4 years ago (2016-12-13 17:48:31 UTC) #7
oshima
https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text_test_api.h File ui/gfx/test/render_text_test_api.h (right): https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text_test_api.h#newcode21 ui/gfx/test/render_text_test_api.h:21: RenderTextTestApi(RenderText* render_text) : render_text_(render_text) {} On 2016/12/13 17:48:31, sky ...
4 years ago (2016-12-13 21:18:12 UTC) #9
oshima
sadrul, can you review this? sky@ already lgtm'ed the main change. The difference is that ...
4 years ago (2016-12-21 21:21:59 UTC) #28
oshima
sadrul, can you review this? sky@ already lgtm'ed the main change. The difference is that ...
4 years ago (2016-12-21 21:22:30 UTC) #30
sadrul
lgtm
4 years ago (2016-12-22 00:37:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2556083002/140001
4 years ago (2016-12-22 02:09:00 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years ago (2016-12-22 04:16:21 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-22 04:19:39 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8658c9c6854e1a550d2adc155cb17dc8ed39e62c
Cr-Commit-Position: refs/heads/master@{#440337}

Powered by Google App Engine
This is Rietveld 408576698