| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 String SVGStyleElement::title() const { | 76 String SVGStyleElement::title() const { |
| 77 return fastGetAttribute(SVGNames::titleAttr); | 77 return fastGetAttribute(SVGNames::titleAttr); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void SVGStyleElement::setTitle(const AtomicString& title) { | 80 void SVGStyleElement::setTitle(const AtomicString& title) { |
| 81 setAttribute(SVGNames::titleAttr, title); | 81 setAttribute(SVGNames::titleAttr, title); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void SVGStyleElement::parseAttribute(const QualifiedName& name, | 84 void SVGStyleElement::parseAttribute( |
| 85 const AtomicString& oldValue, | 85 const AttributeModificationParams& params) { |
| 86 const AtomicString& value) { | 86 if (params.name == SVGNames::titleAttr) { |
| 87 if (name == SVGNames::titleAttr) { | |
| 88 if (m_sheet && isInDocumentTree()) | 87 if (m_sheet && isInDocumentTree()) |
| 89 m_sheet->setTitle(value); | 88 m_sheet->setTitle(params.newValue); |
| 90 | 89 |
| 91 return; | 90 return; |
| 92 } | 91 } |
| 93 | 92 |
| 94 SVGElement::parseAttribute(name, oldValue, value); | 93 SVGElement::parseAttribute(params); |
| 95 } | 94 } |
| 96 | 95 |
| 97 void SVGStyleElement::finishParsingChildren() { | 96 void SVGStyleElement::finishParsingChildren() { |
| 98 StyleElement::ProcessingResult result = | 97 StyleElement::ProcessingResult result = |
| 99 StyleElement::finishParsingChildren(*this); | 98 StyleElement::finishParsingChildren(*this); |
| 100 SVGElement::finishParsingChildren(); | 99 SVGElement::finishParsingChildren(); |
| 101 if (result == StyleElement::ProcessingFatalError) | 100 if (result == StyleElement::ProcessingFatalError) |
| 102 notifyLoadedSheetAndAllCriticalSubresources( | 101 notifyLoadedSheetAndAllCriticalSubresources( |
| 103 ErrorOccurredLoadingSubresource); | 102 ErrorOccurredLoadingSubresource); |
| 104 } | 103 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void SVGStyleElement::dispatchPendingEvent() { | 140 void SVGStyleElement::dispatchPendingEvent() { |
| 142 dispatchEvent(Event::create(EventTypeNames::error)); | 141 dispatchEvent(Event::create(EventTypeNames::error)); |
| 143 } | 142 } |
| 144 | 143 |
| 145 DEFINE_TRACE(SVGStyleElement) { | 144 DEFINE_TRACE(SVGStyleElement) { |
| 146 StyleElement::trace(visitor); | 145 StyleElement::trace(visitor); |
| 147 SVGElement::trace(visitor); | 146 SVGElement::trace(visitor); |
| 148 } | 147 } |
| 149 | 148 |
| 150 } // namespace blink | 149 } // namespace blink |
| OLD | NEW |