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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 SVGNames::widthAttr, | 64 SVGNames::widthAttr, |
65 SVGLength::create(SVGLengthMode::Width))), | 65 SVGLength::create(SVGLengthMode::Width))), |
66 m_height( | 66 m_height( |
67 SVGAnimatedLength::create(this, | 67 SVGAnimatedLength::create(this, |
68 SVGNames::heightAttr, | 68 SVGNames::heightAttr, |
69 SVGLength::create(SVGLengthMode::Height))), | 69 SVGLength::create(SVGLengthMode::Height))), |
70 m_elementIdentifierIsLocal(true), | 70 m_elementIdentifierIsLocal(true), |
71 m_haveFiredLoadEvent(false), | 71 m_haveFiredLoadEvent(false), |
72 m_needsShadowTreeRecreation(false) { | 72 m_needsShadowTreeRecreation(false) { |
73 ASSERT(hasCustomStyleCallbacks()); | 73 ASSERT(hasCustomStyleCallbacks()); |
74 ThreadState::current()->registerPreFinalizer(this); | |
75 | 74 |
76 addToPropertyMap(m_x); | 75 addToPropertyMap(m_x); |
77 addToPropertyMap(m_y); | 76 addToPropertyMap(m_y); |
78 addToPropertyMap(m_width); | 77 addToPropertyMap(m_width); |
79 addToPropertyMap(m_height); | 78 addToPropertyMap(m_height); |
80 } | 79 } |
81 | 80 |
82 SVGUseElement* SVGUseElement::create(Document& document) { | 81 SVGUseElement* SVGUseElement::create(Document& document) { |
83 // Always build a user agent #shadow-root for SVGUseElement. | 82 // Always build a user agent #shadow-root for SVGUseElement. |
84 SVGUseElement* use = new SVGUseElement(document); | 83 SVGUseElement* use = new SVGUseElement(document); |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 | 724 |
726 if (m_resource) | 725 if (m_resource) |
727 m_resource->removeClient(this); | 726 m_resource->removeClient(this); |
728 | 727 |
729 m_resource = resource; | 728 m_resource = resource; |
730 if (m_resource) | 729 if (m_resource) |
731 m_resource->addClient(this); | 730 m_resource->addClient(this); |
732 } | 731 } |
733 | 732 |
734 } // namespace blink | 733 } // namespace blink |
OLD | NEW |