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

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

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

Powered by Google App Engine
This is Rietveld 408576698