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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.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, 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 280 }
281 281
282 void SVGElement::ClearAnimatedAttribute(const QualifiedName& attribute) { 282 void SVGElement::ClearAnimatedAttribute(const QualifiedName& attribute) {
283 ForSelfAndInstances(this, [&attribute](SVGElement* element) { 283 ForSelfAndInstances(this, [&attribute](SVGElement* element) {
284 if (SVGAnimatedPropertyBase* animated_property = 284 if (SVGAnimatedPropertyBase* animated_property =
285 element->PropertyFromAttribute(attribute)) 285 element->PropertyFromAttribute(attribute))
286 animated_property->AnimationEnded(); 286 animated_property->AnimationEnded();
287 }); 287 });
288 } 288 }
289 289
290 AffineTransform SVGElement::LocalCoordinateSpaceTransform() const { 290 AffineTransform SVGElement::LocalCoordinateSpaceTransform(CTMScope) const {
291 // To be overriden by SVGGraphicsElement (or as special case SVGTextElement 291 // To be overriden by SVGGraphicsElement (or as special case SVGTextElement
292 // and SVGPatternElement) 292 // and SVGPatternElement)
293 return AffineTransform(); 293 return AffineTransform();
294 } 294 }
295 295
296 bool SVGElement::HasTransform( 296 bool SVGElement::HasTransform(
297 ApplyMotionTransform apply_motion_transform) const { 297 ApplyMotionTransform apply_motion_transform) const {
298 return (GetLayoutObject() && GetLayoutObject()->StyleRef().HasTransform()) || 298 return (GetLayoutObject() && GetLayoutObject()->StyleRef().HasTransform()) ||
299 (apply_motion_transform == kIncludeMotionTransform && 299 (apply_motion_transform == kIncludeMotionTransform &&
300 HasSVGRareData()); 300 HasSVGRareData());
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 visitor->Trace(class_name_); 1339 visitor->Trace(class_name_);
1340 Element::Trace(visitor); 1340 Element::Trace(visitor);
1341 } 1341 }
1342 1342
1343 const AtomicString& SVGElement::EventParameterName() { 1343 const AtomicString& SVGElement::EventParameterName() {
1344 DEFINE_STATIC_LOCAL(const AtomicString, evt_string, ("evt")); 1344 DEFINE_STATIC_LOCAL(const AtomicString, evt_string, ("evt"));
1345 return evt_string; 1345 return evt_string;
1346 } 1346 }
1347 1347
1348 } // namespace blink 1348 } // 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