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

Issue 2875933004: Utilize Position::IsEquivalent() in {Up,Down}streamIgnoringEditingBoundaries() (Closed)

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

Description

Utilize Position::IsEquivalent() in {Up,Down}streamIgnoringEditingBoundaries() This patch utilized |Position::IsEquivalent()| in |{Up,Down}streamIgnoringEditingBoundaries()| to avoid infinite loop. In http://crbug.com/716093, |UpstreamIgnoringEditingBoundaries()| causes infinite loop as: - |MostBackwardCaretPosition(AfterChildren/DIV)| After/INPUT - |MostBackwardCaretPosition(After/INPUT)| AfterChildren/DIV for <div contenteditable>foo <input contenteditable="false"></div> When I attempt to change |MostBackwardCaretPosition()| to return one of them, some layout tests failed. Hence, to minimize change, this patch change loop condition. BUG=716093 TEST=run_webkit_unit_tests --gtest_filter=VisibleUnitsTest.ComputeInlineBoxPositionMixedEditabl Review-Url: https://codereview.chromium.org/2875933004 Cr-Commit-Position: refs/heads/master@{#471697} Committed: https://chromium.googlesource.com/chromium/src/+/9634436d854ad5431c48b8d3ddecd46050cbb74a

Patch Set 1 #

Patch Set 2 : 2017-05-12T18:26:21 #

Total comments: 3

Patch Set 3 : 2017-05-15T13:22:30 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp View 1 chunk +15 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (17 generated)
yosin_UTC9
PTAL This patch is a preparation of fixing Release-Blocker bug.
3 years, 7 months ago (2017-05-12 09:23:32 UTC) #7
yosin_UTC9
On 2017/05/12 at 09:23:32, yosin_UTC9 wrote: > PTAL > > This patch is a preparation ...
3 years, 7 months ago (2017-05-12 09:24:20 UTC) #8
Xiaocheng
Code change itself looks fine. I'm wondering why contenteditable on <input> is not ignored. https://codereview.chromium.org/2875933004/diff/20001/third_party/WebKit/Source/core/editing/Position.cpp ...
3 years, 7 months ago (2017-05-12 18:00:05 UTC) #13
yoichio
nlgtm https://codereview.chromium.org/2875933004/diff/20001/third_party/WebKit/Source/core/editing/Position.cpp File third_party/WebKit/Source/core/editing/Position.cpp (right): https://codereview.chromium.org/2875933004/diff/20001/third_party/WebKit/Source/core/editing/Position.cpp#newcode358 third_party/WebKit/Source/core/editing/Position.cpp:358: if (IsNull()) I oppose this change from the ...
3 years, 7 months ago (2017-05-15 01:41:53 UTC) #14
yosin_UTC9
PTAL rebased. https://codereview.chromium.org/2875933004/diff/20001/third_party/WebKit/Source/core/editing/Position.cpp File third_party/WebKit/Source/core/editing/Position.cpp (right): https://codereview.chromium.org/2875933004/diff/20001/third_party/WebKit/Source/core/editing/Position.cpp#newcode358 third_party/WebKit/Source/core/editing/Position.cpp:358: if (IsNull()) On 2017/05/12 at 18:00:05, Xiaocheng ...
3 years, 7 months ago (2017-05-15 05:12:57 UTC) #17
yoichio
3 years, 7 months ago (2017-05-15 06:32:29 UTC) #18
yoichio
lgtm
3 years, 7 months ago (2017-05-15 06:32:35 UTC) #19
yosin_UTC9
On 2017/05/12 at 18:00:05, xiaochengh wrote: > Code change itself looks fine. > > I'm ...
3 years, 7 months ago (2017-05-15 06:40:49 UTC) #20
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/2875933004/40001
3 years, 7 months ago (2017-05-15 08:22:46 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 08:28:39 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9634436d854ad5431c48b8d3ddec...

Powered by Google App Engine
This is Rietveld 408576698