|
|
Created:
3 years, 10 months ago by malaykeshav Modified:
3 years, 10 months ago CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionResizes corner rect to match device scale factor
Corner rect resizer for scrollable area now considers device scale
factor when computing its bounds.
BUG=692238
COMPONENT=ScrollableAreaPainter, Corner Resizer
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2698543002
Cr-Commit-Position: refs/heads/master@{#451844}
Committed: https://chromium.googlesource.com/chromium/src/+/c7657d65b7ca9a5623883676a8b641cf509847d9
Patch Set 1 #Patch Set 2 : Resizes corner rect to match device scale factor #Patch Set 3 : Resizes corner rect to match device scale factor #Patch Set 4 : Resizes corner rect to match device scale factor #
Total comments: 1
Patch Set 5 : Resizes corner rect to match device scale factor #Patch Set 6 : Sync with ToT #
Total comments: 1
Patch Set 7 : Resizes corner rect to match device scale factor #Messages
Total messages: 63 (45 generated)
Description was changed from ========== Resizes corner rect to match device scale factor Crner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer ========== to ========== Resizes corner rect to match device scale factor Crner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
The CQ bit was checked by malaykeshav@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...
malaykeshav@chromium.org changed reviewers: + oshima@chromium.org
PTAL
The CQ bit was checked by malaykeshav@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...
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by malaykeshav@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...
Patchset #2 (id:40001) has been deleted
Patchset #2 (id:60001) has been deleted
The CQ bit was checked by malaykeshav@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: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by malaykeshav@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 checked by malaykeshav@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.
All test cases pass. PTAL
https://codereview.chromium.org/2698543002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp (right): https://codereview.chromium.org/2698543002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp:88: 1.f / blink::deviceScaleFactor(getScrollableArea().box().frame())); blink::deviceScaleFactor may return 2> on Android. I'm not so sure if this is used on Android, but you probably want to do the same as before (just check if it's 2> then scale 0.5f.
The CQ bit was checked by malaykeshav@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: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by malaykeshav@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...
PTAL
On 2017/02/15 at 22:22:16, oshima wrote: > https://codereview.chromium.org/2698543002/diff/120001/third_party/WebKit/Sou... > File third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp (right): > > https://codereview.chromium.org/2698543002/diff/120001/third_party/WebKit/Sou... > third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp:88: 1.f / blink::deviceScaleFactor(getScrollableArea().box().frame())); > blink::deviceScaleFactor may return 2> on Android. I'm not so sure if this is used on Android, but you probably want to do the same as before (just check if it's 2> then scale 0.5f. Done
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
lgtm with a nit https://codereview.chromium.org/2698543002/diff/160001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp (right): https://codereview.chromium.org/2698543002/diff/160001/third_party/WebKit/Sou... third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp:87: if (blink::deviceScaleFactor(getScrollableArea().box().frame()) >= 2) nit: cache this value first, like float oldBlinkDeviceScaleFactor = . then use it both above and here.
The CQ bit was checked by malaykeshav@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...
malaykeshav@chromium.org changed reviewers: + wangxianzhu@chromium.org
+wangxianzhu@ PTAL
On 2017/02/17 18:39:10, malaykeshav wrote: > +wangxianzhu@ > PTAL rs lgtm.
Description was changed from ========== Resizes corner rect to match device scale factor Crner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Resizes corner rect to match device scale factor Corner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
I think I need to learn basics about device scale factor handling in blink. Can you give me some links? (Based on my old experience on Android, device scale factors were all handled outside of blink and it worked well.)
On 2017/02/17 at 18:45:22, wangxianzhu wrote: > I think I need to learn basics about device scale factor handling in blink. Can you give me some links? > > (Based on my old experience on Android, device scale factors were all handled outside of blink and it worked well.) Yes, but I think it changed when we started using zoom for DSF. (Still not enabled in Android as of now) This document has a basic overview: https://docs.google.com/document/d/1CZSCPzOYujdUMyChocwzOBPKxYAoTsEoezMye30Hdcs
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by malaykeshav@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from oshima@chromium.org Link to the patchset: https://codereview.chromium.org/2698543002/#ps180001 (title: "Resizes corner rect to match device scale factor")
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
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by wangxianzhu@chromium.org
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
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by malaykeshav@chromium.org
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
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by malaykeshav@chromium.org
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": 180001, "attempt_start_ts": 1487714125446350, "parent_rev": "e2221203908694ce026c037e9d084485a1f92c81", "commit_rev": "c7657d65b7ca9a5623883676a8b641cf509847d9"}
Message was sent while issue was closed.
Description was changed from ========== Resizes corner rect to match device scale factor Corner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Resizes corner rect to match device scale factor Corner rect resizer for scrollable area now considers device scale factor when computing its bounds. BUG=692238 COMPONENT=ScrollableAreaPainter, Corner Resizer CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2698543002 Cr-Commit-Position: refs/heads/master@{#451844} Committed: https://chromium.googlesource.com/chromium/src/+/c7657d65b7ca9a5623883676a8b6... ==========
Message was sent while issue was closed.
Committed patchset #7 (id:180001) as https://chromium.googlesource.com/chromium/src/+/c7657d65b7ca9a5623883676a8b6... |