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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 203 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; |
204 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 204 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; |
205 | 205 |
206 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 206 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; |
207 | 207 |
208 void setSelectionState(SelectionState) override; | 208 void setSelectionState(SelectionState) override; |
209 | 209 |
210 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect) const; | 210 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect) const; |
211 | 211 |
212 // Helper methods for computing line counts and heights for line counts. | |
213 RootInlineBox* lineAtIndex(int) const; | |
214 int lineCount(const RootInlineBox* = nullptr, bool* = nullptr) const; | |
215 int heightForLineCount(int lineCount); | |
216 void clearTruncation(); | |
217 | |
218 LayoutBoxModelObject* virtualContinuation() const final { return continuatio
n(); } | 212 LayoutBoxModelObject* virtualContinuation() const final { return continuatio
n(); } |
219 bool isAnonymousBlockContinuation() const { return continuation() && isAnony
mousBlock(); } | 213 bool isAnonymousBlockContinuation() const { return continuation() && isAnony
mousBlock(); } |
220 LayoutInline* inlineElementContinuation() const; | 214 LayoutInline* inlineElementContinuation() const; |
221 | 215 |
222 using LayoutBoxModelObject::continuation; | 216 using LayoutBoxModelObject::continuation; |
223 using LayoutBoxModelObject::setContinuation; | 217 using LayoutBoxModelObject::setContinuation; |
224 | 218 |
225 static LayoutBlock* createAnonymousWithParentAndDisplay(const LayoutObject*,
EDisplay = BLOCK); | 219 static LayoutBlock* createAnonymousWithParentAndDisplay(const LayoutObject*,
EDisplay = BLOCK); |
226 LayoutBlock* createAnonymousBlock(EDisplay display = BLOCK) const { return c
reateAnonymousWithParentAndDisplay(this, display); } | 220 LayoutBlock* createAnonymousBlock(EDisplay display = BLOCK) const { return c
reateAnonymousWithParentAndDisplay(this, display); } |
227 | 221 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 // FIXME: This is temporary as we move code that accesses block flow | 508 // FIXME: This is temporary as we move code that accesses block flow |
515 // member variables out of LayoutBlock and into LayoutBlockFlow. | 509 // member variables out of LayoutBlock and into LayoutBlockFlow. |
516 friend class LayoutBlockFlow; | 510 friend class LayoutBlockFlow; |
517 }; | 511 }; |
518 | 512 |
519 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 513 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
520 | 514 |
521 } // namespace blink | 515 } // namespace blink |
522 | 516 |
523 #endif // LayoutBlock_h | 517 #endif // LayoutBlock_h |
OLD | NEW |