Chromium Code Reviews| 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 | 195 // Bounds of the outline box in absolute coords. Respects transforms |
|
leviw_travelin_and_unemployed
2014/03/25 04:40:58
You missed the comment :)
Julien - ping for review
2014/03/25 21:52:34
Done.
| |
| 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; | 196 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; |
| 198 | 197 |
| 199 // Use this with caution! No type checking is done! | 198 // Use this with caution! No type checking is done! |
| 200 RenderBox* previousSiblingBox() const; | 199 RenderBox* previousSiblingBox() const; |
| 201 RenderBox* nextSiblingBox() const; | 200 RenderBox* nextSiblingBox() const; |
| 202 RenderBox* parentBox() const; | 201 RenderBox* parentBox() const; |
| 203 | 202 |
| 204 bool canResize() const; | 203 bool canResize() const; |
| 205 | 204 |
| 206 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions. | 205 // 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)) | 777 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 779 deleteLineBoxWrapper(); | 778 deleteLineBoxWrapper(); |
| 780 } | 779 } |
| 781 | 780 |
| 782 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 781 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 783 } | 782 } |
| 784 | 783 |
| 785 } // namespace WebCore | 784 } // namespace WebCore |
| 786 | 785 |
| 787 #endif // RenderBox_h | 786 #endif // RenderBox_h |
| OLD | NEW |