| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 virtual LayoutRect visualOverflowRect() const = 0; | 191 virtual LayoutRect visualOverflowRect() const = 0; |
| 192 | 192 |
| 193 // Checks if this box, or any of it's descendants, or any of it's | 193 // Checks if this box, or any of it's descendants, or any of it's |
| 194 // continuations, will take up space in the layout of the page. | 194 // continuations, will take up space in the layout of the page. |
| 195 bool hasNonEmptyLayoutSize() const; | 195 bool hasNonEmptyLayoutSize() const; |
| 196 bool usesCompositedScrolling() const; | 196 bool usesCompositedScrolling() const; |
| 197 | 197 |
| 198 // Returns which layers backgrounds should be painted into for overflow | 198 // Returns which layers backgrounds should be painted into for overflow |
| 199 // scrolling boxes. | 199 // scrolling boxes. |
| 200 BackgroundPaintLocation backgroundPaintLocation() const; | 200 // TODO(yigu): PaintLayerScrollableArea::computeNeedsCompositedScrolling may |
| 201 // call this method directly to obtain main thread scrolling reasons due to |
| 202 // background paint location. Once the cases get handled on compositor the |
| 203 // parameter "reasons" could be removed. |
| 204 BackgroundPaintLocation backgroundPaintLocation( |
| 205 uint32_t* reasons = nullptr) const; |
| 201 | 206 |
| 202 // These return the CSS computed padding values. | 207 // These return the CSS computed padding values. |
| 203 LayoutUnit computedCSSPaddingTop() const { | 208 LayoutUnit computedCSSPaddingTop() const { |
| 204 return computedCSSPadding(style()->paddingTop()); | 209 return computedCSSPadding(style()->paddingTop()); |
| 205 } | 210 } |
| 206 LayoutUnit computedCSSPaddingBottom() const { | 211 LayoutUnit computedCSSPaddingBottom() const { |
| 207 return computedCSSPadding(style()->paddingBottom()); | 212 return computedCSSPadding(style()->paddingBottom()); |
| 208 } | 213 } |
| 209 LayoutUnit computedCSSPaddingLeft() const { | 214 LayoutUnit computedCSSPaddingLeft() const { |
| 210 return computedCSSPadding(style()->paddingLeft()); | 215 return computedCSSPadding(style()->paddingLeft()); |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 std::unique_ptr<PaintLayer> m_layer; | 531 std::unique_ptr<PaintLayer> m_layer; |
| 527 | 532 |
| 528 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; | 533 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; |
| 529 }; | 534 }; |
| 530 | 535 |
| 531 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 536 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 532 | 537 |
| 533 } // namespace blink | 538 } // namespace blink |
| 534 | 539 |
| 535 #endif // LayoutBoxModelObject_h | 540 #endif // LayoutBoxModelObject_h |
| OLD | NEW |