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

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

Issue 711493004: Remove unnecessary paintContainer parameter from addFocusRingRects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } 172 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); }
173 // The content box in absolute coords. Ignores transforms. 173 // The content box in absolute coords. Ignores transforms.
174 IntRect absoluteContentBox() const; 174 IntRect absoluteContentBox() const;
175 // The content box converted to absolute coords (taking transforms into acco unt). 175 // The content box converted to absolute coords (taking transforms into acco unt).
176 FloatQuad absoluteContentQuad() const; 176 FloatQuad absoluteContentQuad() const;
177 177
178 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect 178 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect
179 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle). 179 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle).
180 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); } 180 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); }
181 181
182 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset, const RenderLayerModelObject* paintContainer) const override; 182 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const override;
183 183
184 // Use this with caution! No type checking is done! 184 // Use this with caution! No type checking is done!
185 RenderBox* previousSiblingBox() const; 185 RenderBox* previousSiblingBox() const;
186 RenderBox* nextSiblingBox() const; 186 RenderBox* nextSiblingBox() const;
187 RenderBox* parentBox() const; 187 RenderBox* parentBox() const;
188 188
189 bool canResize() const; 189 bool canResize() const;
190 190
191 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions. 191 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions.
192 // 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 192 // 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
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 if (UNLIKELY(inlineBoxWrapper() != 0)) 804 if (UNLIKELY(inlineBoxWrapper() != 0))
805 deleteLineBoxWrapper(); 805 deleteLineBoxWrapper();
806 } 806 }
807 807
808 ensureRareData().m_inlineBoxWrapper = boxWrapper; 808 ensureRareData().m_inlineBoxWrapper = boxWrapper;
809 } 809 }
810 810
811 } // namespace blink 811 } // namespace blink
812 812
813 #endif // RenderBox_h 813 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698