| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 inline SVGUseElement::SVGUseElement(const QualifiedName& tagName, Document* docu
ment, bool wasInsertedByParser) | 83 inline SVGUseElement::SVGUseElement(const QualifiedName& tagName, Document* docu
ment, bool wasInsertedByParser) |
| 84 : SVGStyledTransformableElement(tagName, document) | 84 : SVGStyledTransformableElement(tagName, document) |
| 85 , m_x(LengthModeWidth) | 85 , m_x(LengthModeWidth) |
| 86 , m_y(LengthModeHeight) | 86 , m_y(LengthModeHeight) |
| 87 , m_width(LengthModeWidth) | 87 , m_width(LengthModeWidth) |
| 88 , m_height(LengthModeHeight) | 88 , m_height(LengthModeHeight) |
| 89 , m_wasInsertedByParser(wasInsertedByParser) | 89 , m_wasInsertedByParser(wasInsertedByParser) |
| 90 , m_haveFiredLoadEvent(false) | 90 , m_haveFiredLoadEvent(false) |
| 91 , m_needsShadowTreeRecreation(false) | 91 , m_needsShadowTreeRecreation(false) |
| 92 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
| 92 { | 93 { |
| 93 ASSERT(hasCustomCallbacks()); | 94 ASSERT(hasCustomCallbacks()); |
| 94 ASSERT(hasTagName(SVGNames::useTag)); | 95 ASSERT(hasTagName(SVGNames::useTag)); |
| 95 registerAnimatedPropertiesForSVGUseElement(); | 96 registerAnimatedPropertiesForSVGUseElement(); |
| 96 } | 97 } |
| 97 | 98 |
| 98 PassRefPtr<SVGUseElement> SVGUseElement::create(const QualifiedName& tagName, Do
cument* document, bool wasInsertedByParser) | 99 PassRefPtr<SVGUseElement> SVGUseElement::create(const QualifiedName& tagName, Do
cument* document, bool wasInsertedByParser) |
| 99 { | 100 { |
| 100 // Always build a #shadow-root for SVGUseElement. | 101 // Always build a #shadow-root for SVGUseElement. |
| 101 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(tagName, document, wa
sInsertedByParser)); | 102 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(tagName, document, wa
sInsertedByParser)); |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 SVGExternalResourcesRequired::finishParsingChildren(); | 986 SVGExternalResourcesRequired::finishParsingChildren(); |
| 986 if (m_wasInsertedByParser) { | 987 if (m_wasInsertedByParser) { |
| 987 buildPendingResource(); | 988 buildPendingResource(); |
| 988 m_wasInsertedByParser = false; | 989 m_wasInsertedByParser = false; |
| 989 } | 990 } |
| 990 } | 991 } |
| 991 | 992 |
| 992 } | 993 } |
| 993 | 994 |
| 994 #endif // ENABLE(SVG) | 995 #endif // ENABLE(SVG) |
| OLD | NEW |