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

Issue 326393003: Oilpan: Change Persistent<> data members to Member<> in HitTestResult. (Closed)

Created:
6 years, 6 months ago by tkent
Modified:
6 years, 5 months ago
CC:
blink-reviews, jamesr, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, blink-reviews-events_chromium.org, dglazkov+blink, jchaffraix+rendering, pdr., rune+blink
Project:
blink
Visibility:
Public.

Description

Oilpan: Change Persistent<> data members to Member<> in HitTestResult. - Disallow new/delete operations for HitTestResult. HitTestResult was used -- with new/delete operators -- as part objects of ContextMenuController and MouseEventWithHitTestResult. -- as stack allocated objects We'd like to avoid to make such classes in Oilpan. So, this CL disallows new/delete, and WebHitTestResult owns another class to hold only required data copied from a HitTestResult. - Move ContextMenuController to Oilpan heap, and trace HitTestResult member. - Mark MouseEventWithHitTestResults STACK_ALLOCATED. - We can't get HitTestResult from a WebHitTestResult. So we need to introduce new function to WebViewImpl for WebSubstringUtil.mm. BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176393

Patch Set 1 #

Total comments: 4

Patch Set 2 : Follow review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -29 lines) Patch
M Source/core/page/ContextMenuController.h View 1 1 chunk +4 lines, -4 lines 1 comment Download
M Source/core/page/ContextMenuController.cpp View 1 1 chunk +7 lines, -2 lines 0 comments Download
M Source/core/page/MouseEventWithHitTestResults.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/Page.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Page.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/HitTestResult.h View 3 chunks +7 lines, -5 lines 1 comment Download
M Source/core/rendering/HitTestResult.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M Source/web/WebHitTestResult.cpp View 1 2 chunks +45 lines, -14 lines 1 comment Download
M Source/web/WebViewImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/mac/WebSubstringUtil.mm View 2 chunks +2 lines, -1 line 0 comments Download
M public/web/WebHitTestResult.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tkent
Please review this.
6 years, 6 months ago (2014-06-17 23:40:15 UTC) #1
haraken
LGTM Does the plugin detect the error if we use "an on-heap object that does ...
6 years, 6 months ago (2014-06-18 01:27:25 UTC) #2
tkent
Thank you for reviewing. > Does the plugin detect the error if we use "an ...
6 years, 6 months ago (2014-06-18 03:10:40 UTC) #3
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-06-18 03:10:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/326393003/20001
6 years, 6 months ago (2014-06-18 03:10:53 UTC) #5
zerny-chromium
On 2014/06/18 03:10:40, tkent wrote: > Thank you for reviewing. > > > Does the ...
6 years, 6 months ago (2014-06-18 05:24:39 UTC) #6
haraken
On 2014/06/18 05:24:39, zerny-chromium wrote: > On 2014/06/18 03:10:40, tkent wrote: > > Thank you ...
6 years, 6 months ago (2014-06-18 05:29:14 UTC) #7
zerny-chromium
On 2014/06/18 05:29:14, haraken wrote: > On 2014/06/18 05:24:39, zerny-chromium wrote: > > On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 05:32:57 UTC) #8
zerny-chromium
lgtm https://codereview.chromium.org/326393003/diff/20001/Source/core/page/ContextMenuController.h File Source/core/page/ContextMenuController.h (right): https://codereview.chromium.org/326393003/diff/20001/Source/core/page/ContextMenuController.h#newcode45 Source/core/page/ContextMenuController.h:45: class ContextMenuController : public NoBaseWillBeGarbageCollectedFinalized<ContextMenuController> { Nit: FINAL ...
6 years, 6 months ago (2014-06-18 05:33:05 UTC) #9
tkent
On 2014/06/18 05:32:57, zerny-chromium wrote: > On 2014/06/18 05:29:14, haraken wrote: > > On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 06:02:44 UTC) #10
commit-bot: I haz the power
Change committed as 176393
6 years, 6 months ago (2014-06-18 06:16:13 UTC) #11
zerny-chromium
On 2014/06/18 06:02:44, tkent wrote: > On 2014/06/18 05:32:57, zerny-chromium wrote: > > On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 06:26:24 UTC) #12
tkent
On 2014/06/18 06:26:24, zerny-chromium wrote: > Yes. The same rule should apply to GC allocated ...
6 years, 6 months ago (2014-06-18 06:36:08 UTC) #13
sof
https://codereview.chromium.org/326393003/diff/20001/Source/web/WebHitTestResult.cpp File Source/web/WebHitTestResult.cpp (right): https://codereview.chromium.org/326393003/diff/20001/Source/web/WebHitTestResult.cpp#newcode44 Source/web/WebHitTestResult.cpp:44: class WebHitTestResultPrivate { I think it would be better ...
6 years, 6 months ago (2014-06-18 06:36:32 UTC) #14
tkent
6 years, 5 months ago (2014-07-23 03:21:13 UTC) #15
Message was sent while issue was closed.
I'll revert this change because this caused a performance regression about
WebHitTestResult creation.

Powered by Google App Engine
This is Rietveld 408576698