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

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

Issue 1406973008: Calculate minimum column height after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years, 1 month 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 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // 447 //
448 // For a page height of 800px, AssociateWithLatterPage will return 1600 if t he value passed in 448 // For a page height of 800px, AssociateWithLatterPage will return 1600 if t he value passed in
449 // is 800. AssociateWithFormerPage will simply return 800. 449 // is 800. AssociateWithFormerPage will simply return 800.
450 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule) co nst; 450 LayoutUnit nextPageLogicalTop(LayoutUnit logicalOffset, PageBoundaryRule) co nst;
451 451
452 // Paginated content inside this block was laid out. 452 // Paginated content inside this block was laid out.
453 // |logicalTopOffsetAfterPagination| is the logical top offset of the child content after 453 // |logicalTopOffsetAfterPagination| is the logical top offset of the child content after
454 // applying any forced or unforced break, if needed. 454 // applying any forced or unforced break, if needed.
455 void paginatedContentWasLaidOut(LayoutUnit logicalTopOffsetAfterPagination); 455 void paginatedContentWasLaidOut(LayoutUnit logicalTopOffsetAfterPagination);
456 456
457 // Update minimum page height required to avoid fragmentation where it shoul dn't occur (inside
458 // unbreakable content, between orphans and widows, etc.). This will be used as a hint to the
459 // column balancer to help set a good minimum column height.
460 void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight);
461
462 // Adjust from painting offsets to the local coords of this layoutObject 457 // Adjust from painting offsets to the local coords of this layoutObject
463 void offsetForContents(LayoutPoint&) const; 458 void offsetForContents(LayoutPoint&) const;
464 459
465 virtual bool updateLogicalWidthAndColumnWidth(); 460 virtual bool updateLogicalWidthAndColumnWidth();
466 461
467 virtual bool canCollapseAnonymousBlockChild() const { return true; } 462 virtual bool canCollapseAnonymousBlockChild() const { return true; }
468 463
469 LayoutObjectChildList m_children; 464 LayoutObjectChildList m_children;
470 LineBoxList m_lineBoxes; // All of the root line boxes created for this bloc k flow. For example, <div>Hello<br>world.</div> will have two total lines for t he <div>. 465 LineBoxList m_lineBoxes; // All of the root line boxes created for this bloc k flow. For example, <div>Hello<br>world.</div> will have two total lines for t he <div>.
471 466
(...skipping 15 matching lines...) Expand all
487 // FIXME: This is temporary as we move code that accesses block flow 482 // FIXME: This is temporary as we move code that accesses block flow
488 // member variables out of LayoutBlock and into LayoutBlockFlow. 483 // member variables out of LayoutBlock and into LayoutBlockFlow.
489 friend class LayoutBlockFlow; 484 friend class LayoutBlockFlow;
490 }; 485 };
491 486
492 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 487 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
493 488
494 } // namespace blink 489 } // namespace blink
495 490
496 #endif // LayoutBlock_h 491 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ColumnBalancer.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698