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

Side by Side Diff: sky/engine/core/rendering/RenderBox.h

Issue 961053002: Assorted cleanup of RenderLayer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | sky/engine/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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra meRect.pixelSnappedSize()); } 165 IntRect pixelSnappedBorderBoxRect() const { return IntRect(IntPoint(), m_fra meRect.pixelSnappedSize()); }
166 virtual IntRect borderBoundingBox() const override final { return pixelSnapp edBorderBoxRect(); } 166 virtual IntRect borderBoundingBox() const override final { return pixelSnapp edBorderBoxRect(); }
167 167
168 // The content area of the box (excludes padding - and intrinsic padding for table cells, etc... - and border). 168 // The content area of the box (excludes padding - and intrinsic padding for table cells, etc... - and border).
169 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } 169 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); }
170 // The content box in absolute coords. Ignores transforms. 170 // The content box in absolute coords. Ignores transforms.
171 IntRect absoluteContentBox() const; 171 IntRect absoluteContentBox() const;
172 // The content box converted to absolute coords (taking transforms into acco unt). 172 // The content box converted to absolute coords (taking transforms into acco unt).
173 FloatQuad absoluteContentQuad() const; 173 FloatQuad absoluteContentQuad() const;
174 174
175 FloatPoint perspectiveOrigin() const;
176
175 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect 177 // This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect
176 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle). 178 // does include the intrinsic padding in the content box as this is what som e callers expect (like getComputedStyle).
177 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); } 179 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft( ) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth () - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp utedCSSPaddingTop() - computedCSSPaddingBottom()); }
178 180
179 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderBox* paintContainer = 0) const override; 181 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderBox* paintContainer = 0) const override;
180 182
181 // Use this with caution! No type checking is done! 183 // Use this with caution! No type checking is done!
182 RenderBox* previousSiblingBox() const; 184 RenderBox* previousSiblingBox() const;
183 RenderBox* nextSiblingBox() const; 185 RenderBox* nextSiblingBox() const;
184 RenderBox* parentBox() const; 186 RenderBox* parentBox() const;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 if (UNLIKELY(inlineBoxWrapper() != 0)) 598 if (UNLIKELY(inlineBoxWrapper() != 0))
597 deleteLineBoxWrapper(); 599 deleteLineBoxWrapper();
598 } 600 }
599 601
600 ensureRareData().m_inlineBoxWrapper = boxWrapper; 602 ensureRareData().m_inlineBoxWrapper = boxWrapper;
601 } 603 }
602 604
603 } // namespace blink 605 } // namespace blink
604 606
605 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 607 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698