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

Issue 1180613005: When looking for adjacent content inside multicols, don't consider inner multicols. (Closed)

Created:
5 years, 6 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho (USE GERRIT), pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

When looking for adjacent content inside multicols, don't consider inner multicols. When walking the tree backwards for a suitable object, we need to check that we didn't end up inside an inner multicol container. Walking forwards is more trivial (no changes there), but added an assertion that we haven't entered an inner multicol just in case anyway. Also added some assertions which will fail if nextInPreOrderAfterChildrenSkippingOutOfFlow() or previousInPreOrderSkippingOutOfFlow() misbehave. Need to check with shouldSkipInsertedOrRemovedChild() before calling those two functions now, since they are not meant to be called on children that are to be skipped (especially important for column sets and spanner placeholders, which should always be skipped). BUG=498431, 498630 R=dsinclair@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196957

Patch Set 1 #

Total comments: 2

Messages

Total messages: 6 (1 generated)
mstensho (USE GERRIT)
5 years, 6 months ago (2015-06-11 15:25:24 UTC) #1
dsinclair
lgtm https://codereview.chromium.org/1180613005/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right): https://codereview.chromium.org/1180613005/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp#newcode120 Source/core/layout/LayoutMultiColumnFlowThread.cpp:120: for (ancestor = object->parent(); ; ancestor = ancestor->parent()) ...
5 years, 6 months ago (2015-06-11 15:38:24 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180613005/1
5 years, 6 months ago (2015-06-11 15:38:37 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=196957
5 years, 6 months ago (2015-06-11 15:41:42 UTC) #5
mstensho (USE GERRIT)
5 years, 6 months ago (2015-06-11 16:22:13 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1180613005/diff/1/Source/core/layout/LayoutMu...
File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right):

https://codereview.chromium.org/1180613005/diff/1/Source/core/layout/LayoutMu...
Source/core/layout/LayoutMultiColumnFlowThread.cpp:120: for (ancestor =
object->parent(); ; ancestor = ancestor->parent()) {
On 2015/06/11 15:38:24, dsinclair wrote:
> Is there no possibility for this to walk up and ancestor == nullptr?

Shouldn't be. |object| is something we get to via
previousInPreOrder(flowThread).

Powered by Google App Engine
This is Rietveld 408576698