| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/paint/PaintInvalidator.h" | 5 #include "core/paint/PaintInvalidator.h" |
| 6 | 6 |
| 7 #include "core/editing/FrameSelection.h" | 7 #include "core/editing/FrameSelection.h" |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 m_pendingDelayedPaintInvalidations.append(&object); | 417 m_pendingDelayedPaintInvalidations.append(&object); |
| 418 break; | 418 break; |
| 419 case PaintInvalidationSubtree: | 419 case PaintInvalidationSubtree: |
| 420 context.forcedSubtreeInvalidationFlags |= | 420 context.forcedSubtreeInvalidationFlags |= |
| 421 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation | | 421 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation | |
| 422 PaintInvalidatorContext:: | 422 PaintInvalidatorContext:: |
| 423 ForcedSubtreeFullInvalidationForStackedContents); | 423 ForcedSubtreeFullInvalidationForStackedContents); |
| 424 break; | 424 break; |
| 425 case PaintInvalidationSVGResourceChange: | 425 case PaintInvalidationSVGResourceChange: |
| 426 context.forcedSubtreeInvalidationFlags |= | 426 context.forcedSubtreeInvalidationFlags |= |
| 427 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; | 427 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange; |
| 428 break; | 428 break; |
| 429 default: | 429 default: |
| 430 break; | 430 break; |
| 431 } | 431 } |
| 432 | 432 |
| 433 if (context.oldLocation != context.newLocation) | 433 if (context.oldLocation != context.newLocation) |
| 434 context.forcedSubtreeInvalidationFlags |= | 434 context.forcedSubtreeInvalidationFlags |= |
| 435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; | 435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; |
| 436 | 436 |
| 437 // TODO(crbug.com/533277): This is a workaround for the bug. Remove when we | 437 // TODO(crbug.com/533277): This is a workaround for the bug. Remove when we |
| (...skipping 17 matching lines...) Expand all Loading... |
| 455 object.getMutableForPainting().clearPaintInvalidationFlags(); | 455 object.getMutableForPainting().clearPaintInvalidationFlags(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 void PaintInvalidator::processPendingDelayedPaintInvalidations() { | 458 void PaintInvalidator::processPendingDelayedPaintInvalidations() { |
| 459 for (auto target : m_pendingDelayedPaintInvalidations) | 459 for (auto target : m_pendingDelayedPaintInvalidations) |
| 460 target->getMutableForPainting().setShouldDoFullPaintInvalidation( | 460 target->getMutableForPainting().setShouldDoFullPaintInvalidation( |
| 461 PaintInvalidationDelayedFull); | 461 PaintInvalidationDelayedFull); |
| 462 } | 462 } |
| 463 | 463 |
| 464 } // namespace blink | 464 } // namespace blink |
| OLD | NEW |