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

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

Issue 18054014: Remove SVGTests related code from SVGGraphicsElement subclasses (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | Source/core/svg/SVGRectElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool supportsMarkers() const { return true; } 53 virtual bool supportsMarkers() const { return true; }
54 54
55 // Custom 'points' property 55 // Custom 'points' property
56 static void synchronizePoints(SVGElement* contextElement); 56 static void synchronizePoints(SVGElement* contextElement);
57 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen t* contextElement); 57 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen t* contextElement);
58 58
59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement) 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement)
60 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 60 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
61 END_DECLARE_ANIMATED_PROPERTIES 61 END_DECLARE_ANIMATED_PROPERTIES
62 62
63 // SVGTests
64 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
65 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
66 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
67
68 protected: 63 protected:
69 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points; 64 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
70 }; 65 };
71 66
72 inline SVGPolyElement* toSVGPolyElement(SVGElement* element) 67 inline SVGPolyElement* toSVGPolyElement(SVGElement* element)
73 { 68 {
74 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p olygonTag) || element->hasTagName(SVGNames::polylineTag)); 69 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p olygonTag) || element->hasTagName(SVGNames::polylineTag));
75 return static_cast<SVGPolyElement*>(element); 70 return static_cast<SVGPolyElement*>(element);
76 } 71 }
77 72
78 } // namespace WebCore 73 } // namespace WebCore
79 74
80 #endif 75 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | Source/core/svg/SVGRectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698