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

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

Issue 1626623002: Skip PaintPhaseDescendantBlockBackgroundsOnly phase if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FloatPhase
Patch Set: Rebase Created 4 years, 11 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 void updateScrollDimensions(DoubleSize& scrollOffset, bool& autoHorizontalSc rollBarChanged, bool& autoVerticalScrollBarChanged); 253 void updateScrollDimensions(DoubleSize& scrollOffset, bool& autoHorizontalSc rollBarChanged, bool& autoVerticalScrollBarChanged);
254 void finalizeScrollDimensions(const DoubleSize& originalScrollOffset, bool a utoHorizontalScrollBarChanged, bool autoVerticalScrollBarChanged); 254 void finalizeScrollDimensions(const DoubleSize& originalScrollOffset, bool a utoHorizontalScrollBarChanged, bool autoVerticalScrollBarChanged);
255 255
256 void updateAfterLayout(); 256 void updateAfterLayout();
257 void updateAfterStyleChange(const ComputedStyle*); 257 void updateAfterStyleChange(const ComputedStyle*);
258 void updateAfterOverflowRecalc(); 258 void updateAfterOverflowRecalc();
259 259
260 bool updateAfterCompositingChange() override; 260 bool updateAfterCompositingChange() override;
261 261
262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); } 262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); }
263 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() | | resizer(); }
263 264
264 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } 265 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; }
265 266
266 void resize(const PlatformEvent&, const LayoutSize&); 267 void resize(const PlatformEvent&, const LayoutSize&);
267 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; 268 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const;
268 269
269 bool inResizeMode() const { return m_inResizeMode; } 270 bool inResizeMode() const { return m_inResizeMode; }
270 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } 271 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; }
271 272
272 IntRect touchResizerCornerRect(const IntRect& bounds) const 273 IntRect touchResizerCornerRect(const IntRect& bounds) const
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 LayoutScrollbarPart* m_resizer; 407 LayoutScrollbarPart* m_resizer;
407 408
408 #if ENABLE(ASSERT) 409 #if ENABLE(ASSERT)
409 bool m_hasBeenDisposed; 410 bool m_hasBeenDisposed;
410 #endif 411 #endif
411 }; 412 };
412 413
413 } // namespace blink 414 } // namespace blink
414 415
415 #endif // LayerScrollableArea_h 416 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698