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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } | 185 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } |
186 // The content box in absolute coords. Ignores transforms. | 186 // The content box in absolute coords. Ignores transforms. |
187 IntRect absoluteContentBox() const; | 187 IntRect absoluteContentBox() const; |
188 // The content box converted to absolute coords (taking transforms into acco
unt). | 188 // The content box converted to absolute coords (taking transforms into acco
unt). |
189 FloatQuad absoluteContentQuad() const; | 189 FloatQuad absoluteContentQuad() const; |
190 | 190 |
191 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 191 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
192 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 192 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
193 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } | 193 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } |
194 | 194 |
195 // Bounds of the outline box in absolute coords. Respects transforms | |
196 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*r
epaintContainer*/, const RenderGeometryMap*) const OVERRIDE FINAL; | |
197 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; | 195 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; |
198 | 196 |
199 // Use this with caution! No type checking is done! | 197 // Use this with caution! No type checking is done! |
200 RenderBox* previousSiblingBox() const; | 198 RenderBox* previousSiblingBox() const; |
201 RenderBox* nextSiblingBox() const; | 199 RenderBox* nextSiblingBox() const; |
202 RenderBox* parentBox() const; | 200 RenderBox* parentBox() const; |
203 | 201 |
204 bool canResize() const; | 202 bool canResize() const; |
205 | 203 |
206 // Visual and layout overflow are in the coordinate space of the box. This
means that they aren't purely physical directions. | 204 // Visual and layout overflow are in the coordinate space of the box. This
means that they aren't purely physical directions. |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 if (UNLIKELY(inlineBoxWrapper() != 0)) | 776 if (UNLIKELY(inlineBoxWrapper() != 0)) |
779 deleteLineBoxWrapper(); | 777 deleteLineBoxWrapper(); |
780 } | 778 } |
781 | 779 |
782 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 780 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
783 } | 781 } |
784 | 782 |
785 } // namespace WebCore | 783 } // namespace WebCore |
786 | 784 |
787 #endif // RenderBox_h | 785 #endif // RenderBox_h |
OLD | NEW |