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

Side by Side 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 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // Used to resolve margins in the containing block's block-flow direction. 587 // Used to resolve margins in the containing block's block-flow direction.
588 void computeAndSetBlockDirectionMargins(const LayoutBlock* containingBlock); 588 void computeAndSetBlockDirectionMargins(const LayoutBlock* containingBlock);
589 589
590 LayoutUnit offsetFromLogicalTopOfFirstPage() const; 590 LayoutUnit offsetFromLogicalTopOfFirstPage() const;
591 591
592 // The page logical offset is the object's offset from the top of the page i n the page progression 592 // The page logical offset is the object's offset from the top of the page i n the page progression
593 // direction (so an x-offset in vertical text and a y-offset for horizontal text). 593 // direction (so an x-offset in vertical text and a y-offset for horizontal text).
594 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag eLogicalOffset : LayoutUnit(); } 594 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag eLogicalOffset : LayoutUnit(); }
595 void setPageLogicalOffset(LayoutUnit); 595 void setPageLogicalOffset(LayoutUnit);
596 596
597 // Specify which page or column to associate with an offset, if said offset is exactly at a page
598 // or column boundary.
599 enum PageBoundaryRule { AssociateWithFormerPage, AssociateWithLatterPage };
600 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const;
601 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) const;
602
603 // Calculate the strut to insert in order fit content of size |contentLogica lHeight|.
604 // |strutToNextPage| is the strut to add to |offset| to merely get to the to p of the next page
605 // or column. This is what will be returned if the content can actually fit there. Otherwise,
606 // return the distance to the next fragmentainer that can fit this piece of content.
607 virtual LayoutUnit calculatePaginationStrutToFitContent(LayoutUnit offset, L ayoutUnit strutToNextPage, LayoutUnit contentLogicalHeight) const;
608
597 void positionLineBox(InlineBox*); 609 void positionLineBox(InlineBox*);
598 void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal); 610 void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal);
599 611
600 virtual InlineBox* createInlineBox(); 612 virtual InlineBox* createInlineBox();
601 void dirtyLineBoxes(bool fullLayout); 613 void dirtyLineBoxes(bool fullLayout);
602 614
603 // For atomic inline elements, this function returns the inline box that con tains us. Enables 615 // For atomic inline elements, this function returns the inline box that con tains us. Enables
604 // the atomic inline LayoutObject to quickly determine what line it is conta ined on and to easily 616 // the atomic inline LayoutObject to quickly determine what line it is conta ined on and to easily
605 // iterate over structures on the line. 617 // iterate over structures on the line.
606 InlineBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; } 618 InlineBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; }
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 || breakValue == BreakLeft 1175 || breakValue == BreakLeft
1164 || breakValue == BreakPage 1176 || breakValue == BreakPage
1165 || breakValue == BreakRecto 1177 || breakValue == BreakRecto
1166 || breakValue == BreakRight 1178 || breakValue == BreakRight
1167 || breakValue == BreakVerso; 1179 || breakValue == BreakVerso;
1168 } 1180 }
1169 1181
1170 } // namespace blink 1182 } // namespace blink
1171 1183
1172 #endif // LayoutBox_h 1184 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698