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

Issue 1908643003: Prioritize first-lines over orphans when deciding whether to propagate a strut. (Closed)

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

Description

Prioritize first-lines over orphans when deciding whether to propagate a strut. The orphans code piece simply blindly propagates the strut to the block if the orphans requirement isn't satisfied. It's incapable of inserting a break at a class C break point [1] (i.e. before the first line in the block), while the first-line code piece handles this just fine (since this is easy to do when at the first line, but not when at a later line). If we're at a non-first line at the time of breaking, there's no support for going back to insert a break before the first line. That has to be done when processing the first line, not later on. Flip the priority, so that orphans requirements aren't even checked if we're at the first line. There's no need then. We always try to avoid breaking before the first line anyway. [1] https://drafts.csswg.org/css-break/#possible-breaks Committed: https://crrev.com/26d004ea56c7db51b1dc19ba21670587604612d8 Cr-Commit-Position: refs/heads/master@{#388838}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/fragmentation/block-with-float-and-1-orphaned-line.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fragmentation/block-with-float-and-1-orphaned-line-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 chunk +21 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
mstensho (USE GERRIT)
This doesn't really fix anything super-important, but I'm trying to fix bug 473509 (spec-compliant parsing ...
4 years, 8 months ago (2016-04-21 18:43:13 UTC) #3
eae
LGTM
4 years, 8 months ago (2016-04-21 19:02:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908643003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908643003/1
4 years, 8 months ago (2016-04-21 19:03:01 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-21 19:09:33 UTC) #8
wkorman
lgtm
4 years, 8 months ago (2016-04-21 19:27:35 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:37:11 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/26d004ea56c7db51b1dc19ba21670587604612d8
Cr-Commit-Position: refs/heads/master@{#388838}

Powered by Google App Engine
This is Rietveld 408576698