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

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

Issue 689283003: Remove scroll corners and resizers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
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
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // 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).
179 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()); }
180 180
181 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) const override; 181 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) const override;
182 182
183 // Use this with caution! No type checking is done! 183 // Use this with caution! No type checking is done!
184 RenderBox* previousSiblingBox() const; 184 RenderBox* previousSiblingBox() const;
185 RenderBox* nextSiblingBox() const; 185 RenderBox* nextSiblingBox() const;
186 RenderBox* parentBox() const; 186 RenderBox* parentBox() const;
187 187
188 bool canResize() const;
189
190 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions. 188 // Visual and layout overflow are in the coordinate space of the box. This means that they aren't purely physical directions.
191 // 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 189 // 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 // respectively are flipped when compared to their physical counterparts. F or example minX is on the left in vertical-lr, 190 // respectively are flipped when compared to their physical counterparts. F or example minX is on the left in vertical-lr,
193 // but it is on the right in vertical-rl. 191 // but it is on the right in vertical-rl.
194 LayoutRect noOverflowRect() const; 192 LayoutRect noOverflowRect() const;
195 LayoutRect layoutOverflowRect() const { return m_overflow ? m_overflow->layo utOverflowRect() : noOverflowRect(); } 193 LayoutRect layoutOverflowRect() const { return m_overflow ? m_overflow->layo utOverflowRect() : noOverflowRect(); }
196 IntRect pixelSnappedLayoutOverflowRect() const { return pixelSnappedIntRect( layoutOverflowRect()); } 194 IntRect pixelSnappedLayoutOverflowRect() const { return pixelSnappedIntRect( layoutOverflowRect()); }
197 LayoutSize maxLayoutOverflow() const { return LayoutSize(layoutOverflowRect( ).maxX(), layoutOverflowRect().maxY()); } 195 LayoutSize maxLayoutOverflow() const { return LayoutSize(layoutOverflowRect( ).maxX(), layoutOverflowRect().maxY()); }
198 LayoutUnit logicalLeftLayoutOverflow() const { return layoutOverflowRect().x (); } 196 LayoutUnit logicalLeftLayoutOverflow() const { return layoutOverflowRect().x (); }
199 LayoutUnit logicalRightLayoutOverflow() const { return layoutOverflowRect(). maxX(); } 197 LayoutUnit logicalRightLayoutOverflow() const { return layoutOverflowRect(). maxX(); }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 if (UNLIKELY(inlineBoxWrapper() != 0)) 723 if (UNLIKELY(inlineBoxWrapper() != 0))
726 deleteLineBoxWrapper(); 724 deleteLineBoxWrapper();
727 } 725 }
728 726
729 ensureRareData().m_inlineBoxWrapper = boxWrapper; 727 ensureRareData().m_inlineBoxWrapper = boxWrapper;
730 } 728 }
731 729
732 } // namespace blink 730 } // namespace blink
733 731
734 #endif // RenderBox_h 732 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698