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

Issue 2401303002: ElementVisibilityObserver: use ExecutionContext's document. (Closed)

Created:
4 years, 2 months ago by mlamouri (slow - plz ping)
Modified:
4 years, 2 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, estark, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ElementVisibilityObserver: use ExecutionContext's document. The IntersectionObserver code assumes that the document passed as root always has a frame but an Element's owner document might not. Using the ExecutionContext's document in ElementVisibilityObserver solves issues by making the internal API behaviour closer to the external one. BUG=654082 Committed: https://crrev.com/a6916ff2267d97e2e0db212348d4229097d37064 Cr-Commit-Position: refs/heads/master@{#425099}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -7 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp View 1 3 chunks +10 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ElementVisibilityObserverTest.cpp View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
mlamouri (slow - plz ping)
4 years, 2 months ago (2016-10-09 22:06:03 UTC) #2
mlamouri (slow - plz ping)
Review ping. Let me know if you want me to send this to someone else ...
4 years, 2 months ago (2016-10-11 19:51:45 UTC) #8
esprehn
lgtm w/ nits https://codereview.chromium.org/2401303002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp File third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp (right): https://codereview.chromium.org/2401303002/diff/1/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp#newcode16 third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp:16: bool isInRemoteFrame(Document* document) { reference then ...
4 years, 2 months ago (2016-10-11 22:06:45 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/2401303002/20001
4 years, 2 months ago (2016-10-11 23:22:38 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/84636)
4 years, 2 months ago (2016-10-11 23:35:10 UTC) #14
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/2401303002/20001
4 years, 2 months ago (2016-10-13 17:04:59 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 18:33:55 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 18:35:51 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a6916ff2267d97e2e0db212348d4229097d37064
Cr-Commit-Position: refs/heads/master@{#425099}

Powered by Google App Engine
This is Rietveld 408576698