| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 } | 871 } |
| 872 | 872 |
| 873 void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() | 873 void DeprecatedPaintLayerCompositor::resetTrackedPaintInvalidationRects() |
| 874 { | 874 { |
| 875 if (GraphicsLayer* rootLayer = rootGraphicsLayer()) | 875 if (GraphicsLayer* rootLayer = rootGraphicsLayer()) |
| 876 resetTrackedPaintInvalidationRectsRecursive(rootLayer); | 876 resetTrackedPaintInvalidationRectsRecursive(rootLayer); |
| 877 } | 877 } |
| 878 | 878 |
| 879 void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPain
tInvalidations) | 879 void DeprecatedPaintLayerCompositor::setTracksPaintInvalidations(bool tracksPain
tInvalidations) |
| 880 { | 880 { |
| 881 #if ENABLE(ASSERT) | 881 ASSERT(lifecycle().state() == |
| 882 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 882 (RuntimeEnabledFeatures::slimmingPaintV2Enabled() |
| 883 ASSERT(lifecycle().state() == DocumentLifecycle::CompositingForSlimmingP
aintV2Clean | 883 ? DocumentLifecycle::CompositingForSlimmingPaintV2Clean : DocumentLi
fecycle::PaintInvalidationClean)); |
| 884 // TODO(wangxianzhu): Remove this when we remove the old path for sp
v2. | |
| 885 || lifecycle().state() == DocumentLifecycle::PaintInvalidationClean)
; | |
| 886 } else { | |
| 887 ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean)
; | |
| 888 } | |
| 889 #endif | |
| 890 | |
| 891 m_isTrackingPaintInvalidations = tracksPaintInvalidations; | 884 m_isTrackingPaintInvalidations = tracksPaintInvalidations; |
| 892 } | 885 } |
| 893 | 886 |
| 894 bool DeprecatedPaintLayerCompositor::isTrackingPaintInvalidations() const | 887 bool DeprecatedPaintLayerCompositor::isTrackingPaintInvalidations() const |
| 895 { | 888 { |
| 896 return m_isTrackingPaintInvalidations; | 889 return m_isTrackingPaintInvalidations; |
| 897 } | 890 } |
| 898 | 891 |
| 899 bool DeprecatedPaintLayerCompositor::requiresHorizontalScrollbarLayer() const | 892 bool DeprecatedPaintLayerCompositor::requiresHorizontalScrollbarLayer() const |
| 900 { | 893 { |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 } else if (graphicsLayer == m_scrollLayer.get()) { | 1203 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1211 name = "LocalFrame Scrolling Layer"; | 1204 name = "LocalFrame Scrolling Layer"; |
| 1212 } else { | 1205 } else { |
| 1213 ASSERT_NOT_REACHED(); | 1206 ASSERT_NOT_REACHED(); |
| 1214 } | 1207 } |
| 1215 | 1208 |
| 1216 return name; | 1209 return name; |
| 1217 } | 1210 } |
| 1218 | 1211 |
| 1219 } // namespace blink | 1212 } // namespace blink |
| OLD | NEW |