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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } | 165 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } |
166 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } | 166 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } |
167 | 167 |
168 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } | 168 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } |
169 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } | 169 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } |
170 | 170 |
171 bool hasMarginBeforeQuirk(const LayoutBox* child) const; | 171 bool hasMarginBeforeQuirk(const LayoutBox* child) const; |
172 bool hasMarginAfterQuirk(const LayoutBox* child) const; | 172 bool hasMarginAfterQuirk(const LayoutBox* child) const; |
173 | 173 |
174 void markPositionedObjectsForLayout(); | 174 void markPositionedObjectsForLayout(); |
175 // FIXME: Do we really need this to be virtual? It's just so we can call thi
s on | |
176 // LayoutBoxes without needed to check whether they're LayoutBlocks first. | |
177 void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&) final; | |
178 | 175 |
179 LayoutUnit textIndentOffset() const; | 176 LayoutUnit textIndentOffset() const; |
180 | 177 |
181 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 178 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
182 | 179 |
183 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 180 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; |
184 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 181 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; |
185 | 182 |
186 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 183 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; |
187 | 184 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 // TODO(lunalu): Temporary in order to ensure compatibility with existing la
yout test | 419 // TODO(lunalu): Temporary in order to ensure compatibility with existing la
yout test |
423 // results. | 420 // results. |
424 virtual void adjustChildDebugRect(LayoutRect&) const {} | 421 virtual void adjustChildDebugRect(LayoutRect&) const {} |
425 }; | 422 }; |
426 | 423 |
427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 424 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
428 | 425 |
429 } // namespace blink | 426 } // namespace blink |
430 | 427 |
431 #endif // LayoutBlock_h | 428 #endif // LayoutBlock_h |
OLD | NEW |