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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 g_positioned_descendants_map->at(container); | 989 g_positioned_descendants_map->at(container); |
990 DCHECK(positioned_descendants); | 990 DCHECK(positioned_descendants); |
991 DCHECK(positioned_descendants->Contains(o)); | 991 DCHECK(positioned_descendants->Contains(o)); |
992 positioned_descendants->erase(o); | 992 positioned_descendants->erase(o); |
993 if (positioned_descendants->IsEmpty()) { | 993 if (positioned_descendants->IsEmpty()) { |
994 g_positioned_descendants_map->erase(container); | 994 g_positioned_descendants_map->erase(container); |
995 container->has_positioned_objects_ = false; | 995 container->has_positioned_objects_ = false; |
996 } | 996 } |
997 } | 997 } |
998 | 998 |
999 PaintInvalidationReason LayoutBlock::InvalidatePaintIfNeeded( | 999 PaintInvalidationReason LayoutBlock::InvalidatePaint( |
1000 const PaintInvalidationState& paint_invalidation_state) { | 1000 const PaintInvalidationState& paint_invalidation_state) { |
1001 return LayoutBox::InvalidatePaintIfNeeded(paint_invalidation_state); | 1001 return LayoutBox::InvalidatePaint(paint_invalidation_state); |
1002 } | 1002 } |
1003 | 1003 |
1004 PaintInvalidationReason LayoutBlock::InvalidatePaintIfNeeded( | 1004 PaintInvalidationReason LayoutBlock::InvalidatePaint( |
1005 const PaintInvalidatorContext& context) const { | 1005 const PaintInvalidatorContext& context) const { |
1006 return BlockPaintInvalidator(*this).InvalidatePaintIfNeeded(context); | 1006 return BlockPaintInvalidator(*this).InvalidatePaint(context); |
1007 } | 1007 } |
1008 | 1008 |
1009 void LayoutBlock::ClearPreviousVisualRects() { | 1009 void LayoutBlock::ClearPreviousVisualRects() { |
1010 LayoutBox::ClearPreviousVisualRects(); | 1010 LayoutBox::ClearPreviousVisualRects(); |
1011 BlockPaintInvalidator(*this).ClearPreviousVisualRects(); | 1011 BlockPaintInvalidator(*this).ClearPreviousVisualRects(); |
1012 } | 1012 } |
1013 | 1013 |
1014 void LayoutBlock::RemovePositionedObjects( | 1014 void LayoutBlock::RemovePositionedObjects( |
1015 LayoutObject* o, | 1015 LayoutObject* o, |
1016 ContainingBlockState containing_block_state) { | 1016 ContainingBlockState containing_block_state) { |
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 bool LayoutBlock::HasDefiniteLogicalHeight() const { | 2206 bool LayoutBlock::HasDefiniteLogicalHeight() const { |
2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); | 2207 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); |
2208 } | 2208 } |
2209 | 2209 |
2210 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { | 2210 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { |
2211 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || | 2211 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || |
2212 LayoutBox::NeedsPreferredWidthsRecalculation(); | 2212 LayoutBox::NeedsPreferredWidthsRecalculation(); |
2213 } | 2213 } |
2214 | 2214 |
2215 } // namespace blink | 2215 } // namespace blink |
OLD | NEW |