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 2616103003: Add absoluteSelectionBoundsOf() to GranularityStrategy class (Closed)

Created:
3 years, 11 months ago by joone
Modified:
3 years, 11 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, yoichio
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add absoluteSelectionBoundsOf() to GranularityStrategy class This function is added because the caret rect that will be calculated by using the line top value instead of the selection top in LayoutText::localCaretRect(). This change will be done in https://codereview.chromium.org/2517383002/ BUG=581004 Review-Url: https://codereview.chromium.org/2616103003 Cr-Commit-Position: refs/heads/master@{#442688} Committed: https://chromium.googlesource.com/chromium/src/+/85eb48a8bd8ebac0047002d2e2ba266fc7cdaae5

Patch Set 1 #

Patch Set 2 : update comment #

Total comments: 2

Patch Set 3 : apply early return #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -3 lines) Patch
M third_party/WebKit/Source/core/editing/GranularityStrategy.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 2 chunks +50 lines, -0 lines 1 comment Download

Messages

Total messages: 22 (15 generated)
joone
Hi yosin, could you review this CL? It was separated from https://codereview.chromium.org/2517383002/
3 years, 11 months ago (2017-01-06 19:48:16 UTC) #3
yosin_UTC9
lgtm w/ small nits Sorry for late response. I'm back! https://codereview.chromium.org/2616103003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2616103003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode2572 ...
3 years, 11 months ago (2017-01-10 04:20:01 UTC) #9
joone
Thanks for review! https://codereview.chromium.org/2616103003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2616103003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode2572 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:2572: rect.setHeight(box->root().selectionHeight()); On 2017/01/10 04:20:01, Yosi_UTC9 wrote: ...
3 years, 11 months ago (2017-01-10 18:19:46 UTC) #12
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/2616103003/40001
3 years, 11 months ago (2017-01-10 21:12:04 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/85eb48a8bd8ebac0047002d2e2ba266fc7cdaae5
3 years, 11 months ago (2017-01-10 21:17:04 UTC) #20
yosin_UTC9
It seems to computeInlineBoxPosition() returns null-InlineBox with DIV with collapsed whitespace and pass a position ...
3 years, 11 months ago (2017-01-19 06:28:21 UTC) #21
joone
3 years, 11 months ago (2017-01-20 01:56:57 UTC) #22
Message was sent while issue was closed.
yosin@ I've tested your code. It works fine without crash so I will update the
CL soon

Powered by Google App Engine
This is Rietveld 408576698