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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGShapePainter.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
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/SVGShapePainter.h" 5 #include "core/paint/SVGShapePainter.h"
6 6
7 #include "core/layout/svg/LayoutSVGResourceMarker.h" 7 #include "core/layout/svg/LayoutSVGResourceMarker.h"
8 #include "core/layout/svg/LayoutSVGShape.h" 8 #include "core/layout/svg/LayoutSVGShape.h"
9 #include "core/layout/svg/SVGLayoutSupport.h" 9 #include "core/layout/svg/SVGLayoutSupport.h"
10 #include "core/layout/svg/SVGMarkerData.h" 10 #include "core/layout/svg/SVGMarkerData.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 layout_svg_shape_.DashScaleFactor()); 119 layout_svg_shape_.DashScaleFactor());
120 stroke_data.SetupPaint(&stroke_flags); 120 stroke_data.SetupPaint(&stroke_flags);
121 121
122 StrokeShape(paint_context.GetPaintInfo().context, stroke_flags); 122 StrokeShape(paint_context.GetPaintInfo().context, stroke_flags);
123 } 123 }
124 break; 124 break;
125 case PT_MARKERS: 125 case PT_MARKERS:
126 PaintMarkers(paint_context.GetPaintInfo(), bounding_box); 126 PaintMarkers(paint_context.GetPaintInfo(), bounding_box);
127 break; 127 break;
128 default: 128 default:
129 ASSERT_NOT_REACHED(); 129 NOTREACHED();
130 break; 130 break;
131 } 131 }
132 } 132 }
133 } 133 }
134 } 134 }
135 135
136 if (layout_svg_shape_.Style()->OutlineWidth()) { 136 if (layout_svg_shape_.Style()->OutlineWidth()) {
137 PaintInfo outline_paint_info(paint_info_before_filtering); 137 PaintInfo outline_paint_info(paint_info_before_filtering);
138 outline_paint_info.phase = kPaintPhaseSelfOutlineOnly; 138 outline_paint_info.phase = kPaintPhaseSelfOutlineOnly;
139 ObjectPainter(layout_svg_shape_) 139 ObjectPainter(layout_svg_shape_)
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 PaintInfo marker_paint_info(builder.Context(), paint_info); 250 PaintInfo marker_paint_info(builder.Context(), paint_info);
251 marker_paint_info.cull_rect_.rect_ = bounds; 251 marker_paint_info.cull_rect_.rect_ = bounds;
252 252
253 SVGContainerPainter(marker).Paint(marker_paint_info); 253 SVGContainerPainter(marker).Paint(marker_paint_info);
254 builder.EndRecording(*canvas); 254 builder.EndRecording(*canvas);
255 255
256 canvas->restore(); 256 canvas->restore();
257 } 257 }
258 258
259 } // namespace blink 259 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698