| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 : borderBottom()); | 315 : borderBottom()); |
| 316 } | 316 } |
| 317 | 317 |
| 318 LayoutUnit paddingLogicalWidth() const { | 318 LayoutUnit paddingLogicalWidth() const { |
| 319 return paddingStart() + paddingEnd(); | 319 return paddingStart() + paddingEnd(); |
| 320 } | 320 } |
| 321 LayoutUnit paddingLogicalHeight() const { | 321 LayoutUnit paddingLogicalHeight() const { |
| 322 return paddingBefore() + paddingAfter(); | 322 return paddingBefore() + paddingAfter(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 LayoutUnit collapsedBorderAndCSSPaddingLogicalWidth() const { |
| 326 return computedCSSPaddingStart() + computedCSSPaddingEnd() + borderStart() + |
| 327 borderEnd(); |
| 328 } |
| 329 LayoutUnit collapsedBorderAndCSSPaddingLogicalHeight() const { |
| 330 return computedCSSPaddingBefore() + computedCSSPaddingAfter() + |
| 331 borderBefore() + borderAfter(); |
| 332 } |
| 333 |
| 325 virtual LayoutRectOutsets marginBoxOutsets() const = 0; | 334 virtual LayoutRectOutsets marginBoxOutsets() const = 0; |
| 326 virtual LayoutUnit marginTop() const = 0; | 335 virtual LayoutUnit marginTop() const = 0; |
| 327 virtual LayoutUnit marginBottom() const = 0; | 336 virtual LayoutUnit marginBottom() const = 0; |
| 328 virtual LayoutUnit marginLeft() const = 0; | 337 virtual LayoutUnit marginLeft() const = 0; |
| 329 virtual LayoutUnit marginRight() const = 0; | 338 virtual LayoutUnit marginRight() const = 0; |
| 330 virtual LayoutUnit marginBefore( | 339 virtual LayoutUnit marginBefore( |
| 331 const ComputedStyle* otherStyle = nullptr) const = 0; | 340 const ComputedStyle* otherStyle = nullptr) const = 0; |
| 332 virtual LayoutUnit marginAfter( | 341 virtual LayoutUnit marginAfter( |
| 333 const ComputedStyle* otherStyle = nullptr) const = 0; | 342 const ComputedStyle* otherStyle = nullptr) const = 0; |
| 334 virtual LayoutUnit marginStart( | 343 virtual LayoutUnit marginStart( |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 std::unique_ptr<PaintLayer> m_layer; | 525 std::unique_ptr<PaintLayer> m_layer; |
| 517 | 526 |
| 518 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; | 527 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; |
| 519 }; | 528 }; |
| 520 | 529 |
| 521 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 530 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 522 | 531 |
| 523 } // namespace blink | 532 } // namespace blink |
| 524 | 533 |
| 525 #endif // LayoutBoxModelObject_h | 534 #endif // LayoutBoxModelObject_h |
| OLD | NEW |