| 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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual void updateFromStyle(); | 98 virtual void updateFromStyle(); |
| 99 | 99 |
| 100 virtual DeprecatedPaintLayerType layerTypeRequired() const = 0; | 100 virtual DeprecatedPaintLayerType layerTypeRequired() const = 0; |
| 101 | 101 |
| 102 // This will work on inlines to return the bounding box of all of the lines'
border boxes. | 102 // This will work on inlines to return the bounding box of all of the lines'
border boxes. |
| 103 virtual IntRect borderBoundingBox() const = 0; | 103 virtual IntRect borderBoundingBox() const = 0; |
| 104 | 104 |
| 105 // Checks if this box, or any of it's descendants, or any of it's continuati
ons, | 105 // Checks if this box, or any of it's descendants, or any of it's continuati
ons, |
| 106 // will take up space in the layout of the page. | 106 // will take up space in the layout of the page. |
| 107 bool hasNonEmptyLayoutSize() const; | 107 bool hasNonEmptyLayoutSize() const; |
| 108 bool usesCompositedScrolling() const; |
| 108 | 109 |
| 109 // These return the CSS computed padding values. | 110 // These return the CSS computed padding values. |
| 110 LayoutUnit computedCSSPaddingTop() const { return computedCSSPadding(style()
->paddingTop()); } | 111 LayoutUnit computedCSSPaddingTop() const { return computedCSSPadding(style()
->paddingTop()); } |
| 111 LayoutUnit computedCSSPaddingBottom() const { return computedCSSPadding(styl
e()->paddingBottom()); } | 112 LayoutUnit computedCSSPaddingBottom() const { return computedCSSPadding(styl
e()->paddingBottom()); } |
| 112 LayoutUnit computedCSSPaddingLeft() const { return computedCSSPadding(style(
)->paddingLeft()); } | 113 LayoutUnit computedCSSPaddingLeft() const { return computedCSSPadding(style(
)->paddingLeft()); } |
| 113 LayoutUnit computedCSSPaddingRight() const { return computedCSSPadding(style
()->paddingRight()); } | 114 LayoutUnit computedCSSPaddingRight() const { return computedCSSPadding(style
()->paddingRight()); } |
| 114 LayoutUnit computedCSSPaddingBefore() const { return computedCSSPadding(styl
e()->paddingBefore()); } | 115 LayoutUnit computedCSSPaddingBefore() const { return computedCSSPadding(styl
e()->paddingBefore()); } |
| 115 LayoutUnit computedCSSPaddingAfter() const { return computedCSSPadding(style
()->paddingAfter()); } | 116 LayoutUnit computedCSSPaddingAfter() const { return computedCSSPadding(style
()->paddingAfter()); } |
| 116 LayoutUnit computedCSSPaddingStart() const { return computedCSSPadding(style
()->paddingStart()); } | 117 LayoutUnit computedCSSPaddingStart() const { return computedCSSPadding(style
()->paddingStart()); } |
| 117 LayoutUnit computedCSSPaddingEnd() const { return computedCSSPadding(style()
->paddingEnd()); } | 118 LayoutUnit computedCSSPaddingEnd() const { return computedCSSPadding(style()
->paddingEnd()); } |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 bool isBoxModelObject() const final { return true; } | 271 bool isBoxModelObject() const final { return true; } |
| 271 | 272 |
| 272 OwnPtr<DeprecatedPaintLayer> m_layer; | 273 OwnPtr<DeprecatedPaintLayer> m_layer; |
| 273 }; | 274 }; |
| 274 | 275 |
| 275 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 276 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 276 | 277 |
| 277 } // namespace blink | 278 } // namespace blink |
| 278 | 279 |
| 279 #endif // LayoutBoxModelObject_h | 280 #endif // LayoutBoxModelObject_h |
| OLD | NEW |