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

Issue 2553103004: Refactor IntersectionGeometry class and move it to core/layout. (Closed)

Created:
4 years ago by szager1
Modified:
4 years ago
Reviewers:
xjz, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jchaffraix+rendering, leviw+renderwatch, mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, sof, nessy, Srirama, szager+layoutwatch_chromium.org, vcarbune.chromium, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor IntersectionGeometry class and move it to core/layout. IntersectionGeometry is an ephemeral object, so make it stack allocated, let it use raw pointers to LayoutObject, and move it to core/layout. Also, be explicit about the implicit root by introducing rootIsImplicit. R=ojan@chromium.org,xjz@chromium.org BUG= Committed: https://crrev.com/80f26da6153e051225f68c526979bf39f88472a3 Cr-Commit-Position: refs/heads/master@{#437949}

Patch Set 1 #

Total comments: 16

Patch Set 2 : nits #

Patch Set 3 : rebase #

Total comments: 14

Patch Set 4 : nits #

Total comments: 2

Patch Set 5 : Simplify isContainingBlockChainDescendant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -471 lines) Patch
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/core/dom/IntersectionGeometry.h View 1 chunk +0 lines, -73 lines 0 comments Download
D third_party/WebKit/Source/core/dom/IntersectionGeometry.cpp View 1 chunk +0 lines, -241 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.h View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.cpp View 2 chunks +8 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/IntersectionGeometry.h View 1 2 3 4 2 chunks +35 lines, -20 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp View 1 2 3 4 5 chunks +84 lines, -110 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (9 generated)
szager1
4 years ago (2016-12-06 23:28:06 UTC) #1
xjz
https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode21 third_party/WebKit/Source/core/dom/IntersectionObservation.h:21: bool shouldReportRootBounds); ooc, I did this bool to enum ...
4 years ago (2016-12-07 01:01:14 UTC) #2
szager1
https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode21 third_party/WebKit/Source/core/dom/IntersectionObservation.h:21: bool shouldReportRootBounds); On 2016/12/07 01:01:14, xjz wrote: > ooc, ...
4 years ago (2016-12-07 01:30:49 UTC) #3
xjz
lgtm https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode21 third_party/WebKit/Source/core/dom/IntersectionObservation.h:21: bool shouldReportRootBounds); On 2016/12/07 01:30:49, szager1 wrote: > ...
4 years ago (2016-12-07 01:53:56 UTC) #8
szager1
https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/2553103004/diff/1/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode21 third_party/WebKit/Source/core/dom/IntersectionObservation.h:21: bool shouldReportRootBounds); On 2016/12/07 01:53:56, xjz wrote: > On ...
4 years ago (2016-12-07 02:03:49 UTC) #9
ojan
https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode4029 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:4029: IntersectionGeometry geometry(nullptr, *this, Vector<Length>(), true); This "true" was the ...
4 years ago (2016-12-10 01:18:26 UTC) #10
szager1
https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode4029 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:4029: IntersectionGeometry geometry(nullptr, *this, Vector<Length>(), true); On 2016/12/10 01:18:26, ojan ...
4 years ago (2016-12-10 01:47:11 UTC) #11
ojan
https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp File third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp (right): https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp#newcode27 third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp:27: while (descendantFrame && descendantFrame != ancestorFrame) { On 2016/12/10 ...
4 years ago (2016-12-12 19:53:31 UTC) #12
ojan
lgtm with the change we discussed offline for the cross-frame case.
4 years ago (2016-12-12 20:00:24 UTC) #13
szager1
https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp File third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp (right): https://codereview.chromium.org/2553103004/diff/40001/third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp#newcode27 third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp:27: while (descendantFrame && descendantFrame != ancestorFrame) { On 2016/12/12 ...
4 years ago (2016-12-12 20:16:11 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/2553103004/80001
4 years ago (2016-12-12 20:17:30 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-12 23:18:36 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-12 23:23:16 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/80f26da6153e051225f68c526979bf39f88472a3
Cr-Commit-Position: refs/heads/master@{#437949}

Powered by Google App Engine
This is Rietveld 408576698