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

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: Rebase 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
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/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 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 if (UNLIKELY(inlineBoxWrapper() != 0)) 805 if (UNLIKELY(inlineBoxWrapper() != 0))
806 deleteLineBoxWrapper(); 806 deleteLineBoxWrapper();
807 } 807 }
808 808
809 ensureRareData().m_inlineBoxWrapper = boxWrapper; 809 ensureRareData().m_inlineBoxWrapper = boxWrapper;
810 } 810 }
811 811
812 } // namespace blink 812 } // namespace blink
813 813
814 #endif // RenderBox_h 814 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698