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

Issue 2646133002: Add offset contributed to sticky position box rect by location containers (Closed)

Created:
3 years, 11 months ago by flackr
Modified:
3 years, 10 months ago
Reviewers:
chrishtr, Xianzhu
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, smcgruer, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add offset contributed to sticky position box rect by location containers Tables are constructed using locationContainers which do not serve as the containing block but do offset the element. These need to be included in the sticky position offsets in the constraints. BUG=673538 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2646133002 Cr-Commit-Position: refs/heads/master@{#446155} Committed: https://chromium.googlesource.com/chromium/src/+/686dbbef585fd2064f1a2a3451b90e501936a589

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add localToAncestorQuadWithoutTransforms and use container and sticky box rect offsets. #

Total comments: 2

Patch Set 3 : Add localToAncestorQuadInternal. #

Total comments: 2

Patch Set 4 : Merge with master and use EXPECT_EQ for non-fatal checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -10 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 2 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 1 chunk +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
flackr
We have the incorrect constraint rects on table elements which happened to cancel itself out ...
3 years, 11 months ago (2017-01-20 14:37:02 UTC) #3
chrishtr
https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode776 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:776: LayoutBlock* containingBlock = this->containingBlock(); Sort of unrelated to your ...
3 years, 11 months ago (2017-01-20 19:20:57 UTC) #5
Xianzhu
https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode780 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:780: while (locationContainer && locationContainer != containingBlock) { On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 23:04:01 UTC) #6
flackr
https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode776 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:776: LayoutBlock* containingBlock = this->containingBlock(); On 2017/01/20 19:20:57, chrishtr wrote: ...
3 years, 11 months ago (2017-01-23 23:33:43 UTC) #7
Xianzhu
https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2646133002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode780 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:780: while (locationContainer && locationContainer != containingBlock) { On 2017/01/23 ...
3 years, 11 months ago (2017-01-24 00:00:39 UTC) #8
flackr
I added a new method which allows computing the localToAncestorQuad without transforms and used that ...
3 years, 11 months ago (2017-01-24 22:37:12 UTC) #9
Xianzhu
Thanks for the explanations. https://codereview.chromium.org/2646133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2646133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2245 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2245: FloatQuad LayoutObject::localToAncestorQuadWithoutTransforms( I like the ...
3 years, 11 months ago (2017-01-24 22:53:11 UTC) #10
flackr
https://codereview.chromium.org/2646133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2646133002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2245 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2245: FloatQuad LayoutObject::localToAncestorQuadWithoutTransforms( On 2017/01/24 22:53:11, Xianzhu wrote: > I ...
3 years, 10 months ago (2017-01-25 13:23:25 UTC) #11
Xianzhu
lgtm https://codereview.chromium.org/2646133002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp (right): https://codereview.chromium.org/2646133002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp#newcode273 third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp:273: ASSERT_EQ(IntRect(0, 0, 50, 100), Nit: I prefer EXPECT_EQ ...
3 years, 10 months ago (2017-01-25 18:52:27 UTC) #16
flackr
https://codereview.chromium.org/2646133002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp (right): https://codereview.chromium.org/2646133002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp#newcode273 third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp:273: ASSERT_EQ(IntRect(0, 0, 50, 100), On 2017/01/25 18:52:26, Xianzhu wrote: ...
3 years, 10 months ago (2017-01-25 18:56:35 UTC) #17
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/2646133002/60001
3 years, 10 months ago (2017-01-25 18:57:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/370893)
3 years, 10 months ago (2017-01-25 21:07:33 UTC) #22
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/2646133002/60001
3 years, 10 months ago (2017-01-25 21:26:34 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-25 23:08:57 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/686dbbef585fd2064f1a2a3451b9...

Powered by Google App Engine
This is Rietveld 408576698