| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |