| 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-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 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 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 using LayoutBlock::firstLineBox; | 129 using LayoutBlock::firstLineBox; |
| 130 using LayoutBlock::lastLineBox; | 130 using LayoutBlock::lastLineBox; |
| 131 using LayoutBlock::firstRootBox; | 131 using LayoutBlock::firstRootBox; |
| 132 using LayoutBlock::lastRootBox; | 132 using LayoutBlock::lastRootBox; |
| 133 | 133 |
| 134 LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUn
it position) const override; | 134 LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUn
it position) const override; |
| 135 LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutU
nit position) const override; | 135 LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutU
nit position) const override; |
| 136 | 136 |
| 137 RootInlineBox* createAndAppendRootInlineBox(); | 137 RootInlineBox* createAndAppendRootInlineBox(); |
| 138 | 138 |
| 139 // Return the number of lines in *this* block flow. Does not recurse into bl
ock flow children. |
| 140 // Will start counting from the first line, and stop counting right after |s
topRootInlineBox|, |
| 141 // if specified. |
| 142 int lineCount(const RootInlineBox* stopRootInlineBox = nullptr) const; |
| 143 |
| 139 void removeFloatingObjectsFromDescendants(); | 144 void removeFloatingObjectsFromDescendants(); |
| 140 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullpt
r, bool inLayout = true); | 145 void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullpt
r, bool inLayout = true); |
| 141 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr); | 146 void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr); |
| 142 | 147 |
| 143 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } | 148 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } |
| 144 bool containsFloat(LayoutBox*) const; | 149 bool containsFloat(LayoutBox*) const; |
| 145 | 150 |
| 146 void removeFloatingObjects(); | 151 void removeFloatingObjects(); |
| 147 | 152 |
| 148 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; | 153 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 | 612 |
| 608 // END METHODS DEFINED IN LayoutBlockFlowLine | 613 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 609 | 614 |
| 610 }; | 615 }; |
| 611 | 616 |
| 612 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 617 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 613 | 618 |
| 614 } // namespace blink | 619 } // namespace blink |
| 615 | 620 |
| 616 #endif // LayoutBlockFlow_h | 621 #endif // LayoutBlockFlow_h |
| OLD | NEW |