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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.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, 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 6 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 void SVGElement::clearAnimatedAttribute(const QualifiedName& attribute) { 308 void SVGElement::clearAnimatedAttribute(const QualifiedName& attribute) {
309 forSelfAndInstances(this, [&attribute](SVGElement* element) { 309 forSelfAndInstances(this, [&attribute](SVGElement* element) {
310 if (SVGAnimatedPropertyBase* animatedProperty = 310 if (SVGAnimatedPropertyBase* animatedProperty =
311 element->propertyFromAttribute(attribute)) 311 element->propertyFromAttribute(attribute))
312 animatedProperty->animationEnded(); 312 animatedProperty->animationEnded();
313 }); 313 });
314 } 314 }
315 315
316 AffineTransform SVGElement::localCoordinateSpaceTransform(CTMScope) const { 316 AffineTransform SVGElement::localCoordinateSpaceTransform() const {
317 // To be overriden by SVGGraphicsElement (or as special case SVGTextElement 317 // To be overriden by SVGGraphicsElement (or as special case SVGTextElement
318 // and SVGPatternElement) 318 // and SVGPatternElement)
319 return AffineTransform(); 319 return AffineTransform();
320 } 320 }
321 321
322 bool SVGElement::hasTransform(ApplyMotionTransform applyMotionTransform) const { 322 bool SVGElement::hasTransform(ApplyMotionTransform applyMotionTransform) const {
323 return (layoutObject() && layoutObject()->styleRef().hasTransform()) || 323 return (layoutObject() && layoutObject()->styleRef().hasTransform()) ||
324 (applyMotionTransform == IncludeMotionTransform && hasSVGRareData()); 324 (applyMotionTransform == IncludeMotionTransform && hasSVGRareData());
325 } 325 }
326 326
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 visitor->trace(m_className); 1302 visitor->trace(m_className);
1303 Element::trace(visitor); 1303 Element::trace(visitor);
1304 } 1304 }
1305 1305
1306 const AtomicString& SVGElement::eventParameterName() { 1306 const AtomicString& SVGElement::eventParameterName() {
1307 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); 1307 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt"));
1308 return evtString; 1308 return evtString;
1309 } 1309 }
1310 1310
1311 } // namespace blink 1311 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698