| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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) 2006 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 StyleElement::insertedInto(this, insertionPoint); | 129 StyleElement::insertedInto(this, insertionPoint); |
| 130 return InsertionShouldCallDidNotifySubtreeInsertions; | 130 return InsertionShouldCallDidNotifySubtreeInsertions; |
| 131 } | 131 } |
| 132 | 132 |
| 133 void SVGStyleElement::didNotifySubtreeInsertionsToDocument() | 133 void SVGStyleElement::didNotifySubtreeInsertionsToDocument() |
| 134 { | 134 { |
| 135 if (StyleElement::processStyleSheet(document(), this) == StyleElement::Proce
ssingFatalError) | 135 if (StyleElement::processStyleSheet(document(), this) == StyleElement::Proce
ssingFatalError) |
| 136 notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresou
rce); | 136 notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresou
rce); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void SVGStyleElement::removedFrom(ContainerNode* insertionPoint, Node* next) | 139 void SVGStyleElement::removedFrom(ContainerNode* insertionPoint) |
| 140 { | 140 { |
| 141 SVGElement::removedFrom(insertionPoint, next); | 141 SVGElement::removedFrom(insertionPoint); |
| 142 StyleElement::removedFrom(this, insertionPoint); | 142 StyleElement::removedFrom(this, insertionPoint); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void SVGStyleElement::childrenChanged(const ChildrenChange& change) | 145 void SVGStyleElement::childrenChanged(const ChildrenChange& change) |
| 146 { | 146 { |
| 147 SVGElement::childrenChanged(change); | 147 SVGElement::childrenChanged(change); |
| 148 if (StyleElement::childrenChanged(this) == StyleElement::ProcessingFatalErro
r) | 148 if (StyleElement::childrenChanged(this) == StyleElement::ProcessingFatalErro
r) |
| 149 notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresou
rce); | 149 notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresou
rce); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void SVGStyleElement::notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErr
orStatus errorStatus) | 152 void SVGStyleElement::notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErr
orStatus errorStatus) |
| 153 { | 153 { |
| 154 if (errorStatus != NoErrorLoadingSubresource) | 154 if (errorStatus != NoErrorLoadingSubresource) |
| 155 styleErrorEventSender().dispatchEventSoon(this); | 155 styleErrorEventSender().dispatchEventSoon(this); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void SVGStyleElement::dispatchPendingEvent(SVGStyleEventSender* eventSender) | 158 void SVGStyleElement::dispatchPendingEvent(SVGStyleEventSender* eventSender) |
| 159 { | 159 { |
| 160 ASSERT_UNUSED(eventSender, eventSender == &styleErrorEventSender()); | 160 ASSERT_UNUSED(eventSender, eventSender == &styleErrorEventSender()); |
| 161 dispatchEvent(Event::create(EventTypeNames::error)); | 161 dispatchEvent(Event::create(EventTypeNames::error)); |
| 162 } | 162 } |
| 163 | 163 |
| 164 DEFINE_TRACE(SVGStyleElement) | 164 DEFINE_TRACE(SVGStyleElement) |
| 165 { | 165 { |
| 166 StyleElement::trace(visitor); | 166 StyleElement::trace(visitor); |
| 167 SVGElement::trace(visitor); | 167 SVGElement::trace(visitor); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } | 170 } |
| OLD | NEW |