|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by yosin_UTC9 Modified:
3 years, 9 months ago CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake 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 #
Messages
Total messages: 18 (11 generated)
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Description was changed from ========== 2017-03-02T16:16:45 2017-03-02T16:16:32 BUG= ========== to ========== 2017-03-02T16:16:45 2017-03-02T16:16:32 BUG=691200 ==========
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 ========== 2017-03-02T16:16:45 2017-03-02T16:16:32 BUG=691200 ========== to ========== Make TextControlElement::indexForVisiblePosition() not to use temporary Range This patch makes |TextControlElement::indexForVisiblePosition()| to use |EphemeralRange| instead of temporary |Range| object to avoid registering temporary |Range| to range update list to reduce memory usage and relocation cost. BUG=691200 TEST=n/a; no behavior change ==========
yosin@chromium.org changed reviewers: + tkent@chromium.org, xiaochengh@chromium.org, yoichio@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
lgtm
> This patch makes |TextControlElement::indexForVisiblePosition()| to use > |EphemeralRange| instead of temporary |Range| object to avoid registering The new code doesn't look to use EphemeralRange.
> The new code doesn't look to use EphemeralRange. lgtm anyway
Description was changed from ========== Make TextControlElement::indexForVisiblePosition() not to use temporary Range This patch makes |TextControlElement::indexForVisiblePosition()| to use |EphemeralRange| instead of temporary |Range| object to avoid registering temporary |Range| to range update list to reduce memory usage and relocation cost. BUG=691200 TEST=n/a; no behavior change ========== to ========== 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 ==========
On 2017/03/02 at 23:41:05, tkent wrote: > > The new code doesn't look to use EphemeralRange. > > lgtm anyway Oops. Update a description.
The CQ bit was checked by yosin@chromium.org
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": 1, "attempt_start_ts": 1488503416158570, "parent_rev":
"9d8c99cfe73e17fccae5512ef7abf38381370a17", "commit_rev":
"99ed48423a76851451298d54a5260cc30503fa1d"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/99ed48423a76851451298d54a526... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/99ed48423a76851451298d54a526... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
