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

Issue 2610963003: Get rid of obsolete FrameView::m_shouldUpdateViewportIntersection. (Closed)

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

Description

Get rid of obsolete FrameView::m_shouldUpdateViewportIntersection. This was originally intended as an optimization, but now that all intersection tracking happens through IntersectionObserver, and all active observers must run on each frame, it makes no sense to short-circuit the recursion in updateViewportIntersectionsForSubtree. This also allows us to remove IntersectionObserver::trackingDocument, which was a wart introduced to fix a bug where observers defined in subframes were not generating IntersectionObserver notifications, as discussed here: https://codereview.chromium.org/2553343004 BUG=677620 R=skyostil@chromium.org Review-Url: https://codereview.chromium.org/2610963003 Cr-Commit-Position: refs/heads/master@{#441811} Committed: https://chromium.googlesource.com/chromium/src/+/33233d198c4f17bc6016bb2f9f59e64232c7f541

Patch Set 1 #

Patch Set 2 : Added test #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -24 lines) Patch
A third_party/WebKit/LayoutTests/intersection-observer/tracking-document.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 chunk +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 5 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
szager1
3 years, 11 months ago (2017-01-04 22:38:42 UTC) #1
szager1
mlamouri@, you're familiar with IntersectionObserver. Can you review this since skyostil is OOO?
3 years, 11 months ago (2017-01-04 22:39:48 UTC) #4
mlamouri (slow - plz ping)
lgtm -- mostly removing code, that was easy :)
3 years, 11 months ago (2017-01-05 12:16:09 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/2610963003/20001
3 years, 11 months ago (2017-01-05 17:15:51 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/335586)
3 years, 11 months ago (2017-01-05 17:23:00 UTC) #9
szager1
bokan@ for OWNERS
3 years, 11 months ago (2017-01-05 19:26:51 UTC) #11
bokan
rs lgtm
3 years, 11 months ago (2017-01-05 19:32:04 UTC) #12
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/2610963003/20001
3 years, 11 months ago (2017-01-05 20:27:04 UTC) #14
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/frame/FrameView.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-05 20:33:37 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/2610963003/40001
3 years, 11 months ago (2017-01-05 20:38:29 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/33233d198c4f17bc6016bb2f9f59e64232c7f541
3 years, 11 months ago (2017-01-06 01:56:32 UTC) #22
Sami
3 years, 11 months ago (2017-01-10 15:53:25 UTC) #23
Message was sent while issue was closed.
lgtm, thanks for the cleanup!

Part of me wonders about the CPU overhead of these calculations but they'll
eventually show up on profiles if they are an issue.

Powered by Google App Engine
This is Rietveld 408576698