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

Issue 541633004: Avoid temporary range allocation in FrameSelection::respondToNodeModification. (Closed)

Created:
6 years, 3 months ago by Mads Ager (chromium)
Modified:
6 years, 3 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, oilpan-reviews
Project:
blink
Visibility:
Public.

Description

Avoid temporary range allocation in FrameSelection::respondToNodeModification. Instead introduce VisibleSelection::intersectsNode(Node*) and static version of Range::intersectsNode. R=yosin@chromium.org BUG=388681 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181464

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -14 lines) Patch
M Source/core/dom/Range.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 2 chunks +50 lines, -4 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 chunk +6 lines, -10 lines 0 comments Download
M Source/core/editing/VisibleSelection.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mads Ager (chromium)
6 years, 3 months ago (2014-09-04 11:55:59 UTC) #1
yosin_UTC9
LGTM Thanks! https://codereview.chromium.org/541633004/diff/1/Source/core/dom/Range.h File Source/core/dom/Range.h (right): https://codereview.chromium.org/541633004/diff/1/Source/core/dom/Range.h#newcode81 Source/core/dom/Range.h:81: static bool intersectsNode(Node* refNode, Position& start, Position& ...
6 years, 3 months ago (2014-09-05 01:07:56 UTC) #2
Mads Ager (chromium)
Thanks! I have a question about Ranges, ShadowRoots and comparisons below. This change keep the ...
6 years, 3 months ago (2014-09-05 08:22:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/541633004/20001
6 years, 3 months ago (2014-09-05 08:25:45 UTC) #5
commit-bot: I haz the power
6 years, 3 months ago (2014-09-05 10:25:43 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 181464

Powered by Google App Engine
This is Rietveld 408576698