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

Side by Side Diff: Source/core/rendering/svg/RenderSVGGradientStop.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
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGImage.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Google, Inc. 3 * Copyright (C) 2009 Google, Inc.
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 13 matching lines...) Expand all
24 #include "core/rendering/RenderObject.h" 24 #include "core/rendering/RenderObject.h"
25 25
26 namespace WebCore { 26 namespace WebCore {
27 27
28 class SVGGradientElement; 28 class SVGGradientElement;
29 class SVGStopElement; 29 class SVGStopElement;
30 30
31 // This class exists mostly so we can hear about gradient stop style changes 31 // This class exists mostly so we can hear about gradient stop style changes
32 class RenderSVGGradientStop FINAL : public RenderObject { 32 class RenderSVGGradientStop FINAL : public RenderObject {
33 public: 33 public:
34 RenderSVGGradientStop(SVGStopElement*); 34 explicit RenderSVGGradientStop(SVGStopElement*);
35 virtual ~RenderSVGGradientStop(); 35 virtual ~RenderSVGGradientStop();
36 36
37 virtual bool isSVGGradientStop() const { return true; } 37 virtual bool isSVGGradientStop() const { return true; }
38 virtual const char* renderName() const { return "RenderSVGGradientStop"; } 38 virtual const char* renderName() const { return "RenderSVGGradientStop"; }
39 39
40 virtual void layout(); 40 virtual void layout();
41 41
42 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg> 42 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg>
43 // RenderObject's default implementations ASSERT_NOT_REACHED() 43 // RenderObject's default implementations ASSERT_NOT_REACHED()
44 // https://bugs.webkit.org/show_bug.cgi?id=20400 44 // https://bugs.webkit.org/show_bug.cgi?id=20400
(...skipping 11 matching lines...) Expand all
56 56
57 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object) 57 inline const RenderSVGGradientStop* toRenderSVGGradientStop(const RenderObject* object)
58 { 58 {
59 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop()); 59 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGGradientStop());
60 return static_cast<const RenderSVGGradientStop*>(object); 60 return static_cast<const RenderSVGGradientStop*>(object);
61 } 61 }
62 62
63 } 63 }
64 64
65 #endif // RenderSVGGradientStop_h 65 #endif // RenderSVGGradientStop_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698