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

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

Issue 2711503002: Compute a more correct "screen scope" transform for SVGSVGElement (Closed)
Patch Set: Tweak test Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann
3 * <zimmermann@kde.org> 3 * <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 break; 209 break;
210 210
211 current = toSVGPatternElement(refNode); 211 current = toSVGPatternElement(refNode);
212 212
213 // Cycle detection 213 // Cycle detection
214 if (processedPatterns.contains(current)) 214 if (processedPatterns.contains(current))
215 break; 215 break;
216 } 216 }
217 } 217 }
218 218
219 AffineTransform SVGPatternElement::localCoordinateSpaceTransform( 219 AffineTransform SVGPatternElement::localCoordinateSpaceTransform() const {
220 SVGElement::CTMScope) const {
221 return calculateTransform(SVGElement::ExcludeMotionTransform); 220 return calculateTransform(SVGElement::ExcludeMotionTransform);
222 } 221 }
223 222
224 bool SVGPatternElement::selfHasRelativeLengths() const { 223 bool SVGPatternElement::selfHasRelativeLengths() const {
225 return m_x->currentValue()->isRelative() || 224 return m_x->currentValue()->isRelative() ||
226 m_y->currentValue()->isRelative() || 225 m_y->currentValue()->isRelative() ||
227 m_width->currentValue()->isRelative() || 226 m_width->currentValue()->isRelative() ||
228 m_height->currentValue()->isRelative(); 227 m_height->currentValue()->isRelative();
229 } 228 }
230 229
231 } // namespace blink 230 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPatternElement.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698