| 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" |
| 11 #include "core/layout/LayoutBlockFlow.h" | 11 #include "core/layout/LayoutBlockFlow.h" |
| 12 #include "core/layout/LayoutTable.h" | 12 #include "core/layout/LayoutTable.h" |
| 13 #include "core/layout/LayoutTableSection.h" | 13 #include "core/layout/LayoutTableSection.h" |
| 14 #include "core/layout/LayoutView.h" | 14 #include "core/layout/LayoutView.h" |
| 15 #include "core/layout/svg/SVGLayoutSupport.h" | 15 #include "core/layout/svg/SVGLayoutSupport.h" |
| 16 #include "core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h" | 16 #include "core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h" |
| 17 #include "core/paint/ObjectPaintProperties.h" | 17 #include "core/paint/ObjectPaintProperties.h" |
| 18 #include "core/paint/PaintLayer.h" | 18 #include "core/paint/PaintLayer.h" |
| 19 #include "core/paint/PaintLayerScrollableArea.h" | 19 #include "core/paint/PaintLayerScrollableArea.h" |
| 20 #include "platform/graphics/paint/GeometryMapper.h" | 20 #include "platform/graphics/paint/GeometryMapper.h" |
| 21 #include "wtf/Optional.h" | 21 #include "platform/wtf/Optional.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 template <typename Rect> | 25 template <typename Rect> |
| 26 static LayoutRect SlowMapToVisualRectInAncestorSpace( | 26 static LayoutRect SlowMapToVisualRectInAncestorSpace( |
| 27 const LayoutObject& object, | 27 const LayoutObject& object, |
| 28 const LayoutBoxModelObject& ancestor, | 28 const LayoutBoxModelObject& ancestor, |
| 29 const Rect& rect) { | 29 const Rect& rect) { |
| 30 if (object.IsSVGChild()) { | 30 if (object.IsSVGChild()) { |
| 31 LayoutRect result; | 31 LayoutRect result; |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 } | 505 } |
| 506 | 506 |
| 507 void PaintInvalidator::ProcessPendingDelayedPaintInvalidations() { | 507 void PaintInvalidator::ProcessPendingDelayedPaintInvalidations() { |
| 508 for (auto target : pending_delayed_paint_invalidations_) { | 508 for (auto target : pending_delayed_paint_invalidations_) { |
| 509 target->GetMutableForPainting().SetShouldDoFullPaintInvalidation( | 509 target->GetMutableForPainting().SetShouldDoFullPaintInvalidation( |
| 510 kPaintInvalidationDelayedFull); | 510 kPaintInvalidationDelayedFull); |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace blink | 514 } // namespace blink |
| OLD | NEW |