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

Issue 2683233005: Set caret width based on device scale factor (Closed)

Created:
3 years, 10 months ago by malaykeshav
Modified:
3 years, 10 months ago
Reviewers:
oshima, Xianzhu
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set caret width based on device scale factor Moves caretWidth() function from LayoutObject to FrameView and computes the width according to the device scale factor. COMPONENT=LayoutObject, FrameView, Caret BUG=655410 Review-Url: https://codereview.chromium.org/2683233005 Cr-Commit-Position: refs/heads/master@{#450160} Committed: https://chromium.googlesource.com/chromium/src/+/3353063df1bbda55628a8c1e0a0d1f1289d80b78

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix compile error #

Total comments: 3

Patch Set 3 : Set caret width based on device scale factor #

Patch Set 4 : Merge with ToT #

Patch Set 5 : Sync with ToT again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -23 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 69 (53 generated)
malaykeshav
PTAL
3 years, 10 months ago (2017-02-10 00:50:20 UTC) #10
oshima
alternatively, you can add FrameView::getCaretWidth(). I'll leave it to owner's review. https://codereview.chromium.org/2683233005/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): ...
3 years, 10 months ago (2017-02-10 19:55:16 UTC) #15
malaykeshav
Resolved comments https://codereview.chromium.org/2683233005/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2683233005/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode4548 third_party/WebKit/Source/core/layout/LayoutBox.cpp:4548: LayoutSize(caretWidth(frameView()->getHostWindow()), size().height())); On 2017/02/10 at 19:55:16, oshima ...
3 years, 10 months ago (2017-02-10 21:00:55 UTC) #16
oshima
lgtm with one q. There's no layout test with caret?
3 years, 10 months ago (2017-02-10 21:09:34 UTC) #19
malaykeshav
On 2017/02/10 at 21:09:34, oshima wrote: > lgtm with one q. > > There's no ...
3 years, 10 months ago (2017-02-10 21:50:36 UTC) #23
malaykeshav
PTAL
3 years, 10 months ago (2017-02-10 22:40:00 UTC) #26
Xianzhu
https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode104 third_party/WebKit/Source/core/layout/LayoutObject.cpp:104: static LayoutUnit gCaretWidth(host->windowToViewportScalar(1)); Does host->windowToViewportScalar(1) always return the same ...
3 years, 10 months ago (2017-02-10 22:53:55 UTC) #27
oshima
https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode104 third_party/WebKit/Source/core/layout/LayoutObject.cpp:104: static LayoutUnit gCaretWidth(host->windowToViewportScalar(1)); On 2017/02/10 22:53:55, Xianzhu wrote: > ...
3 years, 10 months ago (2017-02-10 22:57:23 UTC) #28
Xianzhu
https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2683233005/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode104 third_party/WebKit/Source/core/layout/LayoutObject.cpp:104: static LayoutUnit gCaretWidth(host->windowToViewportScalar(1)); On 2017/02/10 22:57:23, oshima wrote: > ...
3 years, 10 months ago (2017-02-10 23:04:13 UTC) #30
malaykeshav
PTAL
3 years, 10 months ago (2017-02-13 21:11:04 UTC) #51
Xianzhu
lgtm
3 years, 10 months ago (2017-02-13 21:36:01 UTC) #53
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/2683233005/140001
3 years, 10 months ago (2017-02-13 21:37:02 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/363169)
3 years, 10 months ago (2017-02-13 21:47:06 UTC) #57
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/2683233005/140001
3 years, 10 months ago (2017-02-13 21:48:17 UTC) #59
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/2683233005/160001
3 years, 10 months ago (2017-02-13 23:51:47 UTC) #66
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 00:00:00 UTC) #69
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3353063df1bbda55628a8c1e0a0d...

Powered by Google App Engine
This is Rietveld 408576698