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

Issue 2645283008: IntersectionObserver: Always send an initial notification. (Closed)

Created:
3 years, 10 months ago by szager1
Modified:
3 years, 10 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, Sami
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IntersectionObserver: Always send an initial notification. Generate a notification for the initial state of a target, even if it's offscreen. This implements a change to the spec: https://github.com/WICG/IntersectionObserver/issues/165 R=ojan@chromium.org,esprehn@chromium.org BUG= Review-Url: https://codereview.chromium.org/2645283008 Cr-Commit-Position: refs/heads/master@{#447299} Committed: https://chromium.googlesource.com/chromium/src/+/c9092d27fc367898890811f6bb75893bc2200755

Patch Set 1 #

Total comments: 4

Patch Set 2 : Get rid of initialState #

Patch Set 3 : nit #

Patch Set 4 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -116 lines) Patch
M third_party/WebKit/LayoutTests/intersection-observer/edge-inclusive-intersection.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/iframe-no-root.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/multiple-targets.html View 1 chunk +14 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/multiple-thresholds.html View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/remove-element.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html View 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/root-margin.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/same-document-root.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/same-document-zero-size-target.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/timestamp.html View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/unclipped-root.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.cpp View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.h View 1 3 chunks +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 3 chunks +1 line, -12 lines 0 comments Download
M third_party/WebKit/Source/web/tests/IntersectionObserverTest.cpp View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
szager1
3 years, 10 months ago (2017-01-26 01:20:24 UTC) #1
ojan
https://codereview.chromium.org/2645283008/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2645283008/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode26 third_party/WebKit/Source/core/dom/IntersectionObservation.h:26: void setLastThresholdIndex(int index) { m_lastThresholdIndex = index; } I ...
3 years, 10 months ago (2017-01-26 01:44:56 UTC) #2
szager1
https://codereview.chromium.org/2645283008/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2645283008/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode26 third_party/WebKit/Source/core/dom/IntersectionObservation.h:26: void setLastThresholdIndex(int index) { m_lastThresholdIndex = index; } On ...
3 years, 10 months ago (2017-01-30 19:37:41 UTC) #3
szager1
PTAL; latest patch gets rid of the initialState machinery, which was added to implement the ...
3 years, 10 months ago (2017-01-30 20:02:46 UTC) #4
szager1
3 years, 10 months ago (2017-01-30 20:03:14 UTC) #6
ojan
Initializing to kMaxThresholdIndex-1 and then not needing the extra logic in computeIntersectionObservations seems cleaner to ...
3 years, 10 months ago (2017-01-31 05:36:48 UTC) #8
szager1
On 2017/01/31 05:36:48, ojan wrote: > Initializing to kMaxThresholdIndex-1 and then not needing the extra ...
3 years, 10 months ago (2017-01-31 15:15:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645283008/40001
3 years, 10 months ago (2017-01-31 15:27:01 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/381124)
3 years, 10 months ago (2017-01-31 16:48:14 UTC) #14
esprehn
Real failure of IntersectionObserverTest.ResumePostsTask
3 years, 10 months ago (2017-01-31 16:54:14 UTC) #15
szager1
On 2017/01/31 16:54:14, esprehn wrote: > Real failure of IntersectionObserverTest.ResumePostsTask Whoops! I forget that IntersectionObserver ...
3 years, 10 months ago (2017-01-31 17:02:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645283008/60001
3 years, 10 months ago (2017-01-31 17:03:05 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 19:38:37 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c9092d27fc367898890811f6bb75...

Powered by Google App Engine
This is Rietveld 408576698