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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 2749863006: Revert of Fix overflow:overlay scrollbar width for paint. (Closed)
Patch Set: Created 3 years, 9 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 bool inResizeMode() const { return m_inResizeMode; } 350 bool inResizeMode() const { return m_inResizeMode; }
351 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } 351 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; }
352 352
353 LayoutUnit scrollWidth() const; 353 LayoutUnit scrollWidth() const;
354 LayoutUnit scrollHeight() const; 354 LayoutUnit scrollHeight() const;
355 int pixelSnappedScrollWidth() const; 355 int pixelSnappedScrollWidth() const;
356 int pixelSnappedScrollHeight() const; 356 int pixelSnappedScrollHeight() const;
357 357
358 int verticalScrollbarWidth( 358 int verticalScrollbarWidth(
359 OverlayScrollbarClipBehavior = 359 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
360 IgnorePlatformOverlayScrollbarSize) const override;
361 int horizontalScrollbarHeight( 360 int horizontalScrollbarHeight(
362 OverlayScrollbarClipBehavior = 361 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
363 IgnorePlatformOverlayScrollbarSize) const override;
364 362
365 DoubleSize adjustedScrollOffset() const { 363 DoubleSize adjustedScrollOffset() const {
366 return toDoubleSize(DoublePoint(scrollOrigin()) + m_scrollOffset); 364 return toDoubleSize(DoublePoint(scrollOrigin()) + m_scrollOffset);
367 } 365 }
368 366
369 void positionOverflowControls(); 367 void positionOverflowControls();
370 368
371 // isPointInResizeControl() is used for testing if a pointer/touch position is 369 // isPointInResizeControl() is used for testing if a pointer/touch position is
372 // in the resize control area. 370 // in the resize control area.
373 bool isPointInResizeControl(const IntPoint& absolutePoint, 371 bool isPointInResizeControl(const IntPoint& absolutePoint,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 602
605 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 603 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
606 ScrollableArea, 604 ScrollableArea,
607 scrollableArea, 605 scrollableArea,
608 scrollableArea->isPaintLayerScrollableArea(), 606 scrollableArea->isPaintLayerScrollableArea(),
609 scrollableArea.isPaintLayerScrollableArea()); 607 scrollableArea.isPaintLayerScrollableArea());
610 608
611 } // namespace blink 609 } // namespace blink
612 610
613 #endif // LayerScrollableArea_h 611 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698