Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: Source/WebCore/rendering/RenderBox.h

Issue 12641003: Merge 144350 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 IntRect absoluteContentBox() const; 155 IntRect absoluteContentBox() const;
156 // The content box converted to absolute coords (taking transforms into acco unt). 156 // The content box converted to absolute coords (taking transforms into acco unt).
157 FloatQuad absoluteContentQuad() const; 157 FloatQuad absoluteContentQuad() const;
158 158
159 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect 159 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect
160 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle). 160 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle).
161 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); } 161 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); }
162 162
163 // Bounds of the outline box in absolute coords. Respects transforms 163 // Bounds of the outline box in absolute coords. Respects transforms
164 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*r epaintContainer*/, const RenderGeometryMap*) const OVERRIDE; 164 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*r epaintContainer*/, const RenderGeometryMap*) const OVERRIDE;
165 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&); 165 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE;
166 166
167 // Use this with caution! No type checking is done! 167 // Use this with caution! No type checking is done!
168 RenderBox* previousSiblingBox() const; 168 RenderBox* previousSiblingBox() const;
169 RenderBox* nextSiblingBox() const; 169 RenderBox* nextSiblingBox() const;
170 RenderBox* parentBox() const; 170 RenderBox* parentBox() const;
171 171
172 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions. 172 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions.
173 // For horizontal-tb and vertical-lr they will match physical directions, bu t for horizontal-bt and vertical-rl, the top/bottom and left/right 173 // For horizontal-tb and vertical-lr they will match physical directions, bu t for horizontal-bt and vertical-rl, the top/bottom and left/right
174 // respectively are flipped when compared to their physical counterparts. F or example minX is on the left in vertical-lr, 174 // respectively are flipped when compared to their physical counterparts. F or example minX is on the left in vertical-lr,
175 // but it is on the right in vertical-rl. 175 // but it is on the right in vertical-rl.
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 } 727 }
728 728
729 inline RenderBox* RenderBox::lastChildBox() const 729 inline RenderBox* RenderBox::lastChildBox() const
730 { 730 {
731 return toRenderBox(lastChild()); 731 return toRenderBox(lastChild());
732 } 732 }
733 733
734 } // namespace WebCore 734 } // namespace WebCore
735 735
736 #endif // RenderBox_h 736 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698