|
|
Chromium Code Reviews
DescriptionDon'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 #
Messages
Total messages: 39 (27 generated)
Patchset #1 (id:1) has been deleted
oshima@chromium.org changed reviewers: + sky@chromium.org, warx@chromium.org
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#ne... ui/gfx/render_text.h:532: size_t line_size_for_test() const { return lines_.size(); } Add to test::RenderTextTestApi ?
On 2016/12/07 16:13:53, oshima wrote: lgtm, thanks, I didn't realize that the bug is in the displaying of render_text_.
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#ne... ui/gfx/render_text.h:532: size_t line_size_for_test() const { return lines_.size(); } On 2016/12/07 17:09:37, sky wrote: > Add to test::RenderTextTestApi ? Extracted to a separate file. PTAL.
LGTM https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text... File ui/gfx/test/render_text_test_api.h (right): https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text... ui/gfx/test/render_text_test_api.h:21: RenderTextTestApi(RenderText* render_text) : render_text_(render_text) {} explicit
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text... File ui/gfx/test/render_text_test_api.h (right): https://codereview.chromium.org/2556083002/diff/40001/ui/gfx/test/render_text... 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 wrote: > explicit Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #5 (id:100001) has been deleted
Patchset #5 (id:120001) has been deleted
Patchset #4 (id:80001) has been deleted
sadrul, can you review this? sky@ already lgtm'ed the main change. The difference is that original test was font configuration dependent, and was failing on bots. I changed it so that it tests the display rect has max width. thanks.
oshima@chromium.org changed reviewers: + sadrul@chromium.org
sadrul, can you review this? sky@ already lgtm'ed the main change. The difference is that original test was font configuration dependent, and was failing on bots. I changed it so that it tests the display rect has max width. thanks.
lgtm
The CQ bit was checked by oshima@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from warx@chromium.org, sky@chromium.org Link to the patchset: https://codereview.chromium.org/2556083002/#ps140001 (title: "update test")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1482372529954190,
"parent_rev": "ae88af224cc2ae342a38ba46944e9f4c3421627d", "commit_rev":
"a9e1d547924b9d680dc6d5cd54a0b53883b96288"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 Review-Url: https://codereview.chromium.org/2556083002 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:140001)
Message was sent while issue was closed.
Description was changed from ========== 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 Review-Url: https://codereview.chromium.org/2556083002 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/8658c9c6854e1a550d2adc155cb17dc8ed39e62c Cr-Commit-Position: refs/heads/master@{#440337} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
