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

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

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)
Patch Set: nit Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * 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 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 case PaintsIntoGroupedBacking: 2602 case PaintsIntoGroupedBacking:
2603 return groupedMapping()->squashingLayer(); 2603 return groupedMapping()->squashingLayer();
2604 default: 2604 default:
2605 return (obj != layoutObject() && 2605 return (obj != layoutObject() &&
2606 compositedLayerMapping()->scrollingContentsLayer()) 2606 compositedLayerMapping()->scrollingContentsLayer())
2607 ? compositedLayerMapping()->scrollingContentsLayer() 2607 ? compositedLayerMapping()->scrollingContentsLayer()
2608 : compositedLayerMapping()->mainGraphicsLayer(); 2608 : compositedLayerMapping()->mainGraphicsLayer();
2609 } 2609 }
2610 } 2610 }
2611 2611
2612 BackgroundPaintLocation PaintLayer::backgroundPaintLocation() const { 2612 BackgroundPaintLocation PaintLayer::backgroundPaintLocation(
2613 uint32_t* reasons) const {
2613 BackgroundPaintLocation location = 2614 BackgroundPaintLocation location =
2614 isRootLayer() || !scrollsOverflow() 2615 isRootLayer() || !scrollsOverflow()
2615 ? BackgroundPaintInGraphicsLayer 2616 ? BackgroundPaintInGraphicsLayer
2616 : layoutObject()->backgroundPaintLocation(); 2617 : layoutObject()->backgroundPaintLocation(reasons);
2617 m_stackingNode->updateLayerListsIfNeeded(); 2618 m_stackingNode->updateLayerListsIfNeeded();
2618 if (m_stackingNode->hasNegativeZOrderList()) 2619 if (m_stackingNode->hasNegativeZOrderList())
2619 location = BackgroundPaintInGraphicsLayer; 2620 location = BackgroundPaintInGraphicsLayer;
2620 return location; 2621 return location;
2621 } 2622 }
2622 2623
2623 void PaintLayer::ensureCompositedLayerMapping() { 2624 void PaintLayer::ensureCompositedLayerMapping() {
2624 if (m_rareData && m_rareData->compositedLayerMapping) 2625 if (m_rareData && m_rareData->compositedLayerMapping)
2625 return; 2626 return;
2626 2627
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
3221 } 3222 }
3222 3223
3223 void showLayerTree(const blink::LayoutObject* layoutObject) { 3224 void showLayerTree(const blink::LayoutObject* layoutObject) {
3224 if (!layoutObject) { 3225 if (!layoutObject) {
3225 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3226 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3226 return; 3227 return;
3227 } 3228 }
3228 showLayerTree(layoutObject->enclosingLayer()); 3229 showLayerTree(layoutObject->enclosingLayer());
3229 } 3230 }
3230 #endif 3231 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698