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

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

Issue 693423002: Devirtualize animatedLocalTransform() and rename it for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some codes that snuck in Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTextElement.cpp ('k') | no next file » | 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 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 if (element.isSVGGraphicsElement()) { 428 if (element.isSVGGraphicsElement()) {
429 if (!isDirectReference(element)) { 429 if (!isDirectReference(element)) {
430 // Spec: Indirect references are an error (14.3.5) 430 // Spec: Indirect references are an error (14.3.5)
431 document().accessSVGExtensions().reportError("Not allowed to use ind irect reference in <clip-path>"); 431 document().accessSVGExtensions().reportError("Not allowed to use ind irect reference in <clip-path>");
432 } else { 432 } else {
433 toSVGGraphicsElement(element).toClipPath(path); 433 toSVGGraphicsElement(element).toClipPath(path);
434 // FIXME: Avoid manual resolution of x/y here. Its potentially harmf ul. 434 // FIXME: Avoid manual resolution of x/y here. Its potentially harmf ul.
435 SVGLengthContext lengthContext(this); 435 SVGLengthContext lengthContext(this);
436 path.translate(FloatSize(m_x->currentValue()->value(lengthContext), m_y->currentValue()->value(lengthContext))); 436 path.translate(FloatSize(m_x->currentValue()->value(lengthContext), m_y->currentValue()->value(lengthContext)));
437 path.transform(animatedLocalTransform()); 437 path.transform(calculateAnimatedLocalTransform());
438 } 438 }
439 } 439 }
440 } 440 }
441 441
442 RenderObject* SVGUseElement::rendererClipChild() const 442 RenderObject* SVGUseElement::rendererClipChild() const
443 { 443 {
444 if (Node* n = userAgentShadowRoot()->firstChild()) { 444 if (Node* n = userAgentShadowRoot()->firstChild()) {
445 if (n->isSVGElement() && isDirectReference(toSVGElement(*n))) 445 if (n->isSVGElement() && isDirectReference(toSVGElement(*n)))
446 return n->renderer(); 446 return n->renderer();
447 } 447 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 m_resource->addClient(this); 750 m_resource->addClient(this);
751 } 751 }
752 752
753 void SVGUseElement::trace(Visitor* visitor) 753 void SVGUseElement::trace(Visitor* visitor)
754 { 754 {
755 visitor->trace(m_targetElementInstance); 755 visitor->trace(m_targetElementInstance);
756 SVGGraphicsElement::trace(visitor); 756 SVGGraphicsElement::trace(visitor);
757 } 757 }
758 758
759 } 759 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698