| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ASSERT((*it)->shadowTreeElement()->correspondingElement() == (*it)->corr
espondingElement()); | 187 ASSERT((*it)->shadowTreeElement()->correspondingElement() == (*it)->corr
espondingElement()); |
| 188 ASSERT((*it)->correspondingElement() == element); | 188 ASSERT((*it)->correspondingElement() == element); |
| 189 (*it)->shadowTreeElement()->setCorrespondingElement(0); | 189 (*it)->shadowTreeElement()->setCorrespondingElement(0); |
| 190 | 190 |
| 191 if (SVGUseElement* element = (*it)->correspondingUseElement()) { | 191 if (SVGUseElement* element = (*it)->correspondingUseElement()) { |
| 192 ASSERT(element->inDocument()); | 192 ASSERT(element->inDocument()); |
| 193 element->invalidateShadowTree(); | 193 element->invalidateShadowTree(); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 element->document().updateStyleIfNeeded(); | 197 element->document().updateRenderTreeIfNeeded(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 const AtomicString& SVGElementInstance::interfaceName() const | 200 const AtomicString& SVGElementInstance::interfaceName() const |
| 201 { | 201 { |
| 202 return EventTargetNames::SVGElementInstance; | 202 return EventTargetNames::SVGElementInstance; |
| 203 } | 203 } |
| 204 | 204 |
| 205 ExecutionContext* SVGElementInstance::executionContext() const | 205 ExecutionContext* SVGElementInstance::executionContext() const |
| 206 { | 206 { |
| 207 return &m_element->document(); | 207 return &m_element->document(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 m_targetElement->setInstanceUpdatesBlocked(true); | 262 m_targetElement->setInstanceUpdatesBlocked(true); |
| 263 } | 263 } |
| 264 | 264 |
| 265 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 265 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
| 266 { | 266 { |
| 267 if (m_targetElement) | 267 if (m_targetElement) |
| 268 m_targetElement->setInstanceUpdatesBlocked(false); | 268 m_targetElement->setInstanceUpdatesBlocked(false); |
| 269 } | 269 } |
| 270 | 270 |
| 271 } | 271 } |
| OLD | NEW |