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

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

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Rebase with latest 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 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved.
3 * (C) 2005 Rob Buis <buis@kde.org> 3 * (C) 2005 Rob Buis <buis@kde.org>
4 * (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * (C) 2006 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 String SVGEnumerationToString(Enum value) { 160 String SVGEnumerationToString(Enum value) {
161 const SVGEnumerationStringEntries& entries = getStaticStringEntries<Enum>(); 161 const SVGEnumerationStringEntries& entries = getStaticStringEntries<Enum>();
162 162
163 SVGEnumerationStringEntries::const_iterator it = entries.begin(); 163 SVGEnumerationStringEntries::const_iterator it = entries.begin();
164 SVGEnumerationStringEntries::const_iterator itEnd = entries.end(); 164 SVGEnumerationStringEntries::const_iterator itEnd = entries.end();
165 for (; it != itEnd; ++it) { 165 for (; it != itEnd; ++it) {
166 if (value == it->first) 166 if (value == it->first)
167 return it->second; 167 return it->second;
168 } 168 }
169 169
170 ASSERT_NOT_REACHED(); 170 NOTREACHED();
171 return String(); 171 return String();
172 } 172 }
173 173
174 } // namespace 174 } // namespace
175 175
176 static TextStream& operator<<(TextStream& ts, 176 static TextStream& operator<<(TextStream& ts,
177 const SVGUnitTypes::SVGUnitType& unitType) { 177 const SVGUnitTypes::SVGUnitType& unitType) {
178 ts << SVGEnumerationToString<SVGUnitTypes::SVGUnitType>(unitType); 178 ts << SVGEnumerationToString<SVGUnitTypes::SVGUnitType>(unitType);
179 return ts; 179 return ts;
180 } 180 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } else if (isSVGPolyElement(*svgElement)) { 381 } else if (isSVGPolyElement(*svgElement)) {
382 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement) 382 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement)
383 .points() 383 .points()
384 ->currentValue() 384 ->currentValue()
385 ->valueAsString()); 385 ->valueAsString());
386 } else if (isSVGPathElement(*svgElement)) { 386 } else if (isSVGPathElement(*svgElement)) {
387 writeNameAndQuotedValue( 387 writeNameAndQuotedValue(
388 ts, "data", 388 ts, "data",
389 toSVGPathElement(*svgElement).path()->currentValue()->valueAsString()); 389 toSVGPathElement(*svgElement).path()->currentValue()->valueAsString());
390 } else { 390 } else {
391 ASSERT_NOT_REACHED(); 391 NOTREACHED();
392 } 392 }
393 return ts; 393 return ts;
394 } 394 }
395 395
396 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) { 396 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) {
397 ts << " " << root.frameRect(); 397 ts << " " << root.frameRect();
398 writeStyle(ts, root); 398 writeStyle(ts, root);
399 return ts; 399 return ts;
400 } 400 }
401 401
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 ts << " "; 765 ts << " ";
766 writeStandardPrefix(ts, *filter, 0); 766 writeStandardPrefix(ts, *filter, 0);
767 ts << " " << filter->resourceBoundingBox(&object) << "\n"; 767 ts << " " << filter->resourceBoundingBox(&object) << "\n";
768 } 768 }
769 } 769 }
770 } 770 }
771 } 771 }
772 } 772 }
773 773
774 } // namespace blink 774 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698