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

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