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

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

Issue 2238883006: SPv2: Use GeometryMapper to implement PaintLayerClipper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 2 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 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 607
608 // Compute rects only for this layer 608 // Compute rects only for this layer
609 void computeSelfHitTestRects(LayerHitTestRects&) const; 609 void computeSelfHitTestRects(LayerHitTestRects&) const;
610 610
611 // FIXME: This should probably return a ScrollableArea but a lot of internal 611 // FIXME: This should probably return a ScrollableArea but a lot of internal
612 // methods are mistakenly exposed. 612 // methods are mistakenly exposed.
613 PaintLayerScrollableArea* getScrollableArea() const { 613 PaintLayerScrollableArea* getScrollableArea() const {
614 return m_scrollableArea.get(); 614 return m_scrollableArea.get();
615 } 615 }
616 616
617 PaintLayerClipper clipper() const { return PaintLayerClipper(*this); } 617 PaintLayerClipper clipper() const {
618 return PaintLayerClipper(*this,
619 RuntimeEnabledFeatures::slimmingPaintV2Enabled());
620 }
618 621
619 bool scrollsOverflow() const; 622 bool scrollsOverflow() const;
620 623
621 CompositingReasons potentialCompositingReasonsFromStyle() const { 624 CompositingReasons potentialCompositingReasonsFromStyle() const {
622 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle 625 return m_rareData ? m_rareData->potentialCompositingReasonsFromStyle
623 : CompositingReasonNone; 626 : CompositingReasonNone;
624 } 627 }
625 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) { 628 void setPotentialCompositingReasonsFromStyle(CompositingReasons reasons) {
626 ASSERT(reasons == 629 ASSERT(reasons ==
627 (reasons & CompositingReasonComboAllStyleDeterminedReasons)); 630 (reasons & CompositingReasonComboAllStyleDeterminedReasons));
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 1230
1228 } // namespace blink 1231 } // namespace blink
1229 1232
1230 #ifndef NDEBUG 1233 #ifndef NDEBUG
1231 // Outside the WebCore namespace for ease of invocation from gdb. 1234 // Outside the WebCore namespace for ease of invocation from gdb.
1232 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1235 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1233 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1236 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1234 #endif 1237 #endif
1235 1238
1236 #endif // Layer_h 1239 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698