OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 , m_correspondingUseElement(correspondingUseElement) | 44 , m_correspondingUseElement(correspondingUseElement) |
45 , m_directUseElement(directUseElement) | 45 , m_directUseElement(directUseElement) |
46 , m_element(originalElement) | 46 , m_element(originalElement) |
47 , m_previousSibling(0) | 47 , m_previousSibling(0) |
48 , m_nextSibling(0) | 48 , m_nextSibling(0) |
49 , m_firstChild(0) | 49 , m_firstChild(0) |
50 , m_lastChild(0) | 50 , m_lastChild(0) |
51 { | 51 { |
52 ASSERT(m_correspondingUseElement); | 52 ASSERT(m_correspondingUseElement); |
53 ASSERT(m_element); | 53 ASSERT(m_element); |
| 54 ScriptWrappable::init(this); |
54 | 55 |
55 // Register as instance for passed element. | 56 // Register as instance for passed element. |
56 m_element->mapInstanceToElement(this); | 57 m_element->mapInstanceToElement(this); |
57 | 58 |
58 #ifndef NDEBUG | 59 #ifndef NDEBUG |
59 instanceCounter.increment(); | 60 instanceCounter.increment(); |
60 #endif | 61 #endif |
61 } | 62 } |
62 | 63 |
63 SVGElementInstance::~SVGElementInstance() | 64 SVGElementInstance::~SVGElementInstance() |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 m_targetElement->setInstanceUpdatesBlocked(true); | 205 m_targetElement->setInstanceUpdatesBlocked(true); |
205 } | 206 } |
206 | 207 |
207 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 208 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
208 { | 209 { |
209 if (m_targetElement) | 210 if (m_targetElement) |
210 m_targetElement->setInstanceUpdatesBlocked(false); | 211 m_targetElement->setInstanceUpdatesBlocked(false); |
211 } | 212 } |
212 | 213 |
213 } | 214 } |
OLD | NEW |