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

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

Issue 32713002: Move more data from .data to the .rodata section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 15 matching lines...) Expand all
26 #include "core/platform/graphics/GraphicsContextStateSaver.h" 26 #include "core/platform/graphics/GraphicsContextStateSaver.h"
27 #include "core/rendering/svg/RenderSVGContainer.h" 27 #include "core/rendering/svg/RenderSVGContainer.h"
28 #include "core/rendering/svg/SVGRenderSupport.h" 28 #include "core/rendering/svg/SVGRenderSupport.h"
29 #include "core/svg/SVGElement.h" 29 #include "core/svg/SVGElement.h"
30 #include "core/svg/SVGMarkerElement.h" 30 #include "core/svg/SVGMarkerElement.h"
31 31
32 #include "wtf/TemporaryChange.h" 32 #include "wtf/TemporaryChange.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy pe; 36 const RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerReso urceType;
37 37
38 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) 38 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node)
39 : RenderSVGResourceContainer(node) 39 : RenderSVGResourceContainer(node)
40 { 40 {
41 } 41 }
42 42
43 RenderSVGResourceMarker::~RenderSVGResourceMarker() 43 RenderSVGResourceMarker::~RenderSVGResourceMarker()
44 { 44 {
45 } 45 }
46 46
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 SVGMarkerElement* marker = toSVGMarkerElement(element()); 176 SVGMarkerElement* marker = toSVGMarkerElement(element());
177 ASSERT(marker); 177 ASSERT(marker);
178 178
179 SVGLengthContext lengthContext(marker); 179 SVGLengthContext lengthContext(marker);
180 float w = marker->markerWidthCurrentValue().value(lengthContext); 180 float w = marker->markerWidthCurrentValue().value(lengthContext);
181 float h = marker->markerHeightCurrentValue().value(lengthContext); 181 float h = marker->markerHeightCurrentValue().value(lengthContext);
182 m_viewport = FloatRect(0, 0, w, h); 182 m_viewport = FloatRect(0, 0, w, h);
183 } 183 }
184 184
185 } 185 }
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