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

Issue 2059663002: Make RenderedPosition constructor to work on flat tree (Closed)

Created:
4 years, 6 months ago by yosin_UTC9
Modified:
4 years, 6 months ago
Reviewers:
tkent, yoichio
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make flat tree version RenderedPosition constructor to work on flat tree This patch makes flat tree version of |RenderedPosition| constructor to work on flat tree rather than DOM tree to calculate inline box position for flat tree position correctly. Before this patch, flat tree version of |RenderedPosition| constructor uses |toPositionInDOMTree()|, but id doesn't work well for children of shadow root and insertion point, e.g. CONENT elements and SLOT elements. In attached layout test, |RenderedPosition| constructor attempts to compute for CONTENT element in DETAIL element. BUG=616070, 618421 TEST=LayoutTests/editing/selection/select_all/select_all_details_crash.html Committed: https://crrev.com/874ac2203bcbf8d00ccb7c447ad2d307cb3dd7ce Cr-Commit-Position: refs/heads/master@{#399150}

Patch Set 1 : 2016-06-10T15:56:25 #

Patch Set 2 : 2016-06-10T15:59:19 #

Total comments: 2

Patch Set 3 : 2016-06-10T18:14:53 Update for review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/RenderedPosition.cpp View 3 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
yosin_UTC9
PTAL
4 years, 6 months ago (2016-06-10 08:01:25 UTC) #4
tkent
lgtm https://codereview.chromium.org/2059663002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html File third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html (right): https://codereview.chromium.org/2059663002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html#newcode5 third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html:5: <div id="log"> nit: You may want to add ...
4 years, 6 months ago (2016-06-10 08:20:42 UTC) #5
yosin_UTC9
Thanks for reviewing! Committing... https://codereview.chromium.org/2059663002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html File third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html (right): https://codereview.chromium.org/2059663002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html#newcode5 third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_details_crash.html:5: <div id="log"> On 2016/06/10 at ...
4 years, 6 months ago (2016-06-10 09:18:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2059663002/40001
4 years, 6 months ago (2016-06-10 09:18:11 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-10 10:38:56 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 10:40:09 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/874ac2203bcbf8d00ccb7c447ad2d307cb3dd7ce
Cr-Commit-Position: refs/heads/master@{#399150}

Powered by Google App Engine
This is Rietveld 408576698