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

Issue 1528613006: Oilpan: make ScrollableAreaTest.ScrollbarTrackAndThumbRepaint work. (Closed)

Created:
5 years ago by sof
Modified:
5 years ago
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

Oilpan: make ScrollableAreaTest.ScrollbarTrackAndThumbRepaint work. Scrollbars assume that their associated theme objects live longer, unregistering themselves upon finalization. Make it clear that this lifetime assumption must also hold for Scrollbars created by the test-only constructor Scrollbar::createForTesting() + alter ScrollableAreaTest.ScrollbarTrackAndThumbRepaint so that the scrollbars it creates are finalized before the mock theme object is. With Oilpan, explicit flushing out of garbage is needed. R=haraken BUG=549277 Committed: https://crrev.com/49c0e168ac8e30ea0d491481b30d37932a79c723 Cr-Commit-Position: refs/heads/master@{#365517}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 chunk +3 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
sof
please take a look.
5 years ago (2015-12-16 08:33:27 UTC) #2
haraken
LGTM
5 years ago (2015-12-16 08:34:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1528613006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1528613006/1
5 years ago (2015-12-16 08:37:32 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-16 11:40:53 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/49c0e168ac8e30ea0d491481b30d37932a79c723 Cr-Commit-Position: refs/heads/master@{#365517}
5 years ago (2015-12-16 11:41:46 UTC) #10
jbroman
https://codereview.chromium.org/1528613006/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp File third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp (right): https://codereview.chromium.org/1528613006/diff/1/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp#newcode181 third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp:181: Heap::collectAllGarbage(); The object in question still has a RawPtr<Scrollbar> ...
5 years ago (2015-12-16 12:18:12 UTC) #12
sof
5 years ago (2015-12-16 12:20:38 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1528613006/diff/1/third_party/WebKit/Source/p...
File third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp (right):

https://codereview.chromium.org/1528613006/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp:181:
Heap::collectAllGarbage();
On 2015/12/16 12:18:12, jbroman wrote:
> The object in question still has a RawPtr<Scrollbar> in scope; is this
> guaranteed to work?

The GCs performed by this are precise (non-conservative), so none of the objects
created in this test will be reachable. => they'll be swept out, as wanted.

Powered by Google App Engine
This is Rietveld 408576698