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

Issue 1988633002: Schedule a frame from IntersectionObserver::observe. (Closed)

Created:
4 years, 7 months ago by szager1
Modified:
4 years, 7 months ago
Reviewers:
esprehn, eae, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, philipwalton_google.com, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Schedule a frame from IntersectionObserver::observe. If the target is intersecting the root when observe() is called, a notification should be queued up immediately, but if no frame is scheduled, then the intersection algorithm will not run. BUG=612323 R=ojan@chromium.org,eae@chromium.org Committed: https://crrev.com/9d6cc87951566e8fc9be1a04fefb2054f870ab1e Cr-Commit-Position: refs/heads/master@{#395460}

Patch Set 1 #

Patch Set 2 : Check for non-null rootFrame #

Patch Set 3 : test #

Total comments: 8

Patch Set 4 : nits #

Patch Set 5 : test fixes #

Total comments: 2

Patch Set 6 : Oilpan doesn't like stack-allocated callback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/IntersectionObserver.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 2 chunks +5 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
szager1
4 years, 7 months ago (2016-05-17 08:59:48 UTC) #2
eae
Burning the midnight oil I see, don't work too hard! LGTM
4 years, 7 months ago (2016-05-17 14:47:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988633002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988633002/1
4 years, 7 months ago (2016-05-17 14:47:56 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/228974)
4 years, 7 months ago (2016-05-17 16:11:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988633002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988633002/20001
4 years, 7 months ago (2016-05-17 19:06:45 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/223450)
4 years, 7 months ago (2016-05-18 01:00:37 UTC) #12
ojan
Test?
4 years, 7 months ago (2016-05-18 21:27:26 UTC) #13
szager1
On 2016/05/18 21:27:26, ojan wrote: > Test? Added IntersectionObserverTest.cpp. +esprehn for Source/web/OWNERS
4 years, 7 months ago (2016-05-19 22:50:36 UTC) #17
esprehn
https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp File third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp (right): https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp#newcode17 third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp:17: using testing::_; I don't think you use this? https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp#newcode57 ...
4 years, 7 months ago (2016-05-19 22:55:59 UTC) #18
szager1
https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp File third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp (right): https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp#newcode17 third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp:17: using testing::_; On 2016/05/19 22:55:59, esprehn wrote: > I ...
4 years, 7 months ago (2016-05-19 23:58:40 UTC) #19
esprehn
https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp File third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp (right): https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp#newcode58 third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp:58: testing::runPendingTasks(); On 2016/05/19 at 23:58:40, szager1 wrote: > On ...
4 years, 7 months ago (2016-05-20 00:38:34 UTC) #20
szager1
https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp File third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp (right): https://codereview.chromium.org/1988633002/diff/40001/third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp#newcode58 third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp:58: testing::runPendingTasks(); On 2016/05/20 00:38:34, esprehn wrote: > On 2016/05/19 ...
4 years, 7 months ago (2016-05-20 17:22:39 UTC) #21
esprehn
lgtm https://codereview.chromium.org/1988633002/diff/80001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp File third_party/WebKit/Source/core/dom/IntersectionObserver.cpp (right): https://codereview.chromium.org/1988633002/diff/80001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp#newcode190 third_party/WebKit/Source/core/dom/IntersectionObserver.cpp:190: rootFrameView->scheduleAnimation(); I think this is probably broken for ...
4 years, 7 months ago (2016-05-20 22:40:52 UTC) #22
szager1
https://codereview.chromium.org/1988633002/diff/80001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp File third_party/WebKit/Source/core/dom/IntersectionObserver.cpp (right): https://codereview.chromium.org/1988633002/diff/80001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp#newcode190 third_party/WebKit/Source/core/dom/IntersectionObserver.cpp:190: rootFrameView->scheduleAnimation(); On 2016/05/20 22:40:52, esprehn wrote: > I think ...
4 years, 7 months ago (2016-05-20 22:42:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988633002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988633002/80001
4 years, 7 months ago (2016-05-20 22:42:55 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/165572)
4 years, 7 months ago (2016-05-21 00:13:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988633002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988633002/100001
4 years, 7 months ago (2016-05-23 21:30:01 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-23 23:26:02 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 23:32:40 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9d6cc87951566e8fc9be1a04fefb2054f870ab1e
Cr-Commit-Position: refs/heads/master@{#395460}

Powered by Google App Engine
This is Rietveld 408576698