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

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

Issue 335743002: updateLayerPositionsAfterLayout shouldn't have a RenderGeometryMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 6 years, 6 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 | Annotate | Revision Log
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 int verticalScrollbarWidth(OverlayScrollbarSizeRelevancy = IgnoreOverlayScro llbarSize) const; 147 int verticalScrollbarWidth(OverlayScrollbarSizeRelevancy = IgnoreOverlayScro llbarSize) const;
148 int horizontalScrollbarHeight(OverlayScrollbarSizeRelevancy = IgnoreOverlayS crollbarSize) const; 148 int horizontalScrollbarHeight(OverlayScrollbarSizeRelevancy = IgnoreOverlayS crollbarSize) const;
149 149
150 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol lYOffset()); } 150 IntSize adjustedScrollOffset() const { return IntSize(scrollXOffset(), scrol lYOffset()); }
151 151
152 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe ct& damageRect); 152 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe ct& damageRect);
153 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co nst IntRect& damageRect, bool paintingOverlayControls); 153 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co nst IntRect& damageRect, bool paintingOverlayControls);
154 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam ageRect); 154 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam ageRect);
155 155
156 // If IntSize is not given, then we must incur additional overhead to instan tiate a RenderGeometryMap
157 // and compute the correct offset ourselves.
158 void positionOverflowControls();
159 void positionOverflowControls(const IntSize& offsetFromRoot); 156 void positionOverflowControls(const IntSize& offsetFromRoot);
160 157
161 // isPointInResizeControl() is used for testing if a pointer/touch position is in the resize control 158 // isPointInResizeControl() is used for testing if a pointer/touch position is in the resize control
162 // area. 159 // area.
163 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const; 160 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const;
164 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); 161 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint);
165 162
166 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation& ) const; 163 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation& ) const;
167 164
168 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY); 165 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Renderers to hold our custom scroll corner. 243 // Renderers to hold our custom scroll corner.
247 RenderScrollbarPart* m_scrollCorner; 244 RenderScrollbarPart* m_scrollCorner;
248 245
249 // Renderers to hold our custom resizer. 246 // Renderers to hold our custom resizer.
250 RenderScrollbarPart* m_resizer; 247 RenderScrollbarPart* m_resizer;
251 }; 248 };
252 249
253 } // Namespace WebCore 250 } // Namespace WebCore
254 251
255 #endif // RenderLayerScrollableArea_h 252 #endif // RenderLayerScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerModelObject.cpp ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698