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

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

Issue 1602773005: Respect break-inside:avoid on table rows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 years, 7 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/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 05af5b173cdcc3bc18dd390ce1f7b5f51c4d1185..feb8d766d4a712da08049330f238dadf04b05b16 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -595,6 +595,18 @@ public:
LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pageLogicalOffset : LayoutUnit(); }
void setPageLogicalOffset(LayoutUnit);
+ // Specify which page or column to associate with an offset, if said offset is exactly at a page
+ // or column boundary.
+ enum PageBoundaryRule { AssociateWithFormerPage, AssociateWithLatterPage };
+ LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const;
+ LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) const;
+
+ // Calculate the strut to insert in order fit content of size |contentLogicalHeight|.
+ // |strutToNextPage| is the strut to add to |offset| to merely get to the top of the next page
+ // or column. This is what will be returned if the content can actually fit there. Otherwise,
+ // return the distance to the next fragmentainer that can fit this piece of content.
+ virtual LayoutUnit calculatePaginationStrutToFitContent(LayoutUnit offset, LayoutUnit strutToNextPage, LayoutUnit contentLogicalHeight) const;
+
void positionLineBox(InlineBox*);
void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698