| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 IntRect absoluteContentBox() const; | 235 IntRect absoluteContentBox() const; |
| 236 // The offset of the content box in absolute coords, ignoring transforms. | 236 // The offset of the content box in absolute coords, ignoring transforms. |
| 237 IntSize absoluteContentBoxOffset() const; | 237 IntSize absoluteContentBoxOffset() const; |
| 238 // The content box converted to absolute coords (taking transforms into acco
unt). | 238 // The content box converted to absolute coords (taking transforms into acco
unt). |
| 239 FloatQuad absoluteContentQuad() const; | 239 FloatQuad absoluteContentQuad() const; |
| 240 | 240 |
| 241 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 241 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
| 242 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 242 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
| 243 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } | 243 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } |
| 244 | 244 |
| 245 void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& additionalOff
set) const override; | 245 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t) const override; |
| 246 | 246 |
| 247 // Use this with caution! No type checking is done! | 247 // Use this with caution! No type checking is done! |
| 248 LayoutBox* previousSiblingBox() const; | 248 LayoutBox* previousSiblingBox() const; |
| 249 LayoutBox* previousInFlowSiblingBox() const; | 249 LayoutBox* previousInFlowSiblingBox() const; |
| 250 LayoutBox* nextSiblingBox() const; | 250 LayoutBox* nextSiblingBox() const; |
| 251 LayoutBox* nextInFlowSiblingBox() const; | 251 LayoutBox* nextInFlowSiblingBox() const; |
| 252 LayoutBox* parentBox() const; | 252 LayoutBox* parentBox() const; |
| 253 | 253 |
| 254 // Return the previous sibling column set or spanner placeholder. Only to be
used on multicol container children. | 254 // Return the previous sibling column set or spanner placeholder. Only to be
used on multicol container children. |
| 255 LayoutBox* previousSiblingMultiColumnBox() const; | 255 LayoutBox* previousSiblingMultiColumnBox() const; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 931 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
| 932 deleteLineBoxWrapper(); | 932 deleteLineBoxWrapper(); |
| 933 } | 933 } |
| 934 | 934 |
| 935 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 935 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 936 } | 936 } |
| 937 | 937 |
| 938 } // namespace blink | 938 } // namespace blink |
| 939 | 939 |
| 940 #endif // LayoutBox_h | 940 #endif // LayoutBox_h |
| OLD | NEW |