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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void move(LayoutUnit dx, LayoutUnit dy) { m_frameRect.move(dx, dy); } | 148 void move(LayoutUnit dx, LayoutUnit dy) { m_frameRect.move(dx, dy); } |
149 | 149 |
150 LayoutRect frameRect() const { return m_frameRect; } | 150 LayoutRect frameRect() const { return m_frameRect; } |
151 IntRect pixelSnappedFrameRect() const { return pixelSnappedIntRect(m_frameRe
ct); } | 151 IntRect pixelSnappedFrameRect() const { return pixelSnappedIntRect(m_frameRe
ct); } |
152 void setFrameRect(const LayoutRect& rect) { m_frameRect = rect; } | 152 void setFrameRect(const LayoutRect& rect) { m_frameRect = rect; } |
153 | 153 |
154 LayoutRect borderBoxRect() const { return LayoutRect(LayoutPoint(), size());
} | 154 LayoutRect borderBoxRect() const { return LayoutRect(LayoutPoint(), size());
} |
155 LayoutRect paddingBoxRect() const { return LayoutRect(borderLeft(), borderTo
p(), contentWidth() + paddingLeft() + paddingRight(), contentHeight() + paddingT
op() + paddingBottom()); } | 155 LayoutRect paddingBoxRect() const { return LayoutRect(borderLeft(), borderTo
p(), contentWidth() + paddingLeft() + paddingRight(), contentHeight() + paddingT
op() + paddingBottom()); } |
156 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra
meRect.pixelSnappedSize()); } | 156 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra
meRect.pixelSnappedSize()); } |
157 virtual IntRect borderBoundingBox() const OVERRIDE FINAL { return pixelSnapp
edBorderBoxRect(); } | 157 virtual IntRect borderBoundingBox() const OVERRIDE FINAL { return pixelSnapp
edBorderBoxRect(); } |
| 158 virtual bool collapseBorders() const { return false; } |
158 | 159 |
159 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). | 160 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). |
160 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } | 161 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } |
161 // The content box in absolute coords. Ignores transforms. | 162 // The content box in absolute coords. Ignores transforms. |
162 IntRect absoluteContentBox() const; | 163 IntRect absoluteContentBox() const; |
163 // The content box converted to absolute coords (taking transforms into acco
unt). | 164 // The content box converted to absolute coords (taking transforms into acco
unt). |
164 FloatQuad absoluteContentQuad() const; | 165 FloatQuad absoluteContentQuad() const; |
165 | 166 |
166 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 167 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
167 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 168 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 756 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
756 deleteLineBoxWrapper(); | 757 deleteLineBoxWrapper(); |
757 } | 758 } |
758 | 759 |
759 m_inlineBoxWrapper = boxWrapper; | 760 m_inlineBoxWrapper = boxWrapper; |
760 } | 761 } |
761 | 762 |
762 } // namespace WebCore | 763 } // namespace WebCore |
763 | 764 |
764 #endif // RenderBox_h | 765 #endif // RenderBox_h |
OLD | NEW |