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

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

Issue 207103003: Add *explicit* keyword to avoid implicit type conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated Created 6 years, 9 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/css/RemoteFontFaceSource.h ('k') | Source/core/xml/parser/XMLDocumentParserScope.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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 26 matching lines...) Expand all
37 #endif 37 #endif
38 class SVGResourcesCache; 38 class SVGResourcesCache;
39 class SVGSMILElement; 39 class SVGSMILElement;
40 class SVGSVGElement; 40 class SVGSVGElement;
41 class Element; 41 class Element;
42 42
43 class SVGDocumentExtensions { 43 class SVGDocumentExtensions {
44 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); WTF_MAKE_FAST_ALLOCATED; 44 WTF_MAKE_NONCOPYABLE(SVGDocumentExtensions); WTF_MAKE_FAST_ALLOCATED;
45 public: 45 public:
46 typedef HashSet<Element*> SVGPendingElements; 46 typedef HashSet<Element*> SVGPendingElements;
47 SVGDocumentExtensions(Document*); 47 explicit SVGDocumentExtensions(Document*);
48 ~SVGDocumentExtensions(); 48 ~SVGDocumentExtensions();
49 49
50 void addTimeContainer(SVGSVGElement*); 50 void addTimeContainer(SVGSVGElement*);
51 void removeTimeContainer(SVGSVGElement*); 51 void removeTimeContainer(SVGSVGElement*);
52 52
53 void addResource(const AtomicString& id, RenderSVGResourceContainer*); 53 void addResource(const AtomicString& id, RenderSVGResourceContainer*);
54 void removeResource(const AtomicString& id); 54 void removeResource(const AtomicString& id);
55 RenderSVGResourceContainer* resourceById(const AtomicString& id) const; 55 RenderSVGResourceContainer* resourceById(const AtomicString& id) const;
56 56
57 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime); 57 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void markPendingResourcesForRemoval(const AtomicString&); 117 void markPendingResourcesForRemoval(const AtomicString&);
118 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&); 118 Element* removeElementFromPendingResourcesForRemoval(const AtomicString&);
119 119
120 private: 120 private:
121 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&); 121 PassOwnPtr<SVGPendingElements> removePendingResourceForRemoval(const AtomicS tring&);
122 }; 122 };
123 123
124 } 124 }
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/core/css/RemoteFontFaceSource.h ('k') | Source/core/xml/parser/XMLDocumentParserScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698