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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor Content(); } | 219 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor Content(); } |
220 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC ontent(); } | 220 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC ontent(); } |
221 | 221 |
222 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; | 222 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; |
223 virtual LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; | 223 virtual LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; |
224 | 224 |
225 #if ENABLE(ASSERT) | 225 #if ENABLE(ASSERT) |
226 void checkPositionedObjectsNeedLayout(); | 226 void checkPositionedObjectsNeedLayout(); |
227 #endif | 227 #endif |
228 | 228 |
229 LayoutUnit availableLogicalHeightForPercentageComputation() const; | |
cbiesinger
2016/08/25 21:50:23
Upon re-reading this patch, I really think this ne
Manuel Rego
2016/08/29 11:08:54
We want to be able to call this function directly
| |
230 bool hasDefiniteLogicalHeight() const; | |
cbiesinger
2016/08/25 21:50:22
..and that previous point makes me think this func
| |
231 | |
229 protected: | 232 protected: |
230 bool recalcNormalFlowChildOverflowIfNeeded(LayoutObject*); | 233 bool recalcNormalFlowChildOverflowIfNeeded(LayoutObject*); |
231 bool recalcPositionedDescendantsOverflowAfterStyleChange(); | 234 bool recalcPositionedDescendantsOverflowAfterStyleChange(); |
232 public: | 235 public: |
233 virtual bool recalcChildOverflowAfterStyleChange(); | 236 virtual bool recalcChildOverflowAfterStyleChange(); |
234 bool recalcOverflowAfterStyleChange(); | 237 bool recalcOverflowAfterStyleChange(); |
235 | 238 |
236 // An example explaining layout tree structure about first-line style: | 239 // An example explaining layout tree structure about first-line style: |
237 // <style> | 240 // <style> |
238 // #enclosingFirstLineStyleBlock::first-line { ... } | 241 // #enclosingFirstLineStyleBlock::first-line { ... } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
418 // This is necessary for now for interoperability between the old and new | 421 // This is necessary for now for interoperability between the old and new |
419 // layout code. Primarily for calling layoutPositionedObjects at the moment. | 422 // layout code. Primarily for calling layoutPositionedObjects at the moment. |
420 friend class NGBox; | 423 friend class NGBox; |
421 }; | 424 }; |
422 | 425 |
423 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 426 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
424 | 427 |
425 } // namespace blink | 428 } // namespace blink |
426 | 429 |
427 #endif // LayoutBlock_h | 430 #endif // LayoutBlock_h |
OLD | NEW |