| 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 4734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4745 bool LayoutBox::childNeedsRelayoutForPagination(const LayoutBox& child) const { | 4745 bool LayoutBox::childNeedsRelayoutForPagination(const LayoutBox& child) const { |
| 4746 // TODO(mstensho): Should try to get this to work for floats too, instead of | 4746 // TODO(mstensho): Should try to get this to work for floats too, instead of |
| 4747 // just marking and bailing here. | 4747 // just marking and bailing here. |
| 4748 if (child.isFloating()) | 4748 if (child.isFloating()) |
| 4749 return true; | 4749 return true; |
| 4750 const LayoutFlowThread* flowThread = child.flowThreadContainingBlock(); | 4750 const LayoutFlowThread* flowThread = child.flowThreadContainingBlock(); |
| 4751 LayoutUnit logicalTop = child.logicalTop(); | 4751 LayoutUnit logicalTop = child.logicalTop(); |
| 4752 // Figure out if we really need to force re-layout of the child. We only need | 4752 // Figure out if we really need to force re-layout of the child. We only need |
| 4753 // to do this if there's a chance that we need to recalculate pagination | 4753 // to do this if there's a chance that we need to recalculate pagination |
| 4754 // struts inside. | 4754 // struts inside. |
| 4755 if (LayoutUnit pageLogicalHeight = pageLogicalHeightForOffset(logicalTop)) { | 4755 if (pageLogicalHeightForOffset(logicalTop)) { |
| 4756 LayoutUnit logicalHeight = child.logicalHeightWithVisibleOverflow(); | 4756 LayoutUnit logicalHeight = child.logicalHeightWithVisibleOverflow(); |
| 4757 LayoutUnit remainingSpace = pageRemainingLogicalHeightForOffset( | 4757 LayoutUnit remainingSpace = pageRemainingLogicalHeightForOffset( |
| 4758 logicalTop, AssociateWithLatterPage); | 4758 logicalTop, AssociateWithLatterPage); |
| 4759 if (child.offsetToNextPage()) { | 4759 if (child.offsetToNextPage()) { |
| 4760 // We need to relayout unless we're going to break at the exact same | 4760 // We need to relayout unless we're going to break at the exact same |
| 4761 // location as before. | 4761 // location as before. |
| 4762 if (child.offsetToNextPage() != remainingSpace) | 4762 if (child.offsetToNextPage() != remainingSpace) |
| 4763 return true; | 4763 return true; |
| 4764 // If column height isn't guaranteed to be uniform, we have no way of | 4764 // If column height isn't guaranteed to be uniform, we have no way of |
| 4765 // telling what has happened after the first break. | 4765 // telling what has happened after the first break. |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5694 block->adjustChildDebugRect(rect); | 5694 block->adjustChildDebugRect(rect); |
| 5695 | 5695 |
| 5696 return rect; | 5696 return rect; |
| 5697 } | 5697 } |
| 5698 | 5698 |
| 5699 bool LayoutBox::shouldClipOverflow() const { | 5699 bool LayoutBox::shouldClipOverflow() const { |
| 5700 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); | 5700 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); |
| 5701 } | 5701 } |
| 5702 | 5702 |
| 5703 } // namespace blink | 5703 } // namespace blink |
| OLD | NEW |