Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 inflatedSlowPathRect.inflate(1); 617 inflatedSlowPathRect.inflate(1);
618 if (inflatedSlowPathRect.contains(fastPathRect)) 618 if (inflatedSlowPathRect.contains(fastPathRect))
619 return; 619 return;
620 } 620 }
621 621
622 LOG(ERROR) << "Fast path visual rect differs from slow path: fast: " 622 LOG(ERROR) << "Fast path visual rect differs from slow path: fast: "
623 << fastPathRect.toString() 623 << fastPathRect.toString()
624 << " vs slow: " << slowPathRect.toString(); 624 << " vs slow: " << slowPathRect.toString();
625 showLayoutTree(&m_currentObject); 625 showLayoutTree(&m_currentObject);
626 626
627 ASSERT_NOT_REACHED(); 627 NOTREACHED();
628 } 628 }
629 629
630 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY 630 #endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY
631 631
632 static const PaintPropertyTreeBuilderContext& dummyTreeBuilderContext() { 632 static const PaintPropertyTreeBuilderContext& dummyTreeBuilderContext() {
633 DEFINE_STATIC_LOCAL(PaintPropertyTreeBuilderContext, dummyContext, ()); 633 DEFINE_STATIC_LOCAL(PaintPropertyTreeBuilderContext, dummyContext, ());
634 return dummyContext; 634 return dummyContext;
635 } 635 }
636 636
637 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter( 637 PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter(
638 const PaintInvalidationState& paintInvalidationState) 638 const PaintInvalidationState& paintInvalidationState)
639 : PaintInvalidatorContext(dummyTreeBuilderContext()), 639 : PaintInvalidatorContext(dummyTreeBuilderContext()),
640 m_paintInvalidationState(paintInvalidationState) { 640 m_paintInvalidationState(paintInvalidationState) {
641 forcedSubtreeInvalidationFlags = 641 forcedSubtreeInvalidationFlags =
642 paintInvalidationState.m_forcedSubtreeInvalidationFlags; 642 paintInvalidationState.m_forcedSubtreeInvalidationFlags;
643 paintInvalidationContainer = 643 paintInvalidationContainer =
644 &paintInvalidationState.paintInvalidationContainer(); 644 &paintInvalidationState.paintInvalidationContainer();
645 paintingLayer = &paintInvalidationState.paintingLayer(); 645 paintingLayer = &paintInvalidationState.paintingLayer();
646 } 646 }
647 647
648 void PaintInvalidatorContextAdapter::mapLocalRectToVisualRectInBacking( 648 void PaintInvalidatorContextAdapter::mapLocalRectToVisualRectInBacking(
649 const LayoutObject& object, 649 const LayoutObject& object,
650 LayoutRect& rect) const { 650 LayoutRect& rect) const {
651 DCHECK(&object == &m_paintInvalidationState.currentObject()); 651 DCHECK(&object == &m_paintInvalidationState.currentObject());
652 m_paintInvalidationState.mapLocalRectToVisualRectInBacking(rect); 652 m_paintInvalidationState.mapLocalRectToVisualRectInBacking(rect);
653 } 653 }
654 654
655 } // namespace blink 655 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698