| 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 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 UpdateContext childContext(context, layer); | 116 UpdateContext childContext(context, layer); |
| 117 for (PaintLayer* child = layer.firstChild(); child; | 117 for (PaintLayer* child = layer.firstChild(); child; |
| 118 child = child->nextSibling()) | 118 child = child->nextSibling()) |
| 119 updateRecursive(*child, updateType, childContext, | 119 updateRecursive(*child, updateType, childContext, |
| 120 layersNeedingPaintInvalidation); | 120 layersNeedingPaintInvalidation); |
| 121 } | 121 } |
| 122 | 122 |
| 123 #if ENABLE(ASSERT) | 123 #if DCHECK_IS_ON() |
| 124 | 124 |
| 125 void GraphicsLayerUpdater::assertNeedsToUpdateGraphicsLayerBitsCleared( | 125 void GraphicsLayerUpdater::assertNeedsToUpdateGraphicsLayerBitsCleared( |
| 126 PaintLayer& layer) { | 126 PaintLayer& layer) { |
| 127 if (layer.hasCompositedLayerMapping()) | 127 if (layer.hasCompositedLayerMapping()) |
| 128 layer.compositedLayerMapping() | 128 layer.compositedLayerMapping() |
| 129 ->assertNeedsToUpdateGraphicsLayerBitsCleared(); | 129 ->assertNeedsToUpdateGraphicsLayerBitsCleared(); |
| 130 | 130 |
| 131 for (PaintLayer* child = layer.firstChild(); child; | 131 for (PaintLayer* child = layer.firstChild(); child; |
| 132 child = child->nextSibling()) | 132 child = child->nextSibling()) |
| 133 assertNeedsToUpdateGraphicsLayerBitsCleared(*child); | 133 assertNeedsToUpdateGraphicsLayerBitsCleared(*child); |
| 134 } | 134 } |
| 135 | 135 |
| 136 #endif | 136 #endif |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| OLD | NEW |