| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 virtual int borderTop() const { return style()->borderTopWidth(); } | 114 virtual int borderTop() const { return style()->borderTopWidth(); } |
| 115 virtual int borderBottom() const { return style()->borderBottomWidth(); } | 115 virtual int borderBottom() const { return style()->borderBottomWidth(); } |
| 116 virtual int borderLeft() const { return style()->borderLeftWidth(); } | 116 virtual int borderLeft() const { return style()->borderLeftWidth(); } |
| 117 virtual int borderRight() const { return style()->borderRightWidth(); } | 117 virtual int borderRight() const { return style()->borderRightWidth(); } |
| 118 virtual int borderBefore() const { return style()->borderBeforeWidth(); } | 118 virtual int borderBefore() const { return style()->borderBeforeWidth(); } |
| 119 virtual int borderAfter() const { return style()->borderAfterWidth(); } | 119 virtual int borderAfter() const { return style()->borderAfterWidth(); } |
| 120 virtual int borderStart() const { return style()->borderStartWidth(); } | 120 virtual int borderStart() const { return style()->borderStartWidth(); } |
| 121 virtual int borderEnd() const { return style()->borderEndWidth(); } | 121 virtual int borderEnd() const { return style()->borderEndWidth(); } |
| 122 | 122 |
| 123 LayoutUnit borderAndPaddingStart() const { return borderStart() + paddingSta
rt(); } |
| 124 LayoutUnit borderAndPaddingBefore() const { return borderBefore() + paddingB
efore(); } |
| 125 LayoutUnit borderAndPaddingAfter() const { return borderAfter() + paddingAft
er(); } |
| 126 |
| 123 LayoutUnit borderAndPaddingHeight() const { return borderTop() + borderBotto
m() + paddingTop() + paddingBottom(); } | 127 LayoutUnit borderAndPaddingHeight() const { return borderTop() + borderBotto
m() + paddingTop() + paddingBottom(); } |
| 124 LayoutUnit borderAndPaddingWidth() const { return borderLeft() + borderRight
() + paddingLeft() + paddingRight(); } | 128 LayoutUnit borderAndPaddingWidth() const { return borderLeft() + borderRight
() + paddingLeft() + paddingRight(); } |
| 125 LayoutUnit borderAndPaddingLogicalHeight() const { return borderBefore() + b
orderAfter() + paddingBefore() + paddingAfter(); } | 129 LayoutUnit borderAndPaddingLogicalHeight() const { return borderAndPaddingBe
fore() + borderAndPaddingAfter(); } |
| 126 LayoutUnit borderAndPaddingLogicalWidth() const { return borderStart() + bor
derEnd() + paddingStart() + paddingEnd(); } | 130 LayoutUnit borderAndPaddingLogicalWidth() const { return borderStart() + bor
derEnd() + paddingStart() + paddingEnd(); } |
| 127 LayoutUnit borderAndPaddingLogicalLeft() const { return style()->isHorizonta
lWritingMode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } | 131 LayoutUnit borderAndPaddingLogicalLeft() const { return style()->isHorizonta
lWritingMode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
| 128 | 132 |
| 129 LayoutUnit borderAndPaddingStart() const { return borderStart() + paddingSta
rt(); } | 133 |
| 130 LayoutUnit borderAndPaddingBefore() const { return borderBefore() + paddingB
efore(); } | |
| 131 LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMo
de() ? borderLeft() : borderTop(); } | 134 LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMo
de() ? borderLeft() : borderTop(); } |
| 132 LayoutUnit borderLogicalRight() const { return style()->isHorizontalWritingM
ode() ? borderRight() : borderBottom(); } | 135 LayoutUnit borderLogicalRight() const { return style()->isHorizontalWritingM
ode() ? borderRight() : borderBottom(); } |
| 133 | 136 |
| 134 LayoutUnit paddingLogicalLeft() const { return style()->isHorizontalWritingM
ode() ? paddingLeft() : paddingTop(); } | 137 LayoutUnit paddingLogicalLeft() const { return style()->isHorizontalWritingM
ode() ? paddingLeft() : paddingTop(); } |
| 135 LayoutUnit paddingLogicalRight() const { return style()->isHorizontalWriting
Mode() ? paddingRight() : paddingBottom(); } | 138 LayoutUnit paddingLogicalRight() const { return style()->isHorizontalWriting
Mode() ? paddingRight() : paddingBottom(); } |
| 136 | 139 |
| 137 virtual LayoutUnit marginTop() const = 0; | 140 virtual LayoutUnit marginTop() const = 0; |
| 138 virtual LayoutUnit marginBottom() const = 0; | 141 virtual LayoutUnit marginBottom() const = 0; |
| 139 virtual LayoutUnit marginLeft() const = 0; | 142 virtual LayoutUnit marginLeft() const = 0; |
| 140 virtual LayoutUnit marginRight() const = 0; | 143 virtual LayoutUnit marginRight() const = 0; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); | 334 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); |
| 332 return static_cast<const RenderBoxModelObject*>(object); | 335 return static_cast<const RenderBoxModelObject*>(object); |
| 333 } | 336 } |
| 334 | 337 |
| 335 // This will catch anyone doing an unnecessary cast. | 338 // This will catch anyone doing an unnecessary cast. |
| 336 void toRenderBoxModelObject(const RenderBoxModelObject*); | 339 void toRenderBoxModelObject(const RenderBoxModelObject*); |
| 337 | 340 |
| 338 } // namespace WebCore | 341 } // namespace WebCore |
| 339 | 342 |
| 340 #endif // RenderBoxModelObject_h | 343 #endif // RenderBoxModelObject_h |
| OLD | NEW |