| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 30 #include "core/XLinkNames.h" | 30 #include "core/XLinkNames.h" |
| 31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
| 32 #include "core/dom/ElementTraversal.h" | 32 #include "core/dom/ElementTraversal.h" |
| 33 #include "core/events/Event.h" | 33 #include "core/events/Event.h" |
| 34 #include "core/dom/shadow/ElementShadow.h" | 34 #include "core/dom/shadow/ElementShadow.h" |
| 35 #include "core/dom/shadow/ShadowRoot.h" | 35 #include "core/dom/shadow/ShadowRoot.h" |
| 36 #include "core/fetch/FetchRequest.h" | 36 #include "core/fetch/FetchRequest.h" |
| 37 #include "core/fetch/ResourceFetcher.h" | 37 #include "core/fetch/ResourceFetcher.h" |
| 38 #include "core/rendering/svg/RenderSVGTransformableContainer.h" | 38 #include "core/layout/svg/LayoutSVGTransformableContainer.h" |
| 39 #include "core/svg/SVGGElement.h" | 39 #include "core/svg/SVGGElement.h" |
| 40 #include "core/svg/SVGLengthContext.h" | 40 #include "core/svg/SVGLengthContext.h" |
| 41 #include "core/svg/SVGSVGElement.h" | 41 #include "core/svg/SVGSVGElement.h" |
| 42 #include "core/xml/parser/XMLDocumentParser.h" | 42 #include "core/xml/parser/XMLDocumentParser.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 inline SVGUseElement::SVGUseElement(Document& document) | 46 inline SVGUseElement::SVGUseElement(Document& document) |
| 47 : SVGGraphicsElement(SVGNames::useTag, document) | 47 : SVGGraphicsElement(SVGNames::useTag, document) |
| 48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 LayoutObject* SVGUseElement::createRenderer(const LayoutStyle&) | 415 LayoutObject* SVGUseElement::createRenderer(const LayoutStyle&) |
| 416 { | 416 { |
| 417 return new RenderSVGTransformableContainer(this); | 417 return new LayoutSVGTransformableContainer(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) |
| 426 || isSVGPolygonElement(element) | 426 || isSVGPolygonElement(element) |
| 427 || isSVGPolylineElement(element) | 427 || isSVGPolylineElement(element) |
| (...skipping 327 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 |