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

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

Created:
6 years, 5 months ago by tkent
Modified:
6 years, 4 months ago
CC:
abarth-chromium, blink-reviews, blink-reviews-rendering, dglazkov+blink, eae+blinkwatch, jamesr, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
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. Difference from r176393: Always calling HitTestResult member functions was bad. Some of them are expensive. So WebHitTestResultPrivate contains a HitTestResult copy, and WebHitTestResultPrivate is RefCountedWillBeGarbageCollectedFinalized in order to trace HitTestResult. BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178997

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -30 lines) Patch
M Source/core/page/ContextMenuController.h View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/page/ContextMenuController.cpp View 1 chunk +7 lines, -2 lines 0 comments Download
M Source/core/page/Page.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Page.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/HitTestResult.h View 3 chunks +7 lines, -5 lines 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M Source/web/WebHitTestResult.cpp View 2 chunks +47 lines, -15 lines 0 comments 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 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tkent
Please review this again. Only WebHitTestResult.{h,cpp} have differences from the previous one <https://codereview.chromium.org/326393003/>.
6 years, 5 months ago (2014-07-24 06:58:51 UTC) #1
haraken
LGTM
6 years, 5 months ago (2014-07-24 07:13:47 UTC) #2
sof
lgtm, this looks simpler&better than the previous approach. https://codereview.chromium.org/413903004/diff/1/Source/web/WebHitTestResult.cpp File Source/web/WebHitTestResult.cpp (right): https://codereview.chromium.org/413903004/diff/1/Source/web/WebHitTestResult.cpp#newcode40 Source/web/WebHitTestResult.cpp:40: using ...
6 years, 5 months ago (2014-07-24 07:18:14 UTC) #3
tkent
+aelias@
6 years, 5 months ago (2014-07-25 01:27:35 UTC) #4
aelias_OOO_until_Jul13
lgtm. I cherry-picked locally and verified the perf regression didn't return.
6 years, 5 months ago (2014-07-25 19:08:42 UTC) #5
tkent
On 2014/07/25 19:08:42, aelias wrote: > lgtm. I cherry-picked locally and verified the perf regression ...
6 years, 4 months ago (2014-07-28 00:28:47 UTC) #6
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 4 months ago (2014-07-28 00:28:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/413903004/1
6 years, 4 months ago (2014-07-28 00:30:01 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-28 00:30:18 UTC) #9
commit-bot: I haz the power
Failed to apply patch for Source/core/page/Page.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 4 months ago (2014-07-28 00:30:19 UTC) #10
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 4 months ago (2014-07-28 01:00:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/413903004/20001
6 years, 4 months ago (2014-07-28 01:01:35 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 02:05:09 UTC) #13
Message was sent while issue was closed.
Change committed as 178997

Powered by Google App Engine
This is Rietveld 408576698