| OLD | NEW |
| 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 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2982 updateSelfPaintingLayer(); | 2982 updateSelfPaintingLayer(); |
| 2983 | 2983 |
| 2984 updateTransform(oldStyle, layoutObject()->styleRef()); | 2984 updateTransform(oldStyle, layoutObject()->styleRef()); |
| 2985 updateFilters(oldStyle, layoutObject()->styleRef()); | 2985 updateFilters(oldStyle, layoutObject()->styleRef()); |
| 2986 updateClipPath(oldStyle, layoutObject()->styleRef()); | 2986 updateClipPath(oldStyle, layoutObject()->styleRef()); |
| 2987 | 2987 |
| 2988 setNeedsCompositingInputsUpdate(); | 2988 setNeedsCompositingInputsUpdate(); |
| 2989 layoutObject()->setNeedsPaintPropertyUpdate(); | 2989 layoutObject()->setNeedsPaintPropertyUpdate(); |
| 2990 } | 2990 } |
| 2991 | 2991 |
| 2992 PaintLayerClipper PaintLayer::clipper() const { |
| 2993 GeometryMapper* geometryMapper = nullptr; |
| 2994 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) { |
| 2995 if (FrameView* frameView = m_layoutObject->document().view()) |
| 2996 geometryMapper = frameView->geometryMapper(); |
| 2997 } |
| 2998 return PaintLayerClipper(*this, geometryMapper); |
| 2999 } |
| 3000 |
| 2992 bool PaintLayer::scrollsOverflow() const { | 3001 bool PaintLayer::scrollsOverflow() const { |
| 2993 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea()) | 3002 if (PaintLayerScrollableArea* scrollableArea = this->getScrollableArea()) |
| 2994 return scrollableArea->scrollsOverflow(); | 3003 return scrollableArea->scrollsOverflow(); |
| 2995 | 3004 |
| 2996 return false; | 3005 return false; |
| 2997 } | 3006 } |
| 2998 | 3007 |
| 2999 FilterOperations PaintLayer::addReflectionToFilterOperations( | 3008 FilterOperations PaintLayer::addReflectionToFilterOperations( |
| 3000 const ComputedStyle& style) const { | 3009 const ComputedStyle& style) const { |
| 3001 FilterOperations filterOperations = style.filter(); | 3010 FilterOperations filterOperations = style.filter(); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 } | 3244 } |
| 3236 | 3245 |
| 3237 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3246 void showLayerTree(const blink::LayoutObject* layoutObject) { |
| 3238 if (!layoutObject) { | 3247 if (!layoutObject) { |
| 3239 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3248 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
| 3240 return; | 3249 return; |
| 3241 } | 3250 } |
| 3242 showLayerTree(layoutObject->enclosingLayer()); | 3251 showLayerTree(layoutObject->enclosingLayer()); |
| 3243 } | 3252 } |
| 3244 #endif | 3253 #endif |
| OLD | NEW |