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

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

Issue 2793993003: Make GeometryMapper fully static (Closed)
Patch Set: Created 3 years, 8 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 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 updateTransform(oldStyle, layoutObject().styleRef()); 2976 updateTransform(oldStyle, layoutObject().styleRef());
2977 updateFilters(oldStyle, layoutObject().styleRef()); 2977 updateFilters(oldStyle, layoutObject().styleRef());
2978 updateClipPath(oldStyle, layoutObject().styleRef()); 2978 updateClipPath(oldStyle, layoutObject().styleRef());
2979 2979
2980 setNeedsCompositingInputsUpdate(); 2980 setNeedsCompositingInputsUpdate();
2981 layoutObject().setNeedsPaintPropertyUpdate(); 2981 layoutObject().setNeedsPaintPropertyUpdate();
2982 } 2982 }
2983 2983
2984 PaintLayerClipper PaintLayer::clipper( 2984 PaintLayerClipper PaintLayer::clipper(
2985 GeometryMapperOption geometryMapperOption) const { 2985 GeometryMapperOption geometryMapperOption) const {
2986 GeometryMapper* geometryMapper = nullptr;
2987 if (geometryMapperOption == UseGeometryMapper) { 2986 if (geometryMapperOption == UseGeometryMapper) {
2988 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); 2987 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
2989 if (FrameView* frameView = m_layoutObject.document().view()) 2988 return PaintLayerClipper(*this, true);
2990 geometryMapper = &frameView->geometryMapper();
2991 } 2989 }
2992 return PaintLayerClipper(*this, geometryMapper); 2990 return PaintLayerClipper(*this, false);
2993 } 2991 }
2994 2992
2995 bool PaintLayer::scrollsOverflow() const { 2993 bool PaintLayer::scrollsOverflow() const {
2996 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea()) 2994 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea())
2997 return scrollableArea->scrollsOverflow(); 2995 return scrollableArea->scrollsOverflow();
2998 2996
2999 return false; 2997 return false;
3000 } 2998 }
3001 2999
3002 FilterOperations PaintLayer::addReflectionToFilterOperations( 3000 FilterOperations PaintLayer::addReflectionToFilterOperations(
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
3238 } 3236 }
3239 3237
3240 void showLayerTree(const blink::LayoutObject* layoutObject) { 3238 void showLayerTree(const blink::LayoutObject* layoutObject) {
3241 if (!layoutObject) { 3239 if (!layoutObject) {
3242 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3240 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3243 return; 3241 return;
3244 } 3242 }
3245 showLayerTree(layoutObject->enclosingLayer()); 3243 showLayerTree(layoutObject->enclosingLayer());
3246 } 3244 }
3247 #endif 3245 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698