| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. | 7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 void RenderLayerModelObject::invalidateTreeIfNeeded(const PaintInvalidationState
& paintInvalidationState) | 175 void RenderLayerModelObject::invalidateTreeIfNeeded(const PaintInvalidationState
& paintInvalidationState) |
| 176 { | 176 { |
| 177 ASSERT(!needsLayout()); | 177 ASSERT(!needsLayout()); |
| 178 | 178 |
| 179 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 179 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
| 180 return; | 180 return; |
| 181 | 181 |
| 182 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer
(); | 182 bool establishesNewPaintInvalidationContainer = isPaintInvalidationContainer
(); |
| 183 const RenderLayerModelObject& newPaintInvalidationContainer = *adjustComposi
tedContainerForSpecialAncestors(establishesNewPaintInvalidationContainer ? this
: &paintInvalidationState.paintInvalidationContainer()); | 183 const RenderLayerModelObject& newPaintInvalidationContainer = *adjustComposi
tedContainerForSpecialAncestors(establishesNewPaintInvalidationContainer ? this
: &paintInvalidationState.paintInvalidationContainer()); |
| 184 ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation()); | 184 // FIXME: This assert should be re-enabled when we move paint invalidation t
o after compositing update. crbug.com/360286 |
| 185 // ASSERT(&newPaintInvalidationContainer == containerForPaintInvalidation())
; |
| 185 | 186 |
| 186 InvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState,
newPaintInvalidationContainer); | 187 InvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState,
newPaintInvalidationContainer); |
| 187 clearPaintInvalidationState(paintInvalidationState); | 188 clearPaintInvalidationState(paintInvalidationState); |
| 188 | 189 |
| 189 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new
PaintInvalidationContainer); | 190 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new
PaintInvalidationContainer); |
| 190 if (reason == InvalidationLocationChange || reason == InvalidationFull) | 191 if (reason == InvalidationLocationChange || reason == InvalidationFull) |
| 191 childTreeWalkState.setForceCheckForPaintInvalidation(); | 192 childTreeWalkState.setForceCheckForPaintInvalidation(); |
| 192 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState); | 193 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState); |
| 193 } | 194 } |
| 194 | 195 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 211 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. | 212 // Note: the subpixel accumulation of layer() does not need to be ad
ded here. It is already taken into account. |
| 212 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval
idationRect), annotations); | 213 squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInval
idationRect), annotations); |
| 213 } | 214 } |
| 214 } else { | 215 } else { |
| 215 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, annot
ations); | 216 layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(r, annot
ations); |
| 216 } | 217 } |
| 217 } | 218 } |
| 218 | 219 |
| 219 } // namespace blink | 220 } // namespace blink |
| 220 | 221 |
| OLD | NEW |