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

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: Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void updateScrollDimensions(DoubleSize& scrollOffset, bool& autoHorizontalSc rollBarChanged, bool& autoVerticalScrollBarChanged); 255 void updateScrollDimensions(DoubleSize& scrollOffset, bool& autoHorizontalSc rollBarChanged, bool& autoVerticalScrollBarChanged);
256 void finalizeScrollDimensions(const DoubleSize& originalScrollOffset, bool a utoHorizontalScrollBarChanged, bool autoVerticalScrollBarChanged); 256 void finalizeScrollDimensions(const DoubleSize& originalScrollOffset, bool a utoHorizontalScrollBarChanged, bool autoVerticalScrollBarChanged);
257 257
258 void updateAfterLayout(); 258 void updateAfterLayout();
259 void updateAfterStyleChange(const ComputedStyle*); 259 void updateAfterStyleChange(const ComputedStyle*);
260 void updateAfterOverflowRecalc(); 260 void updateAfterOverflowRecalc();
261 261
262 bool updateAfterCompositingChange() override; 262 bool updateAfterCompositingChange() override;
263 263
264 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); } 264 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); }
265 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() | | resizer(); }
265 266
266 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } 267 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; }
267 268
268 void resize(const PlatformEvent&, const LayoutSize&); 269 void resize(const PlatformEvent&, const LayoutSize&);
269 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; 270 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const;
270 271
271 bool inResizeMode() const { return m_inResizeMode; } 272 bool inResizeMode() const { return m_inResizeMode; }
272 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } 273 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; }
273 274
274 IntRect touchResizerCornerRect(const IntRect& bounds) const 275 IntRect touchResizerCornerRect(const IntRect& bounds) const
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 #endif 414 #endif
414 }; 415 };
415 416
416 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 417 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
417 scrollableArea->isPaintLayerScrollableArea(), 418 scrollableArea->isPaintLayerScrollableArea(),
418 scrollableArea.isPaintLayerScrollableArea()); 419 scrollableArea.isPaintLayerScrollableArea());
419 420
420 } // namespace blink 421 } // namespace blink
421 422
422 #endif // LayerScrollableArea_h 423 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698