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

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

Issue 707233006: Remove scrollbar width/height computations from layout. (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 virtual bool updateAfterCompositingChange() override; 112 virtual bool updateAfterCompositingChange() override;
113 113
114 bool hasScrollbar() const { return m_hBar || m_vBar; } 114 bool hasScrollbar() const { return m_hBar || m_vBar; }
115 115
116 LayoutUnit scrollWidth() const; 116 LayoutUnit scrollWidth() const;
117 LayoutUnit scrollHeight() const; 117 LayoutUnit scrollHeight() const;
118 int pixelSnappedScrollWidth() const; 118 int pixelSnappedScrollWidth() const;
119 int pixelSnappedScrollHeight() const; 119 int pixelSnappedScrollHeight() const;
120 120
121 int verticalScrollbarWidth(OverlayScrollbarSizeRelevancy = IgnoreOverlayScro llbarSize) const;
122 int horizontalScrollbarHeight(OverlayScrollbarSizeRelevancy = IgnoreOverlayS crollbarSize) const;
123
124 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol lYOffset()); } 121 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol lYOffset()); }
125 122
126 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co nst IntRect& damageRect, bool paintingOverlayControls); 123 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co nst IntRect& damageRect, bool paintingOverlayControls);
127 void positionOverflowControls(const IntSize& offsetFromRoot); 124 void positionOverflowControls(const IntSize& offsetFromRoot);
128 125
129 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY); 126 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY);
130 127
131 // Returns true our scrollable area is in the FrameView's collection of scro llable areas. This can 128 // Returns true our scrollable area is in the FrameView's collection of scro llable areas. This can
132 // only happen if we're both scrollable, and we do in fact overflow. This me ans that overflow: hidden 129 // only happen if we're both scrollable, and we do in fact overflow. This me ans that overflow: hidden
133 // layers never get added to the FrameView's collection. 130 // layers never get added to the FrameView's collection.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 IntPoint m_cachedOverlayScrollbarOffset; 194 IntPoint m_cachedOverlayScrollbarOffset;
198 195
199 // For areas with overflow, we have a pair of scrollbars. 196 // For areas with overflow, we have a pair of scrollbars.
200 RefPtr<Scrollbar> m_hBar; 197 RefPtr<Scrollbar> m_hBar;
201 RefPtr<Scrollbar> m_vBar; 198 RefPtr<Scrollbar> m_vBar;
202 }; 199 };
203 200
204 } // namespace blink 201 } // namespace blink
205 202
206 #endif // RenderLayerScrollableArea_h 203 #endif // RenderLayerScrollableArea_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderFlexibleBox.cpp ('k') | sky/engine/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698