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

Issue 2251443002: Correct offsetLeft and offsetTop calculation for column-span:all. (Closed)

Created:
4 years, 4 months ago by mstensho (USE GERRIT)
Modified:
4 years, 4 months ago
Reviewers:
eae
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, mstensho (USE GERRIT)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correct offsetLeft and offsetTop calculation for column-span:all. adjustedPositionRelativeTo() handled multicol incorrectly (the calls to columnOffset()), which was especially hurtful for spanners. We should only call it on objects in our containing block chain. This means that we need to walk the ancestry using container() instead of parent(). The container() of a spanner is the multicol container. We need to skip the inbetween flow thread, since it only contains column content, and not spanners. We also had bugs here with absolutely positioned objects inside multicol containers whose containing block are on the outside of the multicol container, but that's not really going to matter until we're able to lay out such objects correctly. That's bug 291616. As such, this CL is also a preparatory patch for fixing that bug. This CL will also make it possible to write check-layout.js tests for spanners, instead of having to resort to reftest or something even lesser. BUG=563446 Committed: https://crrev.com/1d341dd82cbcc6e2a67414a7fd358c4abeb56ca4 Cr-Commit-Position: refs/heads/master@{#412255}

Patch Set 1 #

Patch Set 2 : Need to keep the nullptr check, thanks to inline continuations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -11 lines) Patch
A third_party/WebKit/LayoutTests/fast/multicol/span/offset-properties.html View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
mstensho (USE GERRIT)
4 years, 4 months ago (2016-08-16 10:40:24 UTC) #10
eae
LGTM
4 years, 4 months ago (2016-08-16 14:43:36 UTC) #11
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/2251443002/20001
4 years, 4 months ago (2016-08-16 14:44:04 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-16 15:57:15 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 15:59:48 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1d341dd82cbcc6e2a67414a7fd358c4abeb56ca4
Cr-Commit-Position: refs/heads/master@{#412255}

Powered by Google App Engine
This is Rietveld 408576698