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

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

Issue 783393006: Remove relayout due to scrollbars taking up width (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 RenderBox& box() const; 164 RenderBox& box() const;
165 RenderLayer* layer() const; 165 RenderLayer* layer() const;
166 166
167 void updateScrollableAreaSet(bool hasOverflow); 167 void updateScrollableAreaSet(bool hasOverflow);
168 168
169 RenderLayer& m_layer; 169 RenderLayer& m_layer;
170 170
171 unsigned m_scrollsOverflow : 1; 171 unsigned m_scrollsOverflow : 1;
172 172
173 unsigned m_scrollDimensionsDirty : 1; 173 unsigned m_scrollDimensionsDirty : 1;
174 unsigned m_inOverflowRelayout : 1;
175 174
176 RenderLayer* m_nextTopmostScrollChild; 175 RenderLayer* m_nextTopmostScrollChild;
177 RenderLayer* m_topmostScrollChild; 176 RenderLayer* m_topmostScrollChild;
178 177
179 // FIXME: once cc can handle composited scrolling with clip paths, we will 178 // FIXME: once cc can handle composited scrolling with clip paths, we will
180 // no longer need this bit. 179 // no longer need this bit.
181 unsigned m_needsCompositedScrolling : 1; 180 unsigned m_needsCompositedScrolling : 1;
182 181
183 // The width/height of our scrolled area. 182 // The width/height of our scrolled area.
184 LayoutRect m_overflowRect; 183 LayoutRect m_overflowRect;
185 184
186 // This is the (scroll) offset from scrollOrigin(). 185 // This is the (scroll) offset from scrollOrigin().
187 IntSize m_scrollOffset; 186 IntSize m_scrollOffset;
188 187
189 IntPoint m_cachedOverlayScrollbarOffset; 188 IntPoint m_cachedOverlayScrollbarOffset;
190 189
191 // For areas with overflow, we have a pair of scrollbars. 190 // For areas with overflow, we have a pair of scrollbars.
192 RefPtr<Scrollbar> m_hBar; 191 RefPtr<Scrollbar> m_hBar;
193 RefPtr<Scrollbar> m_vBar; 192 RefPtr<Scrollbar> m_vBar;
194 }; 193 };
195 194
196 } // namespace blink 195 } // namespace blink
197 196
198 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSCROLLABLEAREA_H_ 197 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSCROLLABLEAREA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698