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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerScrollableArea.h

Issue 1292513002: Create custom scrollbars when html element has overflow:scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 private: 228 private:
229 explicit DeprecatedPaintLayerScrollableArea(DeprecatedPaintLayer&); 229 explicit DeprecatedPaintLayerScrollableArea(DeprecatedPaintLayer&);
230 230
231 bool hasHorizontalOverflow() const; 231 bool hasHorizontalOverflow() const;
232 bool hasVerticalOverflow() const; 232 bool hasVerticalOverflow() const;
233 bool hasScrollableHorizontalOverflow() const; 233 bool hasScrollableHorizontalOverflow() const;
234 bool hasScrollableVerticalOverflow() const; 234 bool hasScrollableVerticalOverflow() const;
235 bool visualViewportSuppliesScrollbars() const; 235 bool visualViewportSuppliesScrollbars() const;
236 236
237 bool needsScrollbarReconstruction() const;
238
237 void computeScrollDimensions(); 239 void computeScrollDimensions();
238 240
239 // TODO(bokan): This method hides the base class version and is subtly diffe rent. 241 // TODO(bokan): This method hides the base class version and is subtly diffe rent.
240 // Should be unified. 242 // Should be unified.
241 DoubleSize clampScrollOffset(const DoubleSize&) const; 243 DoubleSize clampScrollOffset(const DoubleSize&) const;
242 244
243 void setScrollOffset(const IntPoint&, ScrollType) override; 245 void setScrollOffset(const IntPoint&, ScrollType) override;
244 void setScrollOffset(const DoublePoint&, ScrollType) override; 246 void setScrollOffset(const DoublePoint&, ScrollType) override;
245 247
246 LayoutUnit verticalScrollbarStart(int minX, int maxX) const; 248 LayoutUnit verticalScrollbarStart(int minX, int maxX) const;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 LayoutScrollbarPart* m_resizer; 300 LayoutScrollbarPart* m_resizer;
299 301
300 #if ENABLE(ASSERT) 302 #if ENABLE(ASSERT)
301 bool m_hasBeenDisposed; 303 bool m_hasBeenDisposed;
302 #endif 304 #endif
303 }; 305 };
304 306
305 } // namespace blink 307 } // namespace blink
306 308
307 #endif // LayerScrollableArea_h 309 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698