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

Issue 1363833002: Drop unnecessary ancestor traversal in Range::selectNode() (Closed)

Created:
5 years, 3 months ago by pals
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop unnecessary ancestor traversal in Range::selectNode(). It traversed the ancestors to throw a INVALID_NODE_TYPE_ERR if one of them was a DocumentType Node. However, it is impossible for a DocumentType Node to have children. Picked from webkit https://trac.webkit.org/changeset/190145 No new tests, covered by existing tests. BUG=None Committed: https://crrev.com/33c1357fd8454b712f316958555df0de7f24476b Cr-Commit-Position: refs/heads/master@{#351046}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed the comment #

Patch Set 3 : rebased wrt chromium repo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -20 lines) Patch
M third_party/WebKit/Source/core/dom/Range.cpp View 1 2 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
pals
PTAL. Thanks
5 years, 3 months ago (2015-09-23 07:01:20 UTC) #3
sof
https://codereview.chromium.org/1363833002/diff/1/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/1363833002/diff/1/Source/core/dom/Range.cpp#newcode1083 Source/core/dom/Range.cpp:1083: // INVALID_NODE_TYPE_ERR: Raised if refNode is a Document, DocumentFragment ...
5 years, 3 months ago (2015-09-23 10:01:39 UTC) #5
pals
Removed the comment. Please review. https://codereview.chromium.org/1363833002/diff/1/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/1363833002/diff/1/Source/core/dom/Range.cpp#newcode1083 Source/core/dom/Range.cpp:1083: // INVALID_NODE_TYPE_ERR: Raised if ...
5 years, 3 months ago (2015-09-23 11:34:35 UTC) #6
sof
lgtm
5 years, 3 months ago (2015-09-23 11:39:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363833002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363833002/20001
5 years, 3 months ago (2015-09-23 12:01:22 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/100821) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-23 12:08:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363833002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363833002/20001
5 years, 3 months ago (2015-09-23 13:22:46 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/102861)
5 years, 3 months ago (2015-09-23 13:27:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363833002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363833002/20001
5 years, 2 months ago (2015-09-28 04:18:09 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/59145) linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-09-28 04:18:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363833002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363833002/40001
5 years, 2 months ago (2015-09-28 06:27:03 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-28 09:43:40 UTC) #23
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 09:44:24 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/33c1357fd8454b712f316958555df0de7f24476b
Cr-Commit-Position: refs/heads/master@{#351046}

Powered by Google App Engine
This is Rietveld 408576698