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

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

Issue 545033003: Drop SVG_PAINTTYPE_* values that are never used (written) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResource.cpp ('k') | no next file » | 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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 return SVGURIReference::fragmentIdentifierFromIRIString(target, element.tree Scope()); 161 return SVGURIReference::fragmentIdentifierFromIRIString(target, element.tree Scope());
162 } 162 }
163 163
164 static inline bool svgPaintTypeHasURL(SVGPaintType paintType) 164 static inline bool svgPaintTypeHasURL(SVGPaintType paintType)
165 { 165 {
166 switch (paintType) { 166 switch (paintType) {
167 case SVG_PAINTTYPE_URI_NONE: 167 case SVG_PAINTTYPE_URI_NONE:
168 case SVG_PAINTTYPE_URI_CURRENTCOLOR: 168 case SVG_PAINTTYPE_URI_CURRENTCOLOR:
169 case SVG_PAINTTYPE_URI_RGBCOLOR: 169 case SVG_PAINTTYPE_URI_RGBCOLOR:
170 case SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR:
171 case SVG_PAINTTYPE_URI: 170 case SVG_PAINTTYPE_URI:
172 return true; 171 return true;
173 default: 172 default:
174 break; 173 break;
175 } 174 }
176 return false; 175 return false;
177 } 176 }
178 177
179 static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(TreeScope & treeScope, const SVGPaintType& paintType, const String& paintUri, AtomicString & id, bool& hasPendingResource) 178 static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(TreeScope & treeScope, const SVGPaintType& paintType, const String& paintUri, AtomicString & id, bool& hasPendingResource)
180 { 179 {
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) 706 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke)
708 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element()); 707 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element());
709 } 708 }
710 709
711 if (m_linkedResource) 710 if (m_linkedResource)
712 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element()); 711 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element());
713 } 712 }
714 #endif 713 #endif
715 714
716 } 715 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698