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

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

Issue 2748223002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/svg/ (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 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 break; 423 break;
424 case kSvgMeetorsliceSlice: 424 case kSvgMeetorsliceSlice:
425 meetOrSliceString = " slice"; 425 meetOrSliceString = " slice";
426 break; 426 break;
427 } 427 }
428 builder.append(meetOrSliceString); 428 builder.append(meetOrSliceString);
429 return builder.toString(); 429 return builder.toString();
430 } 430 }
431 431
432 void SVGPreserveAspectRatio::add(SVGPropertyBase* other, SVGElement*) { 432 void SVGPreserveAspectRatio::add(SVGPropertyBase* other, SVGElement*) {
433 ASSERT_NOT_REACHED(); 433 NOTREACHED();
434 } 434 }
435 435
436 void SVGPreserveAspectRatio::calculateAnimatedValue( 436 void SVGPreserveAspectRatio::calculateAnimatedValue(
437 SVGAnimationElement* animationElement, 437 SVGAnimationElement* animationElement,
438 float percentage, 438 float percentage,
439 unsigned repeatCount, 439 unsigned repeatCount,
440 SVGPropertyBase* fromValue, 440 SVGPropertyBase* fromValue,
441 SVGPropertyBase* toValue, 441 SVGPropertyBase* toValue,
442 SVGPropertyBase*, 442 SVGPropertyBase*,
443 SVGElement*) { 443 SVGElement*) {
(...skipping 10 matching lines...) Expand all
454 m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice; 454 m_meetOrSlice = preserveAspectRatioToUse->m_meetOrSlice;
455 } 455 }
456 456
457 float SVGPreserveAspectRatio::calculateDistance(SVGPropertyBase* toValue, 457 float SVGPreserveAspectRatio::calculateDistance(SVGPropertyBase* toValue,
458 SVGElement* contextElement) { 458 SVGElement* contextElement) {
459 // No paced animations for SVGPreserveAspectRatio. 459 // No paced animations for SVGPreserveAspectRatio.
460 return -1; 460 return -1;
461 } 461 }
462 462
463 } // namespace blink 463 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698