| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 bool needsToReparentOverflowControls() const; | 185 bool needsToReparentOverflowControls() const; |
| 186 | 186 |
| 187 // Removes the overflow controls host layer from its parent and positions it | 187 // Removes the overflow controls host layer from its parent and positions it |
| 188 // so that it can be inserted as a sibling to this CLM without changing | 188 // so that it can be inserted as a sibling to this CLM without changing |
| 189 // position. | 189 // position. |
| 190 GraphicsLayer* detachLayerForOverflowControls(const PaintLayer& enclosingLay
er); | 190 GraphicsLayer* detachLayerForOverflowControls(const PaintLayer& enclosingLay
er); |
| 191 | 191 |
| 192 void updateFilters(const ComputedStyle&); | 192 void updateFilters(const ComputedStyle&); |
| 193 void updateBackdropFilters(const ComputedStyle&); | 193 void updateBackdropFilters(const ComputedStyle&); |
| 194 | 194 |
| 195 void updateStickyConstraints(const ComputedStyle&); |
| 196 |
| 195 void setBlendMode(WebBlendMode); | 197 void setBlendMode(WebBlendMode); |
| 196 | 198 |
| 197 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } | 199 bool needsGraphicsLayerUpdate() { return m_pendingUpdateScope > GraphicsLaye
rUpdateNone; } |
| 198 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } | 200 void setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateScope scope) { m_pending
UpdateScope = std::max(static_cast<GraphicsLayerUpdateScope>(m_pendingUpdateScop
e), scope); } |
| 199 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } | 201 void clearNeedsGraphicsLayerUpdate() { m_pendingUpdateScope = GraphicsLayerU
pdateNone; } |
| 200 | 202 |
| 201 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; | 203 GraphicsLayerUpdater::UpdateType updateTypeForChildren(GraphicsLayerUpdater:
:UpdateType) const; |
| 202 | 204 |
| 203 #if ENABLE(ASSERT) | 205 #if ENABLE(ASSERT) |
| 204 void assertNeedsToUpdateGraphicsLayerBitsCleared() { ASSERT(m_pendingUpdate
Scope == GraphicsLayerUpdateNone); } | 206 void assertNeedsToUpdateGraphicsLayerBitsCleared() { ASSERT(m_pendingUpdate
Scope == GraphicsLayerUpdateNone); } |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 | 468 |
| 467 // Keep track of whether the background is painted onto the scrolling conten
ts layer for invalidations. | 469 // Keep track of whether the background is painted onto the scrolling conten
ts layer for invalidations. |
| 468 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1; | 470 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1; |
| 469 | 471 |
| 470 friend class CompositedLayerMappingTest; | 472 friend class CompositedLayerMappingTest; |
| 471 }; | 473 }; |
| 472 | 474 |
| 473 } // namespace blink | 475 } // namespace blink |
| 474 | 476 |
| 475 #endif // CompositedLayerMapping_h | 477 #endif // CompositedLayerMapping_h |
| OLD | NEW |