summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/properties/SVGPropertyTraits.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/properties/SVGPropertyTraits.h')
-rw-r--r--Source/WebCore/svg/properties/SVGPropertyTraits.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/WebCore/svg/properties/SVGPropertyTraits.h b/Source/WebCore/svg/properties/SVGPropertyTraits.h
index 3abb5a8a1..afdad958a 100644
--- a/Source/WebCore/svg/properties/SVGPropertyTraits.h
+++ b/Source/WebCore/svg/properties/SVGPropertyTraits.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPropertyTraits_h
-#define SVGPropertyTraits_h
+#pragma once
-#if ENABLE(SVG)
#include <wtf/text/WTFString.h>
namespace WebCore {
@@ -59,7 +57,10 @@ struct SVGPropertyTraits<String> {
static String toString(const String& type) { return type; }
};
-}
+template<typename EnumType>
+struct SVGIDLEnumLimits {
+ // Specialize this function for a particular enumeration to limit the values that are exposed through the DOM.
+ static unsigned highestExposedEnumValue() { return SVGPropertyTraits<EnumType>::highestEnumValue(); }
+};
-#endif
-#endif
+} // namespace WebCore