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

Side by Side Diff: Source/core/svg/SVGPatternElement.cpp

Issue 924943009: Fix template angle bracket syntax in svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.cpp » ('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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 element->patternTransform()->currentValue()->concatenate(transform); 192 element->patternTransform()->currentValue()->concatenate(transform);
193 attributes.setPatternTransform(transform); 193 attributes.setPatternTransform(transform);
194 } 194 }
195 195
196 if (!attributes.hasPatternContentElement() && ElementTraversal::firstWithin( *element)) 196 if (!attributes.hasPatternContentElement() && ElementTraversal::firstWithin( *element))
197 attributes.setPatternContentElement(element); 197 attributes.setPatternContentElement(element);
198 } 198 }
199 199
200 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes) const 200 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes) const
201 { 201 {
202 WillBeHeapHashSet<RawPtrWillBeMember<const SVGPatternElement> > processedPat terns; 202 WillBeHeapHashSet<RawPtrWillBeMember<const SVGPatternElement>> processedPatt erns;
203 const SVGPatternElement* current = this; 203 const SVGPatternElement* current = this;
204 204
205 while (true) { 205 while (true) {
206 setPatternAttributes(current, attributes); 206 setPatternAttributes(current, attributes);
207 processedPatterns.add(current); 207 processedPatterns.add(current);
208 208
209 // Respect xlink:href, take attributes from referenced element 209 // Respect xlink:href, take attributes from referenced element
210 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre fString(), treeScope()); 210 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre fString(), treeScope());
211 if (isSVGPatternElement(refNode)) { 211 if (isSVGPatternElement(refNode)) {
212 current = toSVGPatternElement(refNode); 212 current = toSVGPatternElement(refNode);
(...skipping 18 matching lines...) Expand all
231 231
232 bool SVGPatternElement::selfHasRelativeLengths() const 232 bool SVGPatternElement::selfHasRelativeLengths() const
233 { 233 {
234 return m_x->currentValue()->isRelative() 234 return m_x->currentValue()->isRelative()
235 || m_y->currentValue()->isRelative() 235 || m_y->currentValue()->isRelative()
236 || m_width->currentValue()->isRelative() 236 || m_width->currentValue()->isRelative()
237 || m_height->currentValue()->isRelative(); 237 || m_height->currentValue()->isRelative();
238 } 238 }
239 239
240 } // namespace blink 240 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698