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

Side by Side Diff: Source/core/rendering/RenderLayerScrollableArea.h

Issue 239983004: Textarea resize-able only to larger; min-height and min-width properly set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addresses the changes asked in patch set 3 Created 6 years, 8 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
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 LayoutUnit horizontalScrollbarStart(int minX) const; 202 LayoutUnit horizontalScrollbarStart(int minX) const;
203 IntSize scrollbarOffset(const Scrollbar*) const; 203 IntSize scrollbarOffset(const Scrollbar*) const;
204 204
205 PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); 205 PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
206 void destroyScrollbar(ScrollbarOrientation); 206 void destroyScrollbar(ScrollbarOrientation);
207 207
208 void setHasHorizontalScrollbar(bool hasScrollbar); 208 void setHasHorizontalScrollbar(bool hasScrollbar);
209 void setHasVerticalScrollbar(bool hasScrollbar); 209 void setHasVerticalScrollbar(bool hasScrollbar);
210 210
211 void updateScrollCornerStyle(); 211 void updateScrollCornerStyle();
212 void updateMinimumSizeForResizing();
212 213
213 // See comments on isPointInResizeControl. 214 // See comments on isPointInResizeControl.
214 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const; 215 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const;
215 bool overflowControlsIntersectRect(const IntRect& localRect) const; 216 bool overflowControlsIntersectRect(const IntRect& localRect) const;
216 void updateResizerAreaSet(); 217 void updateResizerAreaSet();
217 void updateResizerStyle(); 218 void updateResizerStyle();
218 void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect); 219 void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect);
219 220
220 RenderLayer* layer() const; 221 RenderLayer* layer() const;
221 222
(...skipping 17 matching lines...) Expand all
239 unsigned m_needsCompositedScrolling : 1; 240 unsigned m_needsCompositedScrolling : 1;
240 241
241 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling; 242 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling;
242 243
243 // The width/height of our scrolled area. 244 // The width/height of our scrolled area.
244 LayoutRect m_overflowRect; 245 LayoutRect m_overflowRect;
245 246
246 // This is the (scroll) offset from scrollOrigin(). 247 // This is the (scroll) offset from scrollOrigin().
247 IntSize m_scrollOffset; 248 IntSize m_scrollOffset;
248 249
250 // This is the minimum size for resizing.
251 LayoutSize m_minimumSizeForResizing;
252
249 IntPoint m_cachedOverlayScrollbarOffset; 253 IntPoint m_cachedOverlayScrollbarOffset;
250 254
251 // For areas with overflow, we have a pair of scrollbars. 255 // For areas with overflow, we have a pair of scrollbars.
252 RefPtr<Scrollbar> m_hBar; 256 RefPtr<Scrollbar> m_hBar;
253 RefPtr<Scrollbar> m_vBar; 257 RefPtr<Scrollbar> m_vBar;
254 258
255 // Renderers to hold our custom scroll corner. 259 // Renderers to hold our custom scroll corner.
256 RenderScrollbarPart* m_scrollCorner; 260 RenderScrollbarPart* m_scrollCorner;
257 261
258 // Renderers to hold our custom resizer. 262 // Renderers to hold our custom resizer.
259 RenderScrollbarPart* m_resizer; 263 RenderScrollbarPart* m_resizer;
260 }; 264 };
261 265
262 } // Namespace WebCore 266 } // Namespace WebCore
263 267
264 #endif // RenderLayerScrollableArea_h 268 #endif // RenderLayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698