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

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: addressed review comment: (fix for overflow:overlay) 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S crollBehavior scrollBehavior = ScrollBehaviorInstant) override 145 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S crollBehavior scrollBehavior = ScrollBehaviorInstant) override
146 { 146 {
147 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi or); 147 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi or);
148 } 148 }
149 149
150 void updateAfterLayout(); 150 void updateAfterLayout();
151 void updateAfterStyleChange(const ComputedStyle*); 151 void updateAfterStyleChange(const ComputedStyle*);
152 void updateAfterOverflowRecalc(); 152 void updateAfterOverflowRecalc();
153 153
154 bool needsScrollbarReconstruction() const;
skobes 2015/08/19 16:59:52 Can this be private?
MuVen 2015/08/19 19:20:42 Done.
155
154 bool updateAfterCompositingChange() override; 156 bool updateAfterCompositingChange() override;
155 157
156 bool hasScrollbar() const { return m_hBar || m_vBar; } 158 bool hasScrollbar() const { return m_hBar || m_vBar; }
157 159
158 LayoutScrollbarPart* scrollCorner() const { return m_scrollCorner; } 160 LayoutScrollbarPart* scrollCorner() const { return m_scrollCorner; }
159 161
160 void resize(const PlatformEvent&, const LayoutSize&); 162 void resize(const PlatformEvent&, const LayoutSize&);
161 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; 163 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const;
162 164
163 bool inResizeMode() const { return m_inResizeMode; } 165 bool inResizeMode() const { return m_inResizeMode; }
(...skipping 134 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