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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.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-2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are 10 * modification, are permitted provided that the following conditions are
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 void handleAfterSideOfBlock(LayoutBox* lastChild, LayoutUnit top, LayoutUnit bottom, MarginInfo&); 523 void handleAfterSideOfBlock(LayoutBox* lastChild, LayoutUnit top, LayoutUnit bottom, MarginInfo&);
524 void setCollapsedBottomMargin(const MarginInfo&); 524 void setCollapsedBottomMargin(const MarginInfo&);
525 525
526 LayoutUnit applyBeforeBreak(LayoutBox& child, LayoutUnit logicalOffset); // If the child has a before break, then return a new yPos that shifts to the top o f the next page/column. 526 LayoutUnit applyBeforeBreak(LayoutBox& child, LayoutUnit logicalOffset); // If the child has a before break, then return a new yPos that shifts to the top o f the next page/column.
527 LayoutUnit applyAfterBreak(LayoutBox& child, LayoutUnit logicalOffset, Margi nInfo&); // If the child has an after break, then return a new offset that shift s to the top of the next page/column. 527 LayoutUnit applyAfterBreak(LayoutBox& child, LayoutUnit logicalOffset, Margi nInfo&); // If the child has an after break, then return a new offset that shift s to the top of the next page/column.
528 528
529 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTop, LayoutBox& c hild, bool atBeforeSideOfBlock); 529 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTop, LayoutBox& c hild, bool atBeforeSideOfBlock);
530 // Computes a deltaOffset value that put a line at the top of the next page if it doesn't fit on the current page. 530 // Computes a deltaOffset value that put a line at the top of the next page if it doesn't fit on the current page.
531 void adjustLinePositionForPagination(RootInlineBox&, LayoutUnit& deltaOffset ); 531 void adjustLinePositionForPagination(RootInlineBox&, LayoutUnit& deltaOffset );
532 // If the child is unsplittable and can't fit on the current page, return th e top of the next page/column. 532 // If the child is unsplittable and can't fit on the current page, return th e top of the next page/column.
533 LayoutUnit adjustForUnsplittableChild(LayoutBox&, LayoutUnit logicalOffset); 533 LayoutUnit adjustForUnsplittableChild(LayoutBox&, LayoutUnit logicalOffset) const;
534 534
535 // Used to store state between styleWillChange and styleDidChange 535 // Used to store state between styleWillChange and styleDidChange
536 static bool s_canPropagateFloatIntoSibling; 536 static bool s_canPropagateFloatIntoSibling;
537 537
538 LayoutBlockFlowRareData& ensureRareData(); 538 LayoutBlockFlowRareData& ensureRareData();
539 539
540 LayoutUnit m_paintInvalidationLogicalTop; 540 LayoutUnit m_paintInvalidationLogicalTop;
541 LayoutUnit m_paintInvalidationLogicalBottom; 541 LayoutUnit m_paintInvalidationLogicalBottom;
542 542
543 bool isSelfCollapsingBlock() const override; 543 bool isSelfCollapsingBlock() const override;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 585
586 // END METHODS DEFINED IN LayoutBlockFlowLine 586 // END METHODS DEFINED IN LayoutBlockFlowLine
587 587
588 }; 588 };
589 589
590 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 590 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
591 591
592 } // namespace blink 592 } // namespace blink
593 593
594 #endif // LayoutBlockFlow_h 594 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698