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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2412923002: Top-align table cells in rows that cross fragmentainer boundaries. (Closed)
Patch Set: Let's keep the pagination strut substraction thing a bit longer, since removing it affects some DRT… 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 return m_rareData ? m_rareData->m_pageLogicalOffset : LayoutUnit(); 774 return m_rareData ? m_rareData->m_pageLogicalOffset : LayoutUnit();
775 } 775 }
776 void setPageLogicalOffset(LayoutUnit); 776 void setPageLogicalOffset(LayoutUnit);
777 777
778 // Specify which page or column to associate with an offset, if said offset is 778 // Specify which page or column to associate with an offset, if said offset is
779 // exactly at a page or column boundary. 779 // exactly at a page or column boundary.
780 enum PageBoundaryRule { AssociateWithFormerPage, AssociateWithLatterPage }; 780 enum PageBoundaryRule { AssociateWithFormerPage, AssociateWithLatterPage };
781 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; 781 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const;
782 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, 782 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit,
783 PageBoundaryRule) const; 783 PageBoundaryRule) const;
784 bool crossesPageBoundary(LayoutUnit offset, LayoutUnit logicalHeight) const;
784 785
785 // Calculate the strut to insert in order fit content of size 786 // Calculate the strut to insert in order fit content of size
786 // |contentLogicalHeight|. |strutToNextPage| is the strut to add to |offset| 787 // |contentLogicalHeight|. |strutToNextPage| is the strut to add to |offset|
787 // to merely get to the top of the next page or column. This is what will be 788 // to merely get to the top of the next page or column. This is what will be
788 // returned if the content can actually fit there. Otherwise, return the 789 // returned if the content can actually fit there. Otherwise, return the
789 // distance to the next fragmentainer that can fit this piece of content. 790 // distance to the next fragmentainer that can fit this piece of content.
790 virtual LayoutUnit calculatePaginationStrutToFitContent( 791 virtual LayoutUnit calculatePaginationStrutToFitContent(
791 LayoutUnit offset, 792 LayoutUnit offset,
792 LayoutUnit strutToNextPage, 793 LayoutUnit strutToNextPage,
793 LayoutUnit contentLogicalHeight) const; 794 LayoutUnit contentLogicalHeight) const;
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 1613
1613 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1614 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1614 return breakValue == BreakColumn || breakValue == BreakLeft || 1615 return breakValue == BreakColumn || breakValue == BreakLeft ||
1615 breakValue == BreakPage || breakValue == BreakRecto || 1616 breakValue == BreakPage || breakValue == BreakRecto ||
1616 breakValue == BreakRight || breakValue == BreakVerso; 1617 breakValue == BreakRight || breakValue == BreakVerso;
1617 } 1618 }
1618 1619
1619 } // namespace blink 1620 } // namespace blink
1620 1621
1621 #endif // LayoutBox_h 1622 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698