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

Side by Side Diff: Source/core/svg/SVGMaskElement.h

Issue 27096003: Use DEFINE_NODE_TYPE_CASTS instead of using manual toSVGFooElement() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/svg/SVGMarkerElement.h ('k') | Source/core/svg/SVGMissingGlyphElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 DECLARE_ANIMATED_LENGTH(Height, height) 61 DECLARE_ANIMATED_LENGTH(Height, height)
62 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 62 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
63 END_DECLARE_ANIMATED_PROPERTIES 63 END_DECLARE_ANIMATED_PROPERTIES
64 64
65 // SVGTests 65 // SVGTests
66 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 66 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
67 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 67 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
68 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 68 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
69 }; 69 };
70 70
71 inline SVGMaskElement* toSVGMaskElement(Node* node) 71 DEFINE_NODE_TYPE_CASTS(SVGMaskElement, hasTagName(SVGNames::maskTag));
72 {
73 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::maskTag ));
74 return static_cast<SVGMaskElement*>(node);
75 }
76 72
77 } 73 }
78 74
79 #endif 75 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.h ('k') | Source/core/svg/SVGMissingGlyphElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698