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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 405 |
406 m_targetElementInstance = toSVGElement(shadowTreeRootElement->firstChild()); | 406 m_targetElementInstance = toSVGElement(shadowTreeRootElement->firstChild()); |
407 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance.get(), *m_t
argetElementInstance->correspondingElement()); | 407 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance.get(), *m_t
argetElementInstance->correspondingElement()); |
408 | 408 |
409 ASSERT(m_targetElementInstance->parentNode() == shadowTreeRootElement); | 409 ASSERT(m_targetElementInstance->parentNode() == shadowTreeRootElement); |
410 | 410 |
411 // Update relative length information. | 411 // Update relative length information. |
412 updateRelativeLengthsInformation(); | 412 updateRelativeLengthsInformation(); |
413 } | 413 } |
414 | 414 |
415 RenderObject* SVGUseElement::createRenderer(RenderStyle*) | 415 RenderObject* SVGUseElement::createRenderer(const RenderStyle*) |
416 { | 416 { |
417 return new RenderSVGTransformableContainer(this); | 417 return new RenderSVGTransformableContainer(this); |
418 } | 418 } |
419 | 419 |
420 static bool isDirectReference(const SVGElement& element) | 420 static bool isDirectReference(const SVGElement& element) |
421 { | 421 { |
422 return isSVGPathElement(element) | 422 return isSVGPathElement(element) |
423 || isSVGRectElement(element) | 423 || isSVGRectElement(element) |
424 || isSVGCircleElement(element) | 424 || isSVGCircleElement(element) |
425 || isSVGEllipseElement(element) | 425 || isSVGEllipseElement(element) |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 | 755 |
756 if (m_resource) | 756 if (m_resource) |
757 m_resource->removeClient(this); | 757 m_resource->removeClient(this); |
758 | 758 |
759 m_resource = resource; | 759 m_resource = resource; |
760 if (m_resource) | 760 if (m_resource) |
761 m_resource->addClient(this); | 761 m_resource->addClient(this); |
762 } | 762 } |
763 | 763 |
764 } | 764 } |
OLD | NEW |