| 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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 : LayoutBox(node), | 92 : LayoutBox(node), |
| 93 m_hasMarginBeforeQuirk(false), | 93 m_hasMarginBeforeQuirk(false), |
| 94 m_hasMarginAfterQuirk(false), | 94 m_hasMarginAfterQuirk(false), |
| 95 m_beingDestroyed(false), | 95 m_beingDestroyed(false), |
| 96 m_hasMarkupTruncation(false), | 96 m_hasMarkupTruncation(false), |
| 97 m_widthAvailableToChildrenChanged(false), | 97 m_widthAvailableToChildrenChanged(false), |
| 98 m_heightAvailableToChildrenChanged(false), | 98 m_heightAvailableToChildrenChanged(false), |
| 99 m_isSelfCollapsing(false), | 99 m_isSelfCollapsing(false), |
| 100 m_descendantsWithFloatsMarkedForLayout(false), | 100 m_descendantsWithFloatsMarkedForLayout(false), |
| 101 m_hasPositionedObjects(false), | 101 m_hasPositionedObjects(false), |
| 102 m_hasPercentHeightDescendants(false) { | 102 m_hasPercentHeightDescendants(false), |
| 103 m_paginationStateChanged(false) { |
| 103 // LayoutBlockFlow calls setChildrenInline(true). | 104 // LayoutBlockFlow calls setChildrenInline(true). |
| 104 // By default, subclasses do not have inline children. | 105 // By default, subclasses do not have inline children. |
| 105 } | 106 } |
| 106 | 107 |
| 107 void LayoutBlock::removeFromGlobalMaps() { | 108 void LayoutBlock::removeFromGlobalMaps() { |
| 108 if (hasPositionedObjects()) { | 109 if (hasPositionedObjects()) { |
| 109 std::unique_ptr<TrackedLayoutBoxListHashSet> descendants = | 110 std::unique_ptr<TrackedLayoutBoxListHashSet> descendants = |
| 110 gPositionedDescendantsMap->take(this); | 111 gPositionedDescendantsMap->take(this); |
| 111 ASSERT(!descendants->isEmpty()); | 112 ASSERT(!descendants->isEmpty()); |
| 112 for (LayoutBox* descendant : *descendants) { | 113 for (LayoutBox* descendant : *descendants) { |
| (...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 } | 2213 } |
| 2213 | 2214 |
| 2214 return availableHeight; | 2215 return availableHeight; |
| 2215 } | 2216 } |
| 2216 | 2217 |
| 2217 bool LayoutBlock::hasDefiniteLogicalHeight() const { | 2218 bool LayoutBlock::hasDefiniteLogicalHeight() const { |
| 2218 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); | 2219 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); |
| 2219 } | 2220 } |
| 2220 | 2221 |
| 2221 } // namespace blink | 2222 } // namespace blink |
| OLD | NEW |