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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.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, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 bool result = false; 335 bool result = false;
336 switch (mode) { 336 switch (mode) {
337 case CheckIntersection: 337 case CheckIntersection:
338 result = intersectsAllowingEmpty(rect, mappedRepaintRect); 338 result = intersectsAllowingEmpty(rect, mappedRepaintRect);
339 break; 339 break;
340 case CheckEnclosure: 340 case CheckEnclosure:
341 result = rect.contains(mappedRepaintRect); 341 result = rect.contains(mappedRepaintRect);
342 break; 342 break;
343 default: 343 default:
344 ASSERT_NOT_REACHED(); 344 NOTREACHED();
345 break; 345 break;
346 } 346 }
347 347
348 return result; 348 return result;
349 } 349 }
350 350
351 StaticNodeList* SVGSVGElement::collectIntersectionOrEnclosureList( 351 StaticNodeList* SVGSVGElement::collectIntersectionOrEnclosureList(
352 const FloatRect& rect, 352 const FloatRect& rect,
353 SVGElement* referenceElement, 353 SVGElement* referenceElement,
354 GeometryMatchingMode mode) const { 354 GeometryMatchingMode mode) const {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 visitor->trace(m_width); 724 visitor->trace(m_width);
725 visitor->trace(m_height); 725 visitor->trace(m_height);
726 visitor->trace(m_translation); 726 visitor->trace(m_translation);
727 visitor->trace(m_timeContainer); 727 visitor->trace(m_timeContainer);
728 visitor->trace(m_viewSpec); 728 visitor->trace(m_viewSpec);
729 SVGGraphicsElement::trace(visitor); 729 SVGGraphicsElement::trace(visitor);
730 SVGFitToViewBox::trace(visitor); 730 SVGFitToViewBox::trace(visitor);
731 } 731 }
732 732
733 } // namespace blink 733 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698