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

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

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/svg/SVGElement.h" 35 #include "core/svg/SVGElement.h"
36 #include "core/svg/SVGTransformTearOff.h" 36 #include "core/svg/SVGTransformTearOff.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 SVGMatrixTearOff::SVGMatrixTearOff(const AffineTransform& staticValue) 40 SVGMatrixTearOff::SVGMatrixTearOff(const AffineTransform& staticValue)
41 : m_staticValue(staticValue), m_contextTransform(this, nullptr) {} 41 : m_staticValue(staticValue), m_contextTransform(this, nullptr) {}
42 42
43 SVGMatrixTearOff::SVGMatrixTearOff(SVGTransformTearOff* transform) 43 SVGMatrixTearOff::SVGMatrixTearOff(SVGTransformTearOff* transform)
44 : m_contextTransform(this, transform) { 44 : m_contextTransform(this, transform) {
45 ASSERT(transform); 45 DCHECK(transform);
46 } 46 }
47 47
48 DEFINE_TRACE(SVGMatrixTearOff) { 48 DEFINE_TRACE(SVGMatrixTearOff) {
49 visitor->trace(m_contextTransform); 49 visitor->trace(m_contextTransform);
50 } 50 }
51 51
52 DEFINE_TRACE_WRAPPERS(SVGMatrixTearOff) { 52 DEFINE_TRACE_WRAPPERS(SVGMatrixTearOff) {
53 visitor->traceWrappers(m_contextTransform); 53 visitor->traceWrappers(m_contextTransform);
54 } 54 }
55 55
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 exceptionState.throwDOMException(InvalidAccessError, 162 exceptionState.throwDOMException(InvalidAccessError,
163 "Arguments cannot be zero."); 163 "Arguments cannot be zero.");
164 return nullptr; 164 return nullptr;
165 } 165 }
166 AffineTransform copy = value(); 166 AffineTransform copy = value();
167 copy.rotateFromVector(x, y); 167 copy.rotateFromVector(x, y);
168 return create(copy); 168 return create(copy);
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGNumber.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698