| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra
meRect.pixelSnappedSize()); } | 165 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra
meRect.pixelSnappedSize()); } |
| 166 virtual IntRect borderBoundingBox() const override final { return pixelSnapp
edBorderBoxRect(); } | 166 virtual IntRect borderBoundingBox() const override final { return pixelSnapp
edBorderBoxRect(); } |
| 167 | 167 |
| 168 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). | 168 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). |
| 169 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } | 169 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } |
| 170 // The content box in absolute coords. Ignores transforms. | 170 // The content box in absolute coords. Ignores transforms. |
| 171 IntRect absoluteContentBox() const; | 171 IntRect absoluteContentBox() const; |
| 172 // The content box converted to absolute coords (taking transforms into acco
unt). | 172 // The content box converted to absolute coords (taking transforms into acco
unt). |
| 173 FloatQuad absoluteContentQuad() const; | 173 FloatQuad absoluteContentQuad() const; |
| 174 | 174 |
| 175 FloatPoint perspectiveOrigin() const; |
| 176 |
| 175 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 177 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
| 176 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 178 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
| 177 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } | 179 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } |
| 178 | 180 |
| 179 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderBox* paintContainer = 0) const override; | 181 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderBox* paintContainer = 0) const override; |
| 180 | 182 |
| 181 // Use this with caution! No type checking is done! | 183 // Use this with caution! No type checking is done! |
| 182 RenderBox* previousSiblingBox() const; | 184 RenderBox* previousSiblingBox() const; |
| 183 RenderBox* nextSiblingBox() const; | 185 RenderBox* nextSiblingBox() const; |
| 184 RenderBox* parentBox() const; | 186 RenderBox* parentBox() const; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 if (UNLIKELY(inlineBoxWrapper() != 0)) | 598 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 597 deleteLineBoxWrapper(); | 599 deleteLineBoxWrapper(); |
| 598 } | 600 } |
| 599 | 601 |
| 600 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 602 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 601 } | 603 } |
| 602 | 604 |
| 603 } // namespace blink | 605 } // namespace blink |
| 604 | 606 |
| 605 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 607 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |