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

Issue 2727923002: Make TextControlElement::indexForVisiblePosition() not to use temporary Range (Closed)

Created:
3 years, 9 months ago by yosin_UTC9
Modified:
3 years, 9 months ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make TextControlElement::indexForVisiblePosition() not to use temporary Range This patch makes |TextControlElement::indexForVisiblePosition()| to call |TextIterator::rangeLength()| without using temporary |Range| object to avoid registering temporary |Range| object into register update list to reduce memory usage an relocation cost for improving code halth. BUG=691200 TEST=n/a; no behavior change Review-Url: https://codereview.chromium.org/2727923002 Cr-Commit-Position: refs/heads/master@{#454461} Committed: https://chromium.googlesource.com/chromium/src/+/99ed48423a76851451298d54a5260cc30503fa1d

Patch Set 1 : 2017-03-02T16:16:45 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M third_party/WebKit/Source/core/html/TextControlElement.cpp View 1 chunk +5 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
yosin_UTC9
PTAL
3 years, 9 months ago (2017-03-02 09:05:52 UTC) #6
yoichio
lgtm
3 years, 9 months ago (2017-03-02 09:15:21 UTC) #9
tkent
> This patch makes |TextControlElement::indexForVisiblePosition()| to use > |EphemeralRange| instead of temporary |Range| object to ...
3 years, 9 months ago (2017-03-02 23:00:42 UTC) #10
tkent
> The new code doesn't look to use EphemeralRange. lgtm anyway
3 years, 9 months ago (2017-03-02 23:41:05 UTC) #11
yosin_UTC9
On 2017/03/02 at 23:41:05, tkent wrote: > > The new code doesn't look to use ...
3 years, 9 months ago (2017-03-03 01:10:11 UTC) #13
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/2727923002/1
3 years, 9 months ago (2017-03-03 01:10:49 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 01:52:59 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/99ed48423a76851451298d54a526...

Powered by Google App Engine
This is Rietveld 408576698