OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool hasChildTransformLayer() const { return m_childTransformLayer.get(); } | 121 bool hasChildTransformLayer() const { return m_childTransformLayer.get(); } |
122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge
t(); } | 122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge
t(); } |
123 | 123 |
124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain
mentLayer.get(); } | 124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain
mentLayer.get(); } |
125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } | 125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } |
126 | 126 |
127 void setSquashingContentsNeedDisplay(); | 127 void setSquashingContentsNeedDisplay(); |
128 void setContentsNeedDisplay(); | 128 void setContentsNeedDisplay(); |
129 // LayoutRect is in the coordinate space of the layer's layout object. | 129 // LayoutRect is in the coordinate space of the layer's layout object. |
130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason
, const DisplayItemClient&); | 130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason
, const DisplayItemClient&); |
| 131 // Invalidates just the non-scrolling content layers. |
| 132 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvali
dationReason, const DisplayItemClient&); |
131 // Invalidates just scrolling content layers. | 133 // Invalidates just scrolling content layers. |
132 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat
ionReason, const DisplayItemClient&); | 134 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat
ionReason, const DisplayItemClient&); |
133 | 135 |
134 // This is called only if we are tracking paint invalidation for testing, or
ENABLE(ASSERT) | 136 // This is called only if we are tracking paint invalidation for testing, or
ENABLE(ASSERT) |
135 // for error checking and debugging. | 137 // for error checking and debugging. |
136 void displayItemClientWasInvalidated(const DisplayItemClient&, PaintInvalida
tionReason); | 138 void displayItemClientWasInvalidated(const DisplayItemClient&, PaintInvalida
tionReason); |
137 // Invalidates just scrolling content layers. | 139 // Invalidates just scrolling content layers. |
138 void scrollingDisplayItemClientWasInvalidated(const DisplayItemClient&, Pain
tInvalidationReason); | 140 void scrollingDisplayItemClientWasInvalidated(const DisplayItemClient&, Pain
tInvalidationReason); |
139 | 141 |
140 // Notification from the layoutObject that its content changed. | 142 // Notification from the layoutObject that its content changed. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 460 |
459 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 461 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
460 unsigned m_scrollingContentsAreEmpty : 1; | 462 unsigned m_scrollingContentsAreEmpty : 1; |
461 | 463 |
462 friend class CompositedLayerMappingTest; | 464 friend class CompositedLayerMappingTest; |
463 }; | 465 }; |
464 | 466 |
465 } // namespace blink | 467 } // namespace blink |
466 | 468 |
467 #endif // CompositedLayerMapping_h | 469 #endif // CompositedLayerMapping_h |
OLD | NEW |