| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 inflatedSlowPathRect.inflate(1); | 618 inflatedSlowPathRect.inflate(1); |
| 619 if (inflatedSlowPathRect.contains(fastPathRect)) | 619 if (inflatedSlowPathRect.contains(fastPathRect)) |
| 620 return; | 620 return; |
| 621 } | 621 } |
| 622 | 622 |
| 623 LOG(ERROR) << "Fast path visual rect differs from slow path: fast: " | 623 LOG(ERROR) << "Fast path visual rect differs from slow path: fast: " |
| 624 << fastPathRect.toString() | 624 << fastPathRect.toString() |
| 625 << " vs slow: " << slowPathRect.toString(); | 625 << " vs slow: " << slowPathRect.toString(); |
| 626 showLayoutTree(&m_currentObject); | 626 showLayoutTree(&m_currentObject); |
| 627 | 627 |
| 628 ASSERT_NOT_REACHED(); | 628 NOTREACHED(); |
| 629 } | 629 } |
| 630 | 630 |
| 631 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY | 631 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY |
| 632 | 632 |
| 633 static const PaintPropertyTreeBuilderContext& dummyTreeBuilderContext() { | 633 static const PaintPropertyTreeBuilderContext& dummyTreeBuilderContext() { |
| 634 DEFINE_STATIC_LOCAL(PaintPropertyTreeBuilderContext, dummyContext, ()); | 634 DEFINE_STATIC_LOCAL(PaintPropertyTreeBuilderContext, dummyContext, ()); |
| 635 return dummyContext; | 635 return dummyContext; |
| 636 } | 636 } |
| 637 | 637 |
| 638 static GeometryMapper& dummyGeometryMapper() { | 638 static GeometryMapper& dummyGeometryMapper() { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 655 } | 655 } |
| 656 | 656 |
| 657 void PaintInvalidatorContextAdapter::mapLocalRectToVisualRectInBacking( | 657 void PaintInvalidatorContextAdapter::mapLocalRectToVisualRectInBacking( |
| 658 const LayoutObject& object, | 658 const LayoutObject& object, |
| 659 LayoutRect& rect) const { | 659 LayoutRect& rect) const { |
| 660 DCHECK(&object == &m_paintInvalidationState.currentObject()); | 660 DCHECK(&object == &m_paintInvalidationState.currentObject()); |
| 661 m_paintInvalidationState.mapLocalRectToVisualRectInBacking(rect); | 661 m_paintInvalidationState.mapLocalRectToVisualRectInBacking(rect); |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace blink | 664 } // namespace blink |
| OLD | NEW |