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

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

Issue 344693003: Reduce forward declarations in core/svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/SVGGlyphMap.h ('k') | Source/core/svg/SVGNumberTearOff.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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGlyphMap.h ('k') | Source/core/svg/SVGNumberTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698