Commit 8b5b78ab authored by Morten Stenshorne's avatar Morten Stenshorne Committed by Commit Bot

Named pages should only have an effect when paginated.

Need to check if page breaks are applicable before applying them.

Bug: 1100308, 1053768
Change-Id: I987bf4ce42f7d0f5128cb01c30824214d9c12ea8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276432Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784139}
parent aec26a82
...@@ -893,7 +893,7 @@ void LayoutBlockFlow::InsertForcedBreakBeforeChildIfNeeded( ...@@ -893,7 +893,7 @@ void LayoutBlockFlow::InsertForcedBreakBeforeChildIfNeeded(
EBreakBetween class_a_break_point_value = EBreakBetween class_a_break_point_value =
child.ClassABreakPointValue(layout_info.PreviousBreakAfterValue()); child.ClassABreakPointValue(layout_info.PreviousBreakAfterValue());
if (page_name_has_changed) if (page_name_has_changed && IsBreakBetweenControllable(EBreakBetween::kPage))
class_a_break_point_value = EBreakBetween::kPage; class_a_break_point_value = EBreakBetween::kPage;
if (IsForcedFragmentainerBreakValue(class_a_break_point_value)) { if (IsForcedFragmentainerBreakValue(class_a_break_point_value)) {
......
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1100308">
<meta name="assert" content="The 'page' property should only have an effect if we're paginated, i.e. not inside multicol containers (unless we're also paginated)">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="columns:1; column-fill:auto; width:100px; height:100px; background:red;">
<div style="height:50px; background:green;"></div>
<div style="page:bogus; height:50px; background:green;"></div>
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment