| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layout/PaintInvalidationState.h" | 5 #include "core/layout/PaintInvalidationState.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/frame/Settings.h" | 9 #include "core/frame/Settings.h" |
| 10 #include "core/layout/LayoutInline.h" | 10 #include "core/layout/LayoutInline.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 case PaintInvalidationDelayedFull: | 308 case PaintInvalidationDelayedFull: |
| 309 m_pendingDelayedPaintInvalidations.append(&m_currentObject); | 309 m_pendingDelayedPaintInvalidations.append(&m_currentObject); |
| 310 break; | 310 break; |
| 311 case PaintInvalidationSubtree: | 311 case PaintInvalidationSubtree: |
| 312 m_forcedSubtreeInvalidationFlags |= | 312 m_forcedSubtreeInvalidationFlags |= |
| 313 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation | | 313 (PaintInvalidatorContext::ForcedSubtreeFullInvalidation | |
| 314 PaintInvalidatorContext:: | 314 PaintInvalidatorContext:: |
| 315 ForcedSubtreeFullInvalidationForStackedContents); | 315 ForcedSubtreeFullInvalidationForStackedContents); |
| 316 break; | 316 break; |
| 317 case PaintInvalidationSVGResourceChange: | 317 case PaintInvalidationSVGResourceChange: |
| 318 setForceSubtreeInvalidationCheckingWithinContainer(); | 318 m_forcedSubtreeInvalidationFlags |= |
| 319 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange; |
| 319 break; | 320 break; |
| 320 default: | 321 default: |
| 321 break; | 322 break; |
| 322 } | 323 } |
| 323 | 324 |
| 324 updateForNormalChildren(); | 325 updateForNormalChildren(); |
| 325 | 326 |
| 326 if (m_currentObject == m_containerForAbsolutePosition) { | 327 if (m_currentObject == m_containerForAbsolutePosition) { |
| 327 if (m_paintInvalidationContainer == | 328 if (m_paintInvalidationContainer == |
| 328 m_paintInvalidationContainerForStackedContents) { | 329 m_paintInvalidationContainerForStackedContents) { |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 } | 628 } |
| 628 | 629 |
| 629 void PaintInvalidatorContextAdapter::mapLocalRectToPaintInvalidationBacking( | 630 void PaintInvalidatorContextAdapter::mapLocalRectToPaintInvalidationBacking( |
| 630 const LayoutObject& object, | 631 const LayoutObject& object, |
| 631 LayoutRect& rect) const { | 632 LayoutRect& rect) const { |
| 632 DCHECK(&object == &m_paintInvalidationState.currentObject()); | 633 DCHECK(&object == &m_paintInvalidationState.currentObject()); |
| 633 m_paintInvalidationState.mapLocalRectToPaintInvalidationBacking(rect); | 634 m_paintInvalidationState.mapLocalRectToPaintInvalidationBacking(rect); |
| 634 } | 635 } |
| 635 | 636 |
| 636 } // namespace blink | 637 } // namespace blink |
| OLD | NEW |