OLD | NEW |
---|---|
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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
434 LayoutUnit clearFloatsIfNeeded(RenderBox* child, MarginInfo&, LayoutUnit old TopPosMargin, LayoutUnit oldTopNegMargin, LayoutUnit yPos, bool childIsSelfColla psing); | 434 LayoutUnit clearFloatsIfNeeded(RenderBox* child, MarginInfo&, LayoutUnit old TopPosMargin, LayoutUnit oldTopNegMargin, LayoutUnit yPos, bool childIsSelfColla psing); |
435 LayoutUnit estimateLogicalTopPosition(RenderBox* child, const MarginInfo&, L ayoutUnit& estimateWithoutPagination); | 435 LayoutUnit estimateLogicalTopPosition(RenderBox* child, const MarginInfo&, L ayoutUnit& estimateWithoutPagination); |
436 void marginBeforeEstimateForChild(RenderBox*, LayoutUnit&, LayoutUnit&, bool &) const; | 436 void marginBeforeEstimateForChild(RenderBox*, LayoutUnit&, LayoutUnit&, bool &) const; |
437 void handleAfterSideOfBlock(RenderBox* lastChild, LayoutUnit top, LayoutUnit bottom, MarginInfo&); | 437 void handleAfterSideOfBlock(RenderBox* lastChild, LayoutUnit top, LayoutUnit bottom, MarginInfo&); |
438 void setCollapsedBottomMargin(const MarginInfo&); | 438 void setCollapsedBottomMargin(const MarginInfo&); |
439 | 439 |
440 LayoutUnit applyBeforeBreak(RenderBox* 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. | 440 LayoutUnit applyBeforeBreak(RenderBox* 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. |
441 LayoutUnit applyAfterBreak(RenderBox* 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. | 441 LayoutUnit applyAfterBreak(RenderBox* 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. |
442 | 442 |
443 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTopAfterClear, La youtUnit estimateWithoutPagination, RenderBox* child, bool atBeforeSideOfBlock); | 443 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTopAfterClear, La youtUnit estimateWithoutPagination, RenderBox* child, bool atBeforeSideOfBlock); |
444 void adjustLinePositionForPagination(RootInlineBox*, LayoutUnit& deltaOffset , RenderFlowThread*); // Computes a deltaOffset value that put a line at the top of the next page if it doesn't fit on the current page. | 444 // Computes a deltaOffset value that put a line at the top of the next page if it doesn't fit on the current page. |
445 void adjustLinePositionForPagination(RootInlineBox*, LayoutUnit& deltaOffset , RenderFlowThread*); | |
446 // If the child is unsplittable and can't fit on the current page, return th e top of the next page/column. | |
447 LayoutUnit adjustForUnsplittableChild(RenderBox*, LayoutUnit logicalOffset, bool includeMargins = false); | |
rune
2014/09/25 11:13:22
Adjust what? I know you didn't invent this method
mstensho (USE GERRIT)
2014/09/26 11:09:01
adjustPositionForUnsplittableChild()?
adjustUnspli
| |
445 | 448 |
446 // Used to store state between styleWillChange and styleDidChange | 449 // Used to store state between styleWillChange and styleDidChange |
447 static bool s_canPropagateFloatIntoSibling; | 450 static bool s_canPropagateFloatIntoSibling; |
448 | 451 |
449 RenderBlockFlowRareData& ensureRareData(); | 452 RenderBlockFlowRareData& ensureRareData(); |
450 | 453 |
451 LayoutUnit m_paintInvalidationLogicalTop; | 454 LayoutUnit m_paintInvalidationLogicalTop; |
452 LayoutUnit m_paintInvalidationLogicalBottom; | 455 LayoutUnit m_paintInvalidationLogicalBottom; |
453 | 456 |
454 virtual bool isSelfCollapsingBlock() const OVERRIDE; | 457 virtual bool isSelfCollapsingBlock() const OVERRIDE; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 | 501 |
499 // END METHODS DEFINED IN RenderBlockLineLayout | 502 // END METHODS DEFINED IN RenderBlockLineLayout |
500 | 503 |
501 }; | 504 }; |
502 | 505 |
503 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 506 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
504 | 507 |
505 } // namespace blink | 508 } // namespace blink |
506 | 509 |
507 #endif // RenderBlockFlow_h | 510 #endif // RenderBlockFlow_h |
OLD | NEW |