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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/Path2D.h

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 16 matching lines...) Expand all
27 27
28 #ifndef Path2D_h 28 #ifndef Path2D_h
29 #define Path2D_h 29 #define Path2D_h
30 30
31 #include "bindings/core/v8/ScriptWrappable.h" 31 #include "bindings/core/v8/ScriptWrappable.h"
32 #include "core/svg/SVGMatrixTearOff.h" 32 #include "core/svg/SVGMatrixTearOff.h"
33 #include "core/svg/SVGPathUtilities.h" 33 #include "core/svg/SVGPathUtilities.h"
34 #include "modules/canvas2d/CanvasPathMethods.h" 34 #include "modules/canvas2d/CanvasPathMethods.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/transforms/AffineTransform.h" 36 #include "platform/transforms/AffineTransform.h"
37 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefCounted.h"
39 37
40 namespace blink { 38 namespace blink {
41 39
42 class Path2D final : public GarbageCollectedFinalized<Path2D>, public CanvasPath Methods, public ScriptWrappable { 40 class Path2D final : public GarbageCollectedFinalized<Path2D>, public CanvasPath Methods, public ScriptWrappable {
43 DEFINE_WRAPPERTYPEINFO(); 41 DEFINE_WRAPPERTYPEINFO();
44 WTF_MAKE_NONCOPYABLE(Path2D); 42 WTF_MAKE_NONCOPYABLE(Path2D);
45 public: 43 public:
46 static Path2D* create() { return new Path2D; } 44 static Path2D* create() { return new Path2D; }
47 static Path2D* create(const String& pathData) { return new Path2D(pathData); } 45 static Path2D* create(const String& pathData) { return new Path2D(pathData); }
48 static Path2D* create(Path2D* path) { return new Path2D(path); } 46 static Path2D* create(Path2D* path) { return new Path2D(path); }
(...skipping 27 matching lines...) Expand all
76 Path2D(const String& pathData) 74 Path2D(const String& pathData)
77 : CanvasPathMethods() 75 : CanvasPathMethods()
78 { 76 {
79 buildPathFromString(pathData, m_path); 77 buildPathFromString(pathData, m_path);
80 } 78 }
81 }; 79 };
82 80
83 } // namespace blink 81 } // namespace blink
84 82
85 #endif // Path2D_h 83 #endif // Path2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698