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

Issue 2034753003: Make updateMarkerRenderedRect() to dispose temporary Range object after use (Closed)

Created:
4 years, 6 months ago by yosin_UTC9
Modified:
4 years, 6 months ago
Reviewers:
haraken, keishi, yoichio
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make updateMarkerRenderedRect() to dispose temporary Range object after use This patch makes |updateMarkerRenderedRect()| in |DocumentMarkerController| to dispose temporary |Range| object after use to prevent increasing number of active |Range| object for avoiding slow down of DOM mutation operations. Note: This patch is a temporary solution, we'll have |EphemeralRange| version later. BUG=613658 TEST=n/a; This is temporary solution, we'll have another solution later. Committed: https://crrev.com/544e48708ee9286a58dfa24e0f29e30cece34f3c Cr-Commit-Position: refs/heads/master@{#397626}

Patch Set 1 : 2016-06-03T11:02:34 #

Total comments: 2

Patch Set 2 : 2016-06-03T11:12:32 #

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

Messages

Total messages: 11 (4 generated)
yoichio
https://codereview.chromium.org/2034753003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2034753003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode198 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:198: if (exceptionState.hadException()) You should add range->dispose() in this line ...
4 years, 6 months ago (2016-06-03 02:10:08 UTC) #3
yosin_UTC9
PTAL Add another Range::dispose() https://codereview.chromium.org/2034753003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2034753003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode198 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:198: if (exceptionState.hadException()) On 2016/06/03 at ...
4 years, 6 months ago (2016-06-03 02:13:49 UTC) #4
yoichio
lgtm
4 years, 6 months ago (2016-06-03 02:15:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2034753003/20001
4 years, 6 months ago (2016-06-03 02:16:44 UTC) #7
haraken
LGTM, thanks for the great fix!!
4 years, 6 months ago (2016-06-03 02:35:19 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-03 04:20:41 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 04:23:26 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/544e48708ee9286a58dfa24e0f29e30cece34f3c
Cr-Commit-Position: refs/heads/master@{#397626}

Powered by Google App Engine
This is Rietveld 408576698