| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 << " vs slow: " << slowPathRect.toString(); | 632 << " vs slow: " << slowPathRect.toString(); |
| 633 showLayoutTree(&m_currentObject); | 633 showLayoutTree(&m_currentObject); |
| 634 | 634 |
| 635 NOTREACHED(); | 635 NOTREACHED(); |
| 636 } | 636 } |
| 637 | 637 |
| 638 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY | 638 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY |
| 639 | 639 |
| 640 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter( | 640 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter( |
| 641 const PaintInvalidationState& paint_invalidation_state) | 641 const PaintInvalidationState& paint_invalidation_state) |
| 642 : PaintInvalidatorContext(nullptr), | 642 : PaintInvalidatorContext(), |
| 643 paint_invalidation_state_(paint_invalidation_state) { | 643 paint_invalidation_state_(paint_invalidation_state) { |
| 644 forced_subtree_invalidation_flags = | 644 forced_subtree_invalidation_flags = |
| 645 paint_invalidation_state.forced_subtree_invalidation_flags_; | 645 paint_invalidation_state.forced_subtree_invalidation_flags_; |
| 646 paint_invalidation_container = | 646 paint_invalidation_container = |
| 647 &paint_invalidation_state.PaintInvalidationContainer(); | 647 &paint_invalidation_state.PaintInvalidationContainer(); |
| 648 painting_layer = &paint_invalidation_state.PaintingLayer(); | 648 painting_layer = &paint_invalidation_state.PaintingLayer(); |
| 649 } | 649 } |
| 650 | 650 |
| 651 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking( | 651 void PaintInvalidatorContextAdapter::MapLocalRectToVisualRectInBacking( |
| 652 const LayoutObject& object, | 652 const LayoutObject& object, |
| 653 LayoutRect& rect) const { | 653 LayoutRect& rect) const { |
| 654 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject()); | 654 DCHECK_EQ(&object, &paint_invalidation_state_.CurrentObject()); |
| 655 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect); | 655 paint_invalidation_state_.MapLocalRectToVisualRectInBacking(rect); |
| 656 } | 656 } |
| 657 | 657 |
| 658 } // namespace blink | 658 } // namespace blink |
| OLD | NEW |