| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 // The border can potentially be further extended by our containingBlock(). | 923 // The border can potentially be further extended by our containingBlock(). |
| 924 if (root_block != this) | 924 if (root_block != this) |
| 925 return ContainingBlock()->LogicalRightSelectionOffset( | 925 return ContainingBlock()->LogicalRightSelectionOffset( |
| 926 root_block, position + LogicalTop()); | 926 root_block, position + LogicalTop()); |
| 927 return LogicalRightOffsetForContent(); | 927 return LogicalRightOffsetForContent(); |
| 928 } | 928 } |
| 929 | 929 |
| 930 void LayoutBlock::SetSelectionState(SelectionState state) { | 930 void LayoutBlock::SetSelectionState(SelectionState state) { |
| 931 LayoutBox::SetSelectionState(state); | 931 LayoutBox::SetSelectionState(state); |
| 932 | 932 |
| 933 if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes()) | 933 if (InlineBoxWrapper() && CanUpdateSelectionOnRootLineBoxes()) { |
| 934 InlineBoxWrapper()->Root().SetHasSelectedChildren(state != SelectionNone); | 934 InlineBoxWrapper()->Root().SetHasSelectedChildren(state != |
| 935 SelectionState::kNone); |
| 936 } |
| 935 } | 937 } |
| 936 | 938 |
| 937 TrackedLayoutBoxListHashSet* LayoutBlock::PositionedObjectsInternal() const { | 939 TrackedLayoutBoxListHashSet* LayoutBlock::PositionedObjectsInternal() const { |
| 938 return g_positioned_descendants_map ? g_positioned_descendants_map->at(this) | 940 return g_positioned_descendants_map ? g_positioned_descendants_map->at(this) |
| 939 : nullptr; | 941 : nullptr; |
| 940 } | 942 } |
| 941 | 943 |
| 942 void LayoutBlock::InsertPositionedObject(LayoutBox* o) { | 944 void LayoutBlock::InsertPositionedObject(LayoutBox* o) { |
| 943 DCHECK(!IsAnonymousBlock()); | 945 DCHECK(!IsAnonymousBlock()); |
| 944 DCHECK_EQ(o->ContainingBlock(), this); | 946 DCHECK_EQ(o->ContainingBlock(), this); |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2196 bool LayoutBlock::HasDefiniteLogicalHeight() const { | 2198 bool LayoutBlock::HasDefiniteLogicalHeight() const { |
| 2197 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); | 2199 return AvailableLogicalHeightForPercentageComputation() != LayoutUnit(-1); |
| 2198 } | 2200 } |
| 2199 | 2201 |
| 2200 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { | 2202 bool LayoutBlock::NeedsPreferredWidthsRecalculation() const { |
| 2201 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || | 2203 return (HasRelativeLogicalHeight() && Style()->LogicalWidth().IsAuto()) || |
| 2202 LayoutBox::NeedsPreferredWidthsRecalculation(); | 2204 LayoutBox::NeedsPreferredWidthsRecalculation(); |
| 2203 } | 2205 } |
| 2204 | 2206 |
| 2205 } // namespace blink | 2207 } // namespace blink |
| OLD | NEW |