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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGMPathElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 #include "core/SVGNames.h" 22 #include "core/SVGNames.h"
23 #include "core/dom/Document.h" 23 #include "core/dom/Document.h"
24 #include "core/dom/IdTargetObserver.h" 24 #include "core/dom/IdTargetObserver.h"
25 #include "core/svg/SVGAnimateMotionElement.h" 25 #include "core/svg/SVGAnimateMotionElement.h"
26 #include "core/svg/SVGPathElement.h" 26 #include "core/svg/SVGPathElement.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 inline SVGMPathElement::SVGMPathElement(Document& document) 30 inline SVGMPathElement::SVGMPathElement(Document& document)
31 : SVGElement(SVGNames::mpathTag, document), SVGURIReference(this) { 31 : SVGElement(SVGNames::mpathTag, document), SVGURIReference(this) {
32 ASSERT(RuntimeEnabledFeatures::smilEnabled()); 32 DCHECK(RuntimeEnabledFeatures::smilEnabled());
33 } 33 }
34 34
35 DEFINE_TRACE(SVGMPathElement) { 35 DEFINE_TRACE(SVGMPathElement) {
36 visitor->trace(m_targetIdObserver); 36 visitor->trace(m_targetIdObserver);
37 SVGElement::trace(visitor); 37 SVGElement::trace(visitor);
38 SVGURIReference::trace(visitor); 38 SVGURIReference::trace(visitor);
39 } 39 }
40 40
41 DEFINE_NODE_FACTORY(SVGMPathElement) 41 DEFINE_NODE_FACTORY(SVGMPathElement)
42 42
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void SVGMPathElement::targetPathChanged() { 94 void SVGMPathElement::targetPathChanged() {
95 notifyParentOfPathChange(parentNode()); 95 notifyParentOfPathChange(parentNode());
96 } 96 }
97 97
98 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) { 98 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) {
99 if (isSVGAnimateMotionElement(parent)) 99 if (isSVGAnimateMotionElement(parent))
100 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 100 toSVGAnimateMotionElement(parent)->updateAnimationPath();
101 } 101 }
102 102
103 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698