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

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

Issue 2798513002: Revert of 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;
2986 if (geometryMapperOption == UseGeometryMapper) { 2987 if (geometryMapperOption == UseGeometryMapper) {
2987 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); 2988 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
2988 return PaintLayerClipper(*this, true); 2989 if (FrameView* frameView = m_layoutObject.document().view())
2990 geometryMapper = &frameView->geometryMapper();
2989 } 2991 }
2990 return PaintLayerClipper(*this, false); 2992 return PaintLayerClipper(*this, geometryMapper);
2991 } 2993 }
2992 2994
2993 bool PaintLayer::scrollsOverflow() const { 2995 bool PaintLayer::scrollsOverflow() const {
2994 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea()) 2996 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea())
2995 return scrollableArea->scrollsOverflow(); 2997 return scrollableArea->scrollsOverflow();
2996 2998
2997 return false; 2999 return false;
2998 } 3000 }
2999 3001
3000 FilterOperations PaintLayer::addReflectionToFilterOperations( 3002 FilterOperations PaintLayer::addReflectionToFilterOperations(
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 } 3238 }
3237 3239
3238 void showLayerTree(const blink::LayoutObject* layoutObject) { 3240 void showLayerTree(const blink::LayoutObject* layoutObject) {
3239 if (!layoutObject) { 3241 if (!layoutObject) {
3240 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3242 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3241 return; 3243 return;
3242 } 3244 }
3243 showLayerTree(layoutObject->enclosingLayer()); 3245 showLayerTree(layoutObject->enclosingLayer());
3244 } 3246 }
3245 #endif 3247 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698