OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
10 * | 10 * |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 { | 398 { |
399 ASSERT(!needsLayout()); | 399 ASSERT(!needsLayout()); |
400 | 400 |
401 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) | 401 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) |
402 return; | 402 return; |
403 | 403 |
404 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is); | 404 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is); |
405 PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidatio
nState); | 405 PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidatio
nState); |
406 clearPaintInvalidationFlags(newPaintInvalidationState); | 406 clearPaintInvalidationFlags(newPaintInvalidationState); |
407 | 407 |
408 if (reason == PaintInvalidationDelayedFull) | 408 newPaintInvalidationState.updateForChildren(reason); |
409 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this); | |
410 | |
411 if (reason == PaintInvalidationSVGResourceChange) | |
412 newPaintInvalidationState.setForceSubtreeInvalidationWithinContainer(); | |
413 | |
414 newPaintInvalidationState.updateForChildren(); | |
415 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); | 409 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState); |
416 } | 410 } |
417 | 411 |
418 } // namespace blink | 412 } // namespace blink |
OLD | NEW |