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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/layout/svg/SVGResources.h ('k') | Source/core/layout/svg/SVGResourcesCache.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) 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20 #include "config.h" 20 #include "config.h"
21 #include "core/layout/svg/SVGResources.h" 21 #include "core/layout/svg/SVGResources.h"
22 22
23 #include "core/SVGNames.h" 23 #include "core/SVGNames.h"
24 #include "core/layout/style/SVGLayoutStyle.h" 24 #include "core/layout/style/SVGComputedStyle.h"
25 #include "core/layout/svg/LayoutSVGResourceClipper.h" 25 #include "core/layout/svg/LayoutSVGResourceClipper.h"
26 #include "core/layout/svg/LayoutSVGResourceFilter.h" 26 #include "core/layout/svg/LayoutSVGResourceFilter.h"
27 #include "core/layout/svg/LayoutSVGResourceMarker.h" 27 #include "core/layout/svg/LayoutSVGResourceMarker.h"
28 #include "core/layout/svg/LayoutSVGResourceMasker.h" 28 #include "core/layout/svg/LayoutSVGResourceMasker.h"
29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" 29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h"
30 #include "core/svg/SVGFilterElement.h" 30 #include "core/svg/SVGFilterElement.h"
31 #include "core/svg/SVGGradientElement.h" 31 #include "core/svg/SVGGradientElement.h"
32 #include "core/svg/SVGPatternElement.h" 32 #include "core/svg/SVGPatternElement.h"
33 #include "core/svg/SVGURIReference.h" 33 #include "core/svg/SVGURIReference.h"
34 34
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 static inline SVGResources& ensureResources(OwnPtr<SVGResources>& resources) 199 static inline SVGResources& ensureResources(OwnPtr<SVGResources>& resources)
200 { 200 {
201 if (!resources) 201 if (!resources)
202 resources = adoptPtr(new SVGResources); 202 resources = adoptPtr(new SVGResources);
203 203
204 return *resources.get(); 204 return *resources.get();
205 } 205 }
206 206
207 PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object , const SVGLayoutStyle& style) 207 PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object , const SVGComputedStyle& style)
208 { 208 {
209 ASSERT(object); 209 ASSERT(object);
210 210
211 Node* node = object->node(); 211 Node* node = object->node();
212 ASSERT(node); 212 ASSERT(node);
213 ASSERT_WITH_SECURITY_IMPLICATION(node->isSVGElement()); 213 ASSERT_WITH_SECURITY_IMPLICATION(node->isSVGElement());
214 214
215 SVGElement* element = toSVGElement(node); 215 SVGElement* element = toSVGElement(node);
216 ASSERT(element); 216 ASSERT(element);
217 217
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 if (LayoutSVGResourcePaintServer* stroke = m_fillStrokeData->stroke) 683 if (LayoutSVGResourcePaintServer* stroke = m_fillStrokeData->stroke)
684 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element()); 684 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element());
685 } 685 }
686 686
687 if (m_linkedResource) 687 if (m_linkedResource)
688 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element()); 688 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element());
689 } 689 }
690 #endif 690 #endif
691 691
692 } 692 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/SVGResources.h ('k') | Source/core/layout/svg/SVGResourcesCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698