Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 587 } | 587 } |
| 588 | 588 |
| 589 if (name == HTMLNames::classAttr) { | 589 if (name == HTMLNames::classAttr) { |
| 590 // SVG animation has currently requires special storage of values so we set | 590 // SVG animation has currently requires special storage of values so we set |
| 591 // the className here. svgAttributeChanged actually causes the resulting | 591 // the className here. svgAttributeChanged actually causes the resulting |
| 592 // style updates (instead of Element::parseAttribute). We don't | 592 // style updates (instead of Element::parseAttribute). We don't |
| 593 // tell Element about the change to avoid parsing the class list twice | 593 // tell Element about the change to avoid parsing the class list twice |
| 594 SVGParsingError parseError = NoError; | 594 SVGParsingError parseError = NoError; |
| 595 m_className->setBaseValueAsString(value, parseError); | 595 m_className->setBaseValueAsString(value, parseError); |
| 596 reportAttributeParsingError(parseError, name, value); | 596 reportAttributeParsingError(parseError, name, value); |
| 597 } else if (name.matches(XMLNames::langAttr) || name.matches(XMLNames::spaceA ttr)) { | |
|
philipj_slow
2015/05/08 08:09:24
This isn't really related to removing the IDL attr
| |
| 598 } else if (name == tabindexAttr) { | 597 } else if (name == tabindexAttr) { |
| 599 Element::parseAttribute(name, value); | 598 Element::parseAttribute(name, value); |
| 600 } else { | 599 } else { |
| 601 // standard events | 600 // standard events |
| 602 const AtomicString& eventName = HTMLElement::eventNameForAttributeName(n ame); | 601 const AtomicString& eventName = HTMLElement::eventNameForAttributeName(n ame); |
| 603 if (!eventName.isNull()) | 602 if (!eventName.isNull()) |
| 604 setAttributeEventListener(eventName, createAttributeEventListener(th is, name, value, eventParameterName())); | 603 setAttributeEventListener(eventName, createAttributeEventListener(th is, name, value, eventParameterName())); |
| 605 else | 604 else |
| 606 Element::parseAttribute(name, value); | 605 Element::parseAttribute(name, value); |
| 607 } | 606 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1183 Element::trace(visitor); | 1182 Element::trace(visitor); |
| 1184 } | 1183 } |
| 1185 | 1184 |
| 1186 const AtomicString& SVGElement::eventParameterName() | 1185 const AtomicString& SVGElement::eventParameterName() |
| 1187 { | 1186 { |
| 1188 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral)); | 1187 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con structFromLiteral)); |
| 1189 return evtString; | 1188 return evtString; |
| 1190 } | 1189 } |
| 1191 | 1190 |
| 1192 } // namespace blink | 1191 } // namespace blink |
| OLD | NEW |