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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceMarker.cpp

Issue 694283002: Const-ify static s_resourceType members in RenderSVGResouce* classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 10 matching lines...) Expand all
21 21
22 #include "config.h" 22 #include "config.h"
23 #include "core/rendering/svg/RenderSVGResourceMarker.h" 23 #include "core/rendering/svg/RenderSVGResourceMarker.h"
24 24
25 #include "core/rendering/svg/RenderSVGContainer.h" 25 #include "core/rendering/svg/RenderSVGContainer.h"
26 #include "core/rendering/svg/SVGRenderSupport.h" 26 #include "core/rendering/svg/SVGRenderSupport.h"
27 #include "wtf/TemporaryChange.h" 27 #include "wtf/TemporaryChange.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 const RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerReso urceType;
32
33 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) 31 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node)
34 : RenderSVGResourceContainer(node) 32 : RenderSVGResourceContainer(node)
35 { 33 {
36 } 34 }
37 35
38 RenderSVGResourceMarker::~RenderSVGResourceMarker() 36 RenderSVGResourceMarker::~RenderSVGResourceMarker()
39 { 37 {
40 } 38 }
41 39
42 void RenderSVGResourceMarker::layout() 40 void RenderSVGResourceMarker::layout()
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SVGMarkerElement* marker = toSVGMarkerElement(element()); 147 SVGMarkerElement* marker = toSVGMarkerElement(element());
150 ASSERT(marker); 148 ASSERT(marker);
151 149
152 SVGLengthContext lengthContext(marker); 150 SVGLengthContext lengthContext(marker);
153 float w = marker->markerWidth()->currentValue()->value(lengthContext); 151 float w = marker->markerWidth()->currentValue()->value(lengthContext);
154 float h = marker->markerHeight()->currentValue()->value(lengthContext); 152 float h = marker->markerHeight()->currentValue()->value(lengthContext);
155 m_viewport = FloatRect(0, 0, w, h); 153 m_viewport = FloatRect(0, 0, w, h);
156 } 154 }
157 155
158 } 156 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMarker.h ('k') | Source/core/rendering/svg/RenderSVGResourceMasker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698