Index: Source/core/svg/properties/SVGStaticPropertyTearOff.h |
diff --git a/Source/core/svg/properties/SVGStaticPropertyTearOff.h b/Source/core/svg/properties/SVGStaticPropertyTearOff.h |
deleted file mode 100644 |
index bc6bdddea25b1466867e6b6f1211832f3c7c588a..0000000000000000000000000000000000000000 |
--- a/Source/core/svg/properties/SVGStaticPropertyTearOff.h |
+++ /dev/null |
@@ -1,66 +0,0 @@ |
-/* |
- * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
- * |
- * This library is free software; you can redistribute it and/or |
- * modify it under the terms of the GNU Library General Public |
- * License as published by the Free Software Foundation; either |
- * version 2 of the License, or (at your option) any later version. |
- * |
- * This library is distributed in the hope that it will be useful, |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
- * Library General Public License for more details. |
- * |
- * You should have received a copy of the GNU Library General Public License |
- * along with this library; see the file COPYING.LIB. If not, write to |
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
- * Boston, MA 02110-1301, USA. |
- */ |
- |
-#ifndef SVGStaticPropertyTearOff_h |
-#define SVGStaticPropertyTearOff_h |
- |
-#include "core/svg/properties/SVGPropertyTearOff.h" |
- |
-namespace WebCore { |
- |
-#if COMPILER(MSVC) |
-// UpdateMethod is 12 bytes. We have to pack to a size greater than or equal to that to avoid an |
-// alignment warning (C4121). 16 is the next-largest size allowed for packing, so we use that. |
-#pragma pack(push, 16) |
-#endif |
-template<typename ContextElement, typename PropertyType> |
-class SVGStaticPropertyTearOff FINAL : public SVGPropertyTearOff<PropertyType> { |
-public: |
- typedef SVGStaticPropertyTearOff<ContextElement, PropertyType> Self; |
- typedef void (ContextElement::*UpdateMethod)(); |
- |
- // Used for non-animated POD types that are not associated with a SVGAnimatedProperty object, nor with a XML DOM attribute |
- // (for example: SVGSVGElement::currentTranslate). |
- static PassRefPtr<Self> create(ContextElement* contextElement, PropertyType& value, UpdateMethod update) |
- { |
- ASSERT(contextElement); |
- return adoptRef(new Self(contextElement, value, update)); |
- } |
- |
- virtual void commitChange() OVERRIDE { (m_contextElement.get()->*m_update)(); } |
- |
-private: |
- SVGStaticPropertyTearOff(ContextElement* contextElement, PropertyType& value, UpdateMethod update) |
- : SVGPropertyTearOff<PropertyType>(0, UndefinedRole, value) |
- , m_update(update) |
- , m_contextElement(contextElement) |
- { |
- m_contextElement->setContextElement(); |
- } |
- |
- UpdateMethod m_update; |
- RefPtr<ContextElement> m_contextElement; |
-}; |
-#if COMPILER(MSVC) |
-#pragma pack(pop) |
-#endif |
- |
-} |
- |
-#endif // SVGStaticPropertyTearOff_h |