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

Side by Side Diff: Source/core/rendering/svg/RenderSVGImage.h

Issue 23531058: Missing *explicit* keyword in constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 15 matching lines...) Expand all
26 26
27 #include "core/rendering/svg/RenderSVGModelObject.h" 27 #include "core/rendering/svg/RenderSVGModelObject.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class RenderImageResource; 31 class RenderImageResource;
32 class SVGImageElement; 32 class SVGImageElement;
33 33
34 class RenderSVGImage FINAL : public RenderSVGModelObject { 34 class RenderSVGImage FINAL : public RenderSVGModelObject {
35 public: 35 public:
36 RenderSVGImage(SVGImageElement*); 36 explicit RenderSVGImage(SVGImageElement*);
37 virtual ~RenderSVGImage(); 37 virtual ~RenderSVGImage();
38 38
39 bool updateImageViewport(); 39 bool updateImageViewport();
40 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; } 40 virtual void setNeedsBoundariesUpdate() { m_needsBoundariesUpdate = true; }
41 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda te; } 41 virtual bool needsBoundariesUpdate() OVERRIDE { return m_needsBoundariesUpda te; }
42 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } 42 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; }
43 43
44 RenderImageResource* imageResource() { return m_imageResource.get(); } 44 RenderImageResource* imageResource() { return m_imageResource.get(); }
45 const RenderImageResource* imageResource() const { return m_imageResource.ge t(); } 45 const RenderImageResource* imageResource() const { return m_imageResource.ge t(); }
46 46
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGImage()); 92 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGImage());
93 return static_cast<const RenderSVGImage*>(object); 93 return static_cast<const RenderSVGImage*>(object);
94 } 94 }
95 95
96 // This will catch anyone doing an unnecessary cast. 96 // This will catch anyone doing an unnecessary cast.
97 void toRenderSVGImage(const RenderSVGImage*); 97 void toRenderSVGImage(const RenderSVGImage*);
98 98
99 } // namespace WebCore 99 } // namespace WebCore
100 100
101 #endif // RenderSVGImage_h 101 #endif // RenderSVGImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGGradientStop.h ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698