| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 180 | 180 | 
| 181     PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 181     PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 
| 182 | 182 | 
| 183     LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 183     LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 
| 184     LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 184     LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 
| 185 | 185 | 
| 186     LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 186     LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 
| 187 | 187 | 
| 188     void setSelectionState(SelectionState) override; | 188     void setSelectionState(SelectionState) override; | 
| 189 | 189 | 
| 190     static LayoutBlock* createAnonymousWithParentAndDisplay(const LayoutObject*,
      EDisplay = BLOCK); | 190     static LayoutBlock* createAnonymousWithParentAndDisplay(const LayoutObject*,
      EDisplay = EDisplay::Block); | 
| 191     LayoutBlock* createAnonymousBlock(EDisplay display = BLOCK) const { return c
     reateAnonymousWithParentAndDisplay(this, display); } | 191     LayoutBlock* createAnonymousBlock(EDisplay display = EDisplay::Block) const 
     { return createAnonymousWithParentAndDisplay(this, display); } | 
| 192 | 192 | 
| 193     LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) cons
     t override; | 193     LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) cons
     t override; | 
| 194 | 194 | 
| 195     int columnGap() const; | 195     int columnGap() const; | 
| 196 | 196 | 
| 197     // Accessors for logical width/height and margins in the containing block's 
     block-flow direction. | 197     // Accessors for logical width/height and margins in the containing block's 
     block-flow direction. | 
| 198     LayoutUnit logicalWidthForChild(const LayoutBox& child) const { return logic
     alWidthForChildSize(child.size()); } | 198     LayoutUnit logicalWidthForChild(const LayoutBox& child) const { return logic
     alWidthForChildSize(child.size()); } | 
| 199     LayoutUnit logicalWidthForChildSize(LayoutSize childSize) const { return isH
     orizontalWritingMode() ? childSize.width() : childSize.height(); } | 199     LayoutUnit logicalWidthForChildSize(LayoutSize childSize) const { return isH
     orizontalWritingMode() ? childSize.width() : childSize.height(); } | 
| 200     LayoutUnit logicalHeightForChild(const LayoutBox& child) const { return isHo
     rizontalWritingMode() ? child.size().height() : child.size().width(); } | 200     LayoutUnit logicalHeightForChild(const LayoutBox& child) const { return isHo
     rizontalWritingMode() ? child.size().height() : child.size().width(); } | 
| 201     LayoutSize logicalSizeForChild(const LayoutBox& child) const { return isHori
     zontalWritingMode() ? child.size() : child.size().transposedSize(); } | 201     LayoutSize logicalSizeForChild(const LayoutBox& child) const { return isHori
     zontalWritingMode() ? child.size() : child.size().transposedSize(); } | 
| (...skipping 220 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 | 422     // TODO(lunalu): Temporary in order to ensure compatibility with existing la
     yout test | 
| 423     // results. | 423     // results. | 
| 424     virtual void adjustChildDebugRect(LayoutRect&) const {} | 424     virtual void adjustChildDebugRect(LayoutRect&) const {} | 
| 425 }; | 425 }; | 
| 426 | 426 | 
| 427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 
| 428 | 428 | 
| 429 } // namespace blink | 429 } // namespace blink | 
| 430 | 430 | 
| 431 #endif // LayoutBlock_h | 431 #endif // LayoutBlock_h | 
| OLD | NEW | 
|---|