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

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

Issue 2853223002: getScreenCTM on <use> should not include the additional translation (Closed)
Patch Set: Created 3 years, 7 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 break; 208 break;
209 209
210 current = toSVGPatternElement(ref_node); 210 current = toSVGPatternElement(ref_node);
211 211
212 // Cycle detection 212 // Cycle detection
213 if (processed_patterns.Contains(current)) 213 if (processed_patterns.Contains(current))
214 break; 214 break;
215 } 215 }
216 } 216 }
217 217
218 AffineTransform SVGPatternElement::LocalCoordinateSpaceTransform() const { 218 AffineTransform SVGPatternElement::LocalCoordinateSpaceTransform(
219 CTMScope) const {
219 return CalculateTransform(SVGElement::kExcludeMotionTransform); 220 return CalculateTransform(SVGElement::kExcludeMotionTransform);
220 } 221 }
221 222
222 bool SVGPatternElement::SelfHasRelativeLengths() const { 223 bool SVGPatternElement::SelfHasRelativeLengths() const {
223 return x_->CurrentValue()->IsRelative() || y_->CurrentValue()->IsRelative() || 224 return x_->CurrentValue()->IsRelative() || y_->CurrentValue()->IsRelative() ||
224 width_->CurrentValue()->IsRelative() || 225 width_->CurrentValue()->IsRelative() ||
225 height_->CurrentValue()->IsRelative(); 226 height_->CurrentValue()->IsRelative();
226 } 227 }
227 228
228 } // namespace blink 229 } // 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