| 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.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 const PaintInvalidationState& paintInvalidationState) { | 976 const PaintInvalidationState& paintInvalidationState) { |
| 977 return LayoutBox::invalidatePaintIfNeeded(paintInvalidationState); | 977 return LayoutBox::invalidatePaintIfNeeded(paintInvalidationState); |
| 978 } | 978 } |
| 979 | 979 |
| 980 PaintInvalidationReason LayoutBlock::invalidatePaintIfNeeded( | 980 PaintInvalidationReason LayoutBlock::invalidatePaintIfNeeded( |
| 981 const PaintInvalidatorContext& context) const { | 981 const PaintInvalidatorContext& context) const { |
| 982 return BlockPaintInvalidator(*this, context).invalidatePaintIfNeeded(); | 982 return BlockPaintInvalidator(*this, context).invalidatePaintIfNeeded(); |
| 983 } | 983 } |
| 984 | 984 |
| 985 void LayoutBlock::removePositionedObjects( | 985 void LayoutBlock::removePositionedObjects( |
| 986 LayoutBlock* o, | 986 LayoutObject* o, |
| 987 ContainingBlockState containingBlockState) { | 987 ContainingBlockState containingBlockState) { |
| 988 TrackedLayoutBoxListHashSet* positionedDescendants = positionedObjects(); | 988 TrackedLayoutBoxListHashSet* positionedDescendants = positionedObjects(); |
| 989 if (!positionedDescendants) | 989 if (!positionedDescendants) |
| 990 return; | 990 return; |
| 991 | 991 |
| 992 Vector<LayoutBox*, 16> deadObjects; | 992 Vector<LayoutBox*, 16> deadObjects; |
| 993 for (auto* positionedObject : *positionedDescendants) { | 993 for (auto* positionedObject : *positionedDescendants) { |
| 994 if (!o || (positionedObject->isDescendantOf(o) && o != positionedObject)) { | 994 if (!o || (positionedObject->isDescendantOf(o) && o != positionedObject)) { |
| 995 if (containingBlockState == NewContainingBlock) { | 995 if (containingBlockState == NewContainingBlock) { |
| 996 positionedObject->setChildNeedsLayout(MarkOnlyThis); | 996 positionedObject->setChildNeedsLayout(MarkOnlyThis); |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 } | 2135 } |
| 2136 | 2136 |
| 2137 return availableHeight; | 2137 return availableHeight; |
| 2138 } | 2138 } |
| 2139 | 2139 |
| 2140 bool LayoutBlock::hasDefiniteLogicalHeight() const { | 2140 bool LayoutBlock::hasDefiniteLogicalHeight() const { |
| 2141 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); | 2141 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); |
| 2142 } | 2142 } |
| 2143 | 2143 |
| 2144 } // namespace blink | 2144 } // namespace blink |
| OLD | NEW |