| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 ASSERT((*it)->shadowTreeElement()->correspondingElement() == (*it)->corr
espondingElement()); | 188 ASSERT((*it)->shadowTreeElement()->correspondingElement() == (*it)->corr
espondingElement()); |
| 189 ASSERT((*it)->correspondingElement() == element); | 189 ASSERT((*it)->correspondingElement() == element); |
| 190 (*it)->shadowTreeElement()->setCorrespondingElement(0); | 190 (*it)->shadowTreeElement()->setCorrespondingElement(0); |
| 191 | 191 |
| 192 if (SVGUseElement* element = (*it)->correspondingUseElement()) { | 192 if (SVGUseElement* element = (*it)->correspondingUseElement()) { |
| 193 ASSERT(element->inDocument()); | 193 ASSERT(element->inDocument()); |
| 194 element->invalidateShadowTree(); | 194 element->invalidateShadowTree(); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 element->document()->updateStyleIfNeeded(); | 198 element->document().updateStyleIfNeeded(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 const AtomicString& SVGElementInstance::interfaceName() const | 201 const AtomicString& SVGElementInstance::interfaceName() const |
| 202 { | 202 { |
| 203 return eventNames().interfaceForSVGElementInstance; | 203 return eventNames().interfaceForSVGElementInstance; |
| 204 } | 204 } |
| 205 | 205 |
| 206 ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const | 206 ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const |
| 207 { | 207 { |
| 208 return m_element->document(); | 208 return &m_element->document(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool SVGElementInstance::addEventListener(const AtomicString& eventType, PassRef
Ptr<EventListener> listener, bool useCapture) | 211 bool SVGElementInstance::addEventListener(const AtomicString& eventType, PassRef
Ptr<EventListener> listener, bool useCapture) |
| 212 { | 212 { |
| 213 return m_element->addEventListener(eventType, listener, useCapture); | 213 return m_element->addEventListener(eventType, listener, useCapture); |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool SVGElementInstance::removeEventListener(const AtomicString& eventType, Even
tListener* listener, bool useCapture) | 216 bool SVGElementInstance::removeEventListener(const AtomicString& eventType, Even
tListener* listener, bool useCapture) |
| 217 { | 217 { |
| 218 return m_element->removeEventListener(eventType, listener, useCapture); | 218 return m_element->removeEventListener(eventType, listener, useCapture); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 m_targetElement->setInstanceUpdatesBlocked(true); | 263 m_targetElement->setInstanceUpdatesBlocked(true); |
| 264 } | 264 } |
| 265 | 265 |
| 266 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 266 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
| 267 { | 267 { |
| 268 if (m_targetElement) | 268 if (m_targetElement) |
| 269 m_targetElement->setInstanceUpdatesBlocked(false); | 269 m_targetElement->setInstanceUpdatesBlocked(false); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } | 272 } |
| OLD | NEW |