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

Issue 2919543002: [ElementVisibilityObserver] Fix regression with default threshold (Closed)

Created:
3 years, 6 months ago by johnme
Modified:
3 years, 6 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ElementVisibilityObserver] Fix regression with default threshold https://codereview.chromium.org/2830713003 (r468137, 913ee5fe4cfcc42ebc568965169258bc37fb0237) changed the default threshold of ElementVisibilityObserver from std::numeric_limits<float>::min() to zero, assuming that they would behave the same. It turns out that there's some confusion here - see https://github.com/WICG/IntersectionObserver/issues/164 - and for now we should continue to use std::numeric_limits<float>::min() to distinguish between completely hidden and partially visible. BUG=726839 Review-Url: https://codereview.chromium.org/2919543002 Cr-Commit-Position: refs/heads/master@{#476265} Committed: https://chromium.googlesource.com/chromium/src/+/945f4bf50cac68aee482fa5165c3a43379ed2241

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add link #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
johnme
3 years, 6 months ago (2017-05-31 16:55:26 UTC) #2
kinuko
lgtm https://codereview.chromium.org/2919543002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h File third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h (right): https://codereview.chromium.org/2919543002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h#newcode39 third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h:39: void Start(float threshold = std::numeric_limits<float>::min()); nit: Might be ...
3 years, 6 months ago (2017-05-31 23:13:40 UTC) #3
mlamouri (slow - plz ping)
lgtm
3 years, 6 months ago (2017-06-01 08:36:06 UTC) #4
johnme
Addressed comment - thanks! https://codereview.chromium.org/2919543002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h File third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h (right): https://codereview.chromium.org/2919543002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h#newcode39 third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h:39: void Start(float threshold = std::numeric_limits<float>::min()); ...
3 years, 6 months ago (2017-06-01 11:35:22 UTC) #5
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/2919543002/20001
3 years, 6 months ago (2017-06-01 11:35:43 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 13:18:50 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/945f4bf50cac68aee482fa5165c3...

Powered by Google App Engine
This is Rietveld 408576698