|
|
Created:
3 years, 8 months ago by Hwanseung Lee Modified:
3 years, 8 months ago CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, zino, rwlbuis, sof Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionIn-place change of Range::textRects() and boundingBox() to EphemeralRange.
In-place change of Range::textRects() and boundingBox()
to EphemeralRange version in "Range.cpp".
this patch is second step to use EphemeralRange in
updateMarkerRenderedRect().
we are progressing three steps.
[1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes.
(https://codereview.chromium.org/2776103002/)
[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/2810313003
Cr-Commit-Position: refs/heads/master@{#464909}
Committed: https://chromium.googlesource.com/chromium/src/+/c82bb4760bc368ce89d3e30abe617f995fe7c6b5
Patch Set 1 #
Total comments: 13
Patch Set 2 : fix #
Messages
Total messages: 31 (24 generated)
The CQ bit was checked by hs1217.lee@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== In-place change of Range::testRects() and boundingBox() to EphemeralRange. this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing 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 ========== to ========== In-place change of Range::testRects() and boundingBox() to EphemeralRange. this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing 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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== In-place change of Range::testRects() and boundingBox() to EphemeralRange. this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing 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 ========== to ========== In-place change of Range::testRects() and boundingBox() to EphemeralRange. In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp". this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. (https://codereview.chromium.org/2776103002/) [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 ==========
hs1217.lee@samsung.com changed reviewers: + yosin@chromium.org
PTAL, thank you.
Good shape! Please see nits. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/Range.cpp (left): https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1462: void Range::TextRects(Vector<IntRect>& rects, bool use_selection_height) const { Note: |use_selection_height| is default to false and all call sites, actually one, pass |false| as default. So, we don't need to have it. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1459: const Vector<IntRect> rects = computeTextRects(EphemeralRange(this)); nit: s/Vector<IntRect>/Vector<IntRect>&/ https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1468: Node* start_container = start_position.ComputeContainerNode(); nit: s/Node*/Node* const/ https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1470: Node* end_container = end_position.ComputeContainerNode(); nit: s/Node*/Node* const/ https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1474: for (Node& node : range.Nodes()) { nit: s/Node&/const Node&/ It is nice to use range-for instead of using |stop_node| and |NodeTraversal::Next()|. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1475: LayoutObject* layoutObject = node.GetLayoutObject(); nit: s/LayoutObject*/LayoutObject* const/ https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1484: layout_text->AbsoluteRectsForRange(rects, start_offset, end_offset); Note: |LayoutText::AbsoulteRectsForRange()| takes |use_selection_height| as default parameter to |false|, so, we don't need to pass it.
Description was changed from ========== In-place change of Range::testRects() and boundingBox() to EphemeralRange. In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp". this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. (https://codereview.chromium.org/2776103002/) [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 ========== to ========== In-place change of Range::textRects() and boundingBox() to EphemeralRange. In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp". this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. (https://codereview.chromium.org/2776103002/) [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 ==========
The CQ bit was checked by hs1217.lee@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by hs1217.lee@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #2 (id:40001) has been deleted
The CQ bit was checked by hs1217.lee@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
@yosin PTAL. thank you. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/Range.cpp (left): https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1462: void Range::TextRects(Vector<IntRect>& rects, bool use_selection_height) const { On 2017/04/14 01:08:51, yosin_UTC9 wrote: > Note: |use_selection_height| is default to false and all call sites, actually > one, pass |false| as default. > So, we don't need to have it. right. this line was removed. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1459: const Vector<IntRect> rects = computeTextRects(EphemeralRange(this)); On 2017/04/14 01:08:50, yosin_UTC9 wrote: > nit: s/Vector<IntRect>/Vector<IntRect>&/ Done. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1468: Node* start_container = start_position.ComputeContainerNode(); On 2017/04/14 01:08:51, yosin_UTC9 wrote: > nit: s/Node*/Node* const/ Done. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1470: Node* end_container = end_position.ComputeContainerNode(); On 2017/04/14 01:08:51, yosin_UTC9 wrote: > nit: s/Node*/Node* const/ Done. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1474: for (Node& node : range.Nodes()) { On 2017/04/14 01:08:51, yosin_UTC9 wrote: > nit: s/Node&/const Node&/ > > It is nice to use range-for instead of using |stop_node| and > |NodeTraversal::Next()|. Done. https://codereview.chromium.org/2810313003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/dom/Range.cpp:1475: LayoutObject* layoutObject = node.GetLayoutObject(); On 2017/04/14 01:08:51, yosin_UTC9 wrote: > nit: s/LayoutObject*/LayoutObject* const/ Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yosin@chromium.org changed reviewers: + tkent@chromium.org
lgtm +tkent@ for OWNERS review.
lgtm
The CQ bit was checked by hs1217.lee@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1492413778861070, "parent_rev": "73e6a569acfd3b3b5ecc4f0ec2c0945740e9cd2c", "commit_rev": "c82bb4760bc368ce89d3e30abe617f995fe7c6b5"}
Message was sent while issue was closed.
Description was changed from ========== In-place change of Range::textRects() and boundingBox() to EphemeralRange. In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp". this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. (https://codereview.chromium.org/2776103002/) [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 ========== to ========== In-place change of Range::textRects() and boundingBox() to EphemeralRange. In-place change of Range::textRects() and boundingBox() to EphemeralRange version in "Range.cpp". this patch is second step to use EphemeralRange in updateMarkerRenderedRect(). we are progressing three steps. [1/3] Make RenderedRectsForMarkers() to ignore disconnected nodes. (https://codereview.chromium.org/2776103002/) [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/2810313003 Cr-Commit-Position: refs/heads/master@{#464909} Committed: https://chromium.googlesource.com/chromium/src/+/c82bb4760bc368ce89d3e30abe61... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as https://chromium.googlesource.com/chromium/src/+/c82bb4760bc368ce89d3e30abe61... |