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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.h

Issue 2401753002: A forced break inside a break-inside:avoid object may make it fit where it is. (Closed)
Patch Set: Volvo lastvagnar Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
index 14a6cd12d1e0678341d6b47a0c32611dab0237bf..22d9711f33818da5ea0aa60e1126a518adf306ac 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -306,6 +306,13 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
}
void setPaginationStrutPropagatedFromChild(LayoutUnit);
+ LayoutUnit firstForcedBreakOffset() const {
+ if (!m_rareData)
+ return LayoutUnit();
+ return m_rareData->m_firstForcedBreakOffset;
+ }
+ void setFirstForcedBreakOffset(LayoutUnit);
+
void positionSpannerDescendant(LayoutMultiColumnSpannerPlaceholder& child);
bool avoidsFloats() const override;
@@ -679,6 +686,8 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
MarginValues m_margins;
LayoutUnit m_paginationStrutPropagatedFromChild;
+ LayoutUnit m_firstForcedBreakOffset;
+
LayoutMultiColumnFlowThread* m_multiColumnFlowThread;
unsigned m_breakBefore : 4;

Powered by Google App Engine
This is Rietveld 408576698