| OLD | NEW |
| 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 2009-2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 6 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 6 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 7 * Copyright (C) 2012 University of Szeged | 7 * Copyright (C) 2012 University of Szeged |
| 8 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> | 8 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 476 |
| 477 if (!element) | 477 if (!element) |
| 478 return; | 478 return; |
| 479 | 479 |
| 480 if (element->isSVGGeometryElement()) { | 480 if (element->isSVGGeometryElement()) { |
| 481 toSVGGeometryElement(*element).toClipPath(path); | 481 toSVGGeometryElement(*element).toClipPath(path); |
| 482 // FIXME: Avoid manual resolution of x/y here. Its potentially harmful. | 482 // FIXME: Avoid manual resolution of x/y here. Its potentially harmful. |
| 483 SVGLengthContext lengthContext(this); | 483 SVGLengthContext lengthContext(this); |
| 484 path.translate(FloatSize(m_x->currentValue()->value(lengthContext), | 484 path.translate(FloatSize(m_x->currentValue()->value(lengthContext), |
| 485 m_y->currentValue()->value(lengthContext))); | 485 m_y->currentValue()->value(lengthContext))); |
| 486 path.transform(calculateAnimatedLocalTransform()); | 486 path.transform(calculateTransform(SVGElement::IncludeMotionTransform)); |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 | 489 |
| 490 SVGGraphicsElement* SVGUseElement::visibleTargetGraphicsElementForClipping() | 490 SVGGraphicsElement* SVGUseElement::visibleTargetGraphicsElementForClipping() |
| 491 const { | 491 const { |
| 492 Node* n = userAgentShadowRoot()->firstChild(); | 492 Node* n = userAgentShadowRoot()->firstChild(); |
| 493 if (!n || !n->isSVGElement()) | 493 if (!n || !n->isSVGElement()) |
| 494 return nullptr; | 494 return nullptr; |
| 495 | 495 |
| 496 SVGElement& element = toSVGElement(*n); | 496 SVGElement& element = toSVGElement(*n); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 | 729 |
| 730 if (m_resource) | 730 if (m_resource) |
| 731 m_resource->removeClient(this); | 731 m_resource->removeClient(this); |
| 732 | 732 |
| 733 m_resource = resource; | 733 m_resource = resource; |
| 734 if (m_resource) | 734 if (m_resource) |
| 735 m_resource->addClient(this); | 735 m_resource->addClient(this); |
| 736 } | 736 } |
| 737 | 737 |
| 738 } // namespace blink | 738 } // namespace blink |
| OLD | NEW |