| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 LayoutUnit borderAndPaddingAfter() const { return borderAfter() + paddingAft
er(); } | 227 LayoutUnit borderAndPaddingAfter() const { return borderAfter() + paddingAft
er(); } |
| 228 LayoutUnit borderAndPaddingOver() const { return borderOver() + paddingOver(
); } | 228 LayoutUnit borderAndPaddingOver() const { return borderOver() + paddingOver(
); } |
| 229 LayoutUnit borderAndPaddingUnder() const { return borderUnder() + paddingUnd
er(); } | 229 LayoutUnit borderAndPaddingUnder() const { return borderUnder() + paddingUnd
er(); } |
| 230 | 230 |
| 231 LayoutUnit borderAndPaddingHeight() const { return borderTop() + borderBotto
m() + paddingTop() + paddingBottom(); } | 231 LayoutUnit borderAndPaddingHeight() const { return borderTop() + borderBotto
m() + paddingTop() + paddingBottom(); } |
| 232 LayoutUnit borderAndPaddingWidth() const { return borderLeft() + borderRight
() + paddingLeft() + paddingRight(); } | 232 LayoutUnit borderAndPaddingWidth() const { return borderLeft() + borderRight
() + paddingLeft() + paddingRight(); } |
| 233 LayoutUnit borderAndPaddingLogicalHeight() const { return hasBorderOrPadding
() ? borderAndPaddingBefore() + borderAndPaddingAfter() : LayoutUnit(); } | 233 LayoutUnit borderAndPaddingLogicalHeight() const { return hasBorderOrPadding
() ? borderAndPaddingBefore() + borderAndPaddingAfter() : LayoutUnit(); } |
| 234 LayoutUnit borderAndPaddingLogicalWidth() const { return borderStart() + bor
derEnd() + paddingStart() + paddingEnd(); } | 234 LayoutUnit borderAndPaddingLogicalWidth() const { return borderStart() + bor
derEnd() + paddingStart() + paddingEnd(); } |
| 235 LayoutUnit borderAndPaddingLogicalLeft() const { return style()->isHorizonta
lWritingMode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } | 235 LayoutUnit borderAndPaddingLogicalLeft() const { return style()->isHorizonta
lWritingMode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
| 236 | 236 |
| 237 LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMo
de() ? borderLeft() : borderTop(); } | 237 LayoutUnit borderLogicalLeft() const { return LayoutUnit(style()->isHorizont
alWritingMode() ? borderLeft() : borderTop()); } |
| 238 | 238 |
| 239 LayoutUnit paddingLogicalWidth() const { return paddingStart() + paddingEnd(
); } | 239 LayoutUnit paddingLogicalWidth() const { return paddingStart() + paddingEnd(
); } |
| 240 LayoutUnit paddingLogicalHeight() const { return paddingBefore() + paddingAf
ter(); } | 240 LayoutUnit paddingLogicalHeight() const { return paddingBefore() + paddingAf
ter(); } |
| 241 | 241 |
| 242 virtual LayoutRectOutsets marginBoxOutsets() const = 0; | 242 virtual LayoutRectOutsets marginBoxOutsets() const = 0; |
| 243 virtual LayoutUnit marginTop() const = 0; | 243 virtual LayoutUnit marginTop() const = 0; |
| 244 virtual LayoutUnit marginBottom() const = 0; | 244 virtual LayoutUnit marginBottom() const = 0; |
| 245 virtual LayoutUnit marginLeft() const = 0; | 245 virtual LayoutUnit marginLeft() const = 0; |
| 246 virtual LayoutUnit marginRight() const = 0; | 246 virtual LayoutUnit marginRight() const = 0; |
| 247 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = nullptr) c
onst = 0; | 247 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = nullptr) c
onst = 0; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // The PaintLayer associated with this object. | 366 // The PaintLayer associated with this object. |
| 367 // |m_layer| can be nullptr depending on the return value of layerTypeRequir
ed(). | 367 // |m_layer| can be nullptr depending on the return value of layerTypeRequir
ed(). |
| 368 OwnPtr<PaintLayer> m_layer; | 368 OwnPtr<PaintLayer> m_layer; |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 372 | 372 |
| 373 } // namespace blink | 373 } // namespace blink |
| 374 | 374 |
| 375 #endif // LayoutBoxModelObject_h | 375 #endif // LayoutBoxModelObject_h |
| OLD | NEW |