OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2213 } | 2213 } |
2214 | 2214 |
2215 if (!m_compositedDeprecatedPaintLayerMapping) | 2215 if (!m_compositedDeprecatedPaintLayerMapping) |
2216 return NotComposited; | 2216 return NotComposited; |
2217 | 2217 |
2218 return PaintsIntoOwnBacking; | 2218 return PaintsIntoOwnBacking; |
2219 } | 2219 } |
2220 | 2220 |
2221 bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const | 2221 bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const |
2222 { | 2222 { |
2223 if (gCompositingQueryMode == CompositingQueriesAreAllowed) | 2223 if (gCompositingQueryMode == CompositingQueriesAreAllowed || RuntimeEnabledF
eatures::slimmingPaintV2Enabled()) |
2224 return true; | 2224 return true; |
2225 return layoutObject()->document().lifecycle().state() >= DocumentLifecycle::
InCompositingUpdate; | 2225 return layoutObject()->document().lifecycle().state() >= DocumentLifecycle::
InCompositingUpdate; |
2226 } | 2226 } |
2227 | 2227 |
2228 CompositedDeprecatedPaintLayerMapping* DeprecatedPaintLayer::compositedDeprecate
dPaintLayerMapping() const | 2228 CompositedDeprecatedPaintLayerMapping* DeprecatedPaintLayer::compositedDeprecate
dPaintLayerMapping() const |
2229 { | 2229 { |
2230 ASSERT(isAllowedToQueryCompositingState()); | 2230 ASSERT(isAllowedToQueryCompositingState()); |
2231 return m_compositedDeprecatedPaintLayerMapping.get(); | 2231 return m_compositedDeprecatedPaintLayerMapping.get(); |
2232 } | 2232 } |
2233 | 2233 |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2671 | 2671 |
2672 void showLayerTree(const blink::LayoutObject* layoutObject) | 2672 void showLayerTree(const blink::LayoutObject* layoutObject) |
2673 { | 2673 { |
2674 if (!layoutObject) { | 2674 if (!layoutObject) { |
2675 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2675 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2676 return; | 2676 return; |
2677 } | 2677 } |
2678 showLayerTree(layoutObject->enclosingLayer()); | 2678 showLayerTree(layoutObject->enclosingLayer()); |
2679 } | 2679 } |
2680 #endif | 2680 #endif |
OLD | NEW |