| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 131 // Invalidates just the non-scrolling content layers. |
| 132 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvali
dationReason, const DisplayItemClient&); | 132 void setNonScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvali
dationReason, const DisplayItemClient&); |
| 133 // Invalidates just scrolling content layers. | 133 // Invalidates just scrolling content layers. |
| 134 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat
ionReason, const DisplayItemClient&); | 134 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat
ionReason, const DisplayItemClient&); |
| 135 | 135 |
| 136 // This is called only if we are tracking paint invalidation for testing, or
ENABLE(ASSERT) | |
| 137 // for error checking and debugging. | |
| 138 void displayItemClientWasInvalidated(const DisplayItemClient&, PaintInvalida
tionReason); | |
| 139 // Invalidates just scrolling content layers. | |
| 140 void scrollingDisplayItemClientWasInvalidated(const DisplayItemClient&, Pain
tInvalidationReason); | |
| 141 | |
| 142 // Notification from the layoutObject that its content changed. | 136 // Notification from the layoutObject that its content changed. |
| 143 void contentChanged(ContentChangeType); | 137 void contentChanged(ContentChangeType); |
| 144 | 138 |
| 145 LayoutRect compositedBounds() const { return m_compositedBounds; } | 139 LayoutRect compositedBounds() const { return m_compositedBounds; } |
| 146 IntRect pixelSnappedCompositedBounds() const; | 140 IntRect pixelSnappedCompositedBounds() const; |
| 147 | 141 |
| 148 void positionOverflowControlsLayers(); | 142 void positionOverflowControlsLayers(); |
| 149 | 143 |
| 150 // Returns true if the assignment actually changed the assigned squashing la
yer. | 144 // Returns true if the assignment actually changed the assigned squashing la
yer. |
| 151 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq
uashedLayerIndex); | 145 bool updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSq
uashedLayerIndex); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 454 |
| 461 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; | 455 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| 462 unsigned m_scrollingContentsAreEmpty : 1; | 456 unsigned m_scrollingContentsAreEmpty : 1; |
| 463 | 457 |
| 464 friend class CompositedLayerMappingTest; | 458 friend class CompositedLayerMappingTest; |
| 465 }; | 459 }; |
| 466 | 460 |
| 467 } // namespace blink | 461 } // namespace blink |
| 468 | 462 |
| 469 #endif // CompositedLayerMapping_h | 463 #endif // CompositedLayerMapping_h |
| OLD | NEW |