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

Side by Side Diff: third_party/WebKit/Source/core/paint/ObjectPainter.cpp

Issue 2845773005: Replace ASSERT_NOT_REACHED with NOTREACHED in core/paint (Closed)
Patch Set: Created 3 years, 7 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/paint/ObjectPainter.h" 5 #include "core/paint/ObjectPainter.h"
6 6
7 #include "core/layout/LayoutBlock.h" 7 #include "core/layout/LayoutBlock.h"
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 #include "core/layout/LayoutTheme.h" 10 #include "core/layout/LayoutTheme.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 case kBSTop: // Clockwise 94 case kBSTop: // Clockwise
95 return outline_width; 95 return outline_width;
96 case kBSBottom: // Counterclockwise 96 case kBSBottom: // Counterclockwise
97 edge1.y1 -= outline_width; 97 edge1.y1 -= outline_width;
98 edge2.x2 += outline_width; 98 edge2.x2 += outline_width;
99 return -outline_width; 99 return -outline_width;
100 default: // Same side or no joint. 100 default: // Same side or no joint.
101 return 0; 101 return 0;
102 } 102 }
103 default: 103 default:
104 ASSERT_NOT_REACHED(); 104 NOTREACHED();
105 return 0; 105 return 0;
106 } 106 }
107 } 107 }
108 108
109 void PaintComplexOutline(GraphicsContext& graphics_context, 109 void PaintComplexOutline(GraphicsContext& graphics_context,
110 const Vector<IntRect> rects, 110 const Vector<IntRect> rects,
111 const ComputedStyle& style, 111 const ComputedStyle& style,
112 const Color& color) { 112 const Color& color) {
113 DCHECK(!style.OutlineStyleIsAuto()); 113 DCHECK(!style.OutlineStyleIsAuto());
114 114
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 adjusted_paint_offset += ToLayoutBox(layout_object_).Location(); 716 adjusted_paint_offset += ToLayoutBox(layout_object_).Location();
717 DCHECK(layout_object_.PaintOffset() == adjusted_paint_offset) 717 DCHECK(layout_object_.PaintOffset() == adjusted_paint_offset)
718 << " Paint offset mismatch: " << layout_object_.DebugName() 718 << " Paint offset mismatch: " << layout_object_.DebugName()
719 << " from PaintPropertyTreeBuilder: " 719 << " from PaintPropertyTreeBuilder: "
720 << layout_object_.PaintOffset().ToString() 720 << layout_object_.PaintOffset().ToString()
721 << " from painter: " << adjusted_paint_offset.ToString(); 721 << " from painter: " << adjusted_paint_offset.ToString();
722 } 722 }
723 #endif 723 #endif
724 724
725 } // namespace blink 725 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698