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

Issue 2776103002: Make RenderedRectsForMarkers() to ignore disconnected nodes. (Closed)

Created:
3 years, 9 months ago by Hwanseung Lee
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews, Hwanseung Lee(hs1217.lee), zino
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make RenderedRectsForMarkers() to ignore disconnected nodes. This patch changes DocumentMarkerController::RenderedRectsForMarkers() to ignore disconnected nodes. and it is first step to use EphemeralRange in updateMarkerRenderedRect(). we will progress three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. [2/3] In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp" [3/3] Rewrite updateMarkerRenderedRect() to use EphemeralRange instead of Range BUG=691202 Review-Url: https://codereview.chromium.org/2776103002 Cr-Commit-Position: refs/heads/master@{#464368} Committed: https://chromium.googlesource.com/chromium/src/+/d2680c72ae7adfa4a857432179666cb6b03e0781

Patch Set 1 #

Patch Set 2 : [WIP] updateMarkerRenderedRect() should use EphemeralRange #

Patch Set 3 : [WIP] updateMarkerRenderedRect() should use EphemeralRange #

Patch Set 4 : [WIP] updateMarkerRenderedRect() should use EphemeralRange #

Patch Set 5 : [WIP] updateMarkerRenderedRect() should use EphemeralRange #

Patch Set 6 : [WIP] updateMarkerRenderedRect() should use EphemeralRange #

Patch Set 7 : upload test file #

Total comments: 4

Patch Set 8 : move to VisibleUnits #

Total comments: 1

Patch Set 9 : step1 #

Patch Set 10 : test #

Patch Set 11 : change expected image #

Total comments: 6

Patch Set 12 : test #

Total comments: 1

Patch Set 13 : tt #

Total comments: 13

Patch Set 14 : fix #

Patch Set 15 : fix #

Patch Set 16 : check isConnected #

Patch Set 17 : change expected image for mac #

Patch Set 18 : except Range #

Messages

Total messages: 189 (161 generated)
Hwanseung Lee
yosin, xiaochengh, yoichio@ PTAL, thank you.
3 years, 8 months ago (2017-03-29 15:06:34 UTC) #25
Xiaocheng
Thanks for the patch! https://codereview.chromium.org/2776103002/diff/120001/third_party/WebKit/Source/core/editing/EphemeralRange.h File third_party/WebKit/Source/core/editing/EphemeralRange.h (right): https://codereview.chromium.org/2776103002/diff/120001/third_party/WebKit/Source/core/editing/EphemeralRange.h#newcode108 third_party/WebKit/Source/core/editing/EphemeralRange.h:108: void textRects(Vector<IntRect>&, bool useSelectionHeight = ...
3 years, 8 months ago (2017-03-29 19:51:08 UTC) #28
yosin_UTC9
https://codereview.chromium.org/2776103002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2776103002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode218 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:218: marker.setRenderedRect(LayoutRect(boundingBox(EphemeralRange(range)))); Note: Intention of this TODO is using |EphemeralRange| ...
3 years, 8 months ago (2017-03-30 01:23:18 UTC) #34
Hwanseung Lee
On 2017/03/30 01:23:18, yosin_UTC9 wrote: > https://codereview.chromium.org/2776103002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp > (right): > > https://codereview.chromium.org/2776103002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode218 ...
3 years, 8 months ago (2017-03-30 15:32:19 UTC) #43
yoichio
As you probably know that tanvir.rizvi@samsung.com is working around Range::textQuads. textQuads and textRects are very ...
3 years, 8 months ago (2017-03-31 01:56:37 UTC) #44
Hwanseung Lee
On 2017/03/31 01:56:37, yoichio wrote: > As you probably know that mailto:tanvir.rizvi@samsung.com is working around ...
3 years, 8 months ago (2017-04-01 16:57:12 UTC) #63
Hwanseung Lee
yosin@ patchset 10 is passed, except layout_test of mac_chromium_rel_ng. (https://storage.googleapis.com/chromium-layout-test-archives/mac_chromium_rel_ng/420086/layout-test-results/results.html) i investigated this test. i ...
3 years, 8 months ago (2017-04-01 17:22:46 UTC) #65
Hwanseung Lee
On 2017/04/01 17:22:46, Hwanseung Lee wrote: > yosin@ > > patchset 10 is passed, except ...
3 years, 8 months ago (2017-04-01 17:44:39 UTC) #66
Hwanseung Lee
yosin@ gentle ping. PTAL.
3 years, 8 months ago (2017-04-03 13:22:30 UTC) #71
yosin_UTC9
https://codereview.chromium.org/2776103002/diff/260001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2776103002/diff/260001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1471 third_party/WebKit/Source/core/dom/Range.cpp:1471: return rects; nit: s/rects/std::move(rects)/ This is subject to RVO[1]. ...
3 years, 8 months ago (2017-04-04 01:20:39 UTC) #77
Hwanseung Lee
yosin@ PTAL. thank you. https://codereview.chromium.org/2776103002/diff/260001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2776103002/diff/260001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1471 third_party/WebKit/Source/core/dom/Range.cpp:1471: return rects; On 2017/04/04 01:20:39, ...
3 years, 8 months ago (2017-04-05 15:21:31 UTC) #86
yosin_UTC9
https://codereview.chromium.org/2776103002/diff/280001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2776103002/diff/280001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode4052 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:4052: Vector<IntRect> computeTextRects( In this patch, please do this change ...
3 years, 8 months ago (2017-04-06 04:26:05 UTC) #99
Hwanseung Lee
PTAL. thank you.
3 years, 8 months ago (2017-04-07 02:26:18 UTC) #112
yosin_UTC9
Why does this patch changes layout text expectations? Since this patch is re-factoring, we don't ...
3 years, 8 months ago (2017-04-07 04:48:11 UTC) #115
Hwanseung Lee
PTAL. thank you. https://codereview.chromium.org/2776103002/diff/380001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2776103002/diff/380001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1455 third_party/WebKit/Source/core/dom/Range.cpp:1455: template <typename Strategy> On 2017/04/07 04:48:10, ...
3 years, 8 months ago (2017-04-07 17:55:53 UTC) #126
yosin_UTC9
It seems Patch 14 is as same as Patch 13. Could you upload updated patch?
3 years, 8 months ago (2017-04-10 04:25:59 UTC) #127
Hwanseung Lee
On 2017/04/10 04:25:59, yosin_UTC9 wrote: > It seems Patch 14 is as same as Patch ...
3 years, 8 months ago (2017-04-10 04:46:09 UTC) #128
yosin_UTC9
On 2017/04/10 at 04:46:09, hs1217.lee wrote: > On 2017/04/10 04:25:59, yosin_UTC9 wrote: > > It ...
3 years, 8 months ago (2017-04-10 05:00:33 UTC) #129
yoichio
Looks much better. Great. Could you rewrite patch title describing about just step-1?
3 years, 8 months ago (2017-04-13 01:14:17 UTC) #156
yosin_UTC9
Please make this patch contains only Range.cpp and Range.h changes.
3 years, 8 months ago (2017-04-13 05:56:59 UTC) #169
Hwanseung Lee
On 2017/04/13 05:56:59, yosin_UTC9 wrote: > Please make this patch contains only Range.cpp and Range.h ...
3 years, 8 months ago (2017-04-13 06:16:00 UTC) #170
yosin_UTC9
On 2017/04/13 at 06:16:00, hs1217.lee wrote: > On 2017/04/13 05:56:59, yosin_UTC9 wrote: > > Please ...
3 years, 8 months ago (2017-04-13 06:31:34 UTC) #171
Hwanseung Lee
On 2017/04/13 06:31:34, yosin_UTC9 wrote: > On 2017/04/13 at 06:16:00, hs1217.lee wrote: > > On ...
3 years, 8 months ago (2017-04-13 08:05:27 UTC) #177
yosin_UTC9
On 2017/04/13 at 08:05:27, hs1217.lee wrote: > On 2017/04/13 06:31:34, yosin_UTC9 wrote: > > On ...
3 years, 8 months ago (2017-04-13 08:56:55 UTC) #178
Hwanseung Lee
On 2017/04/13 08:56:55, yosin_UTC9 wrote: > On 2017/04/13 at 08:05:27, hs1217.lee wrote: > > On ...
3 years, 8 months ago (2017-04-13 09:13:44 UTC) #183
yosin_UTC9
lgtm Thanks for fixing this!
3 years, 8 months ago (2017-04-13 09:34:22 UTC) #184
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/2776103002/620001
3 years, 8 months ago (2017-04-13 10:21:44 UTC) #186
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 10:27:31 UTC) #189
Message was sent while issue was closed.
Committed patchset #18 (id:620001) as
https://chromium.googlesource.com/chromium/src/+/d2680c72ae7adfa4a85743217966...

Powered by Google App Engine
This is Rietveld 408576698