OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef SVGInteger_h | 31 #ifndef SVGInteger_h |
32 #define SVGInteger_h | 32 #define SVGInteger_h |
33 | 33 |
34 #include "bindings/v8/ExceptionMessages.h" | 34 #include "bindings/v8/ExceptionMessages.h" |
35 #include "bindings/v8/ExceptionStatePlaceholder.h" | 35 #include "bindings/v8/ExceptionStatePlaceholder.h" |
36 #include "core/svg/properties/SVGProperty.h" | 36 #include "core/svg/properties/SVGProperty.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class SVGIntegerTearOff; | |
41 | |
42 class SVGInteger : public SVGPropertyBase { | 40 class SVGInteger : public SVGPropertyBase { |
43 public: | 41 public: |
44 typedef void TearOffType; | 42 typedef void TearOffType; |
45 typedef int PrimitiveType; | 43 typedef int PrimitiveType; |
46 | 44 |
47 static PassRefPtr<SVGInteger> create(int value = 0) | 45 static PassRefPtr<SVGInteger> create(int value = 0) |
48 { | 46 { |
49 return adoptRef(new SVGInteger(value)); | 47 return adoptRef(new SVGInteger(value)); |
50 } | 48 } |
51 | 49 |
(...skipping 21 matching lines...) Expand all Loading... |
73 inline PassRefPtr<SVGInteger> toSVGInteger(PassRefPtr<SVGPropertyBase> passBase) | 71 inline PassRefPtr<SVGInteger> toSVGInteger(PassRefPtr<SVGPropertyBase> passBase) |
74 { | 72 { |
75 RefPtr<SVGPropertyBase> base = passBase; | 73 RefPtr<SVGPropertyBase> base = passBase; |
76 ASSERT(base->type() == SVGInteger::classType()); | 74 ASSERT(base->type() == SVGInteger::classType()); |
77 return static_pointer_cast<SVGInteger>(base.release()); | 75 return static_pointer_cast<SVGInteger>(base.release()); |
78 } | 76 } |
79 | 77 |
80 } // namespace WebCore | 78 } // namespace WebCore |
81 | 79 |
82 #endif // SVGInteger_h | 80 #endif // SVGInteger_h |
OLD | NEW |