| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 6 * (http://www.torchmobile.com/) | 6 * (http://www.torchmobile.com/) |
| 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 } | 455 } |
| 456 | 456 |
| 457 void HTMLElement::ParseAttribute(const AttributeModificationParams& params) { | 457 void HTMLElement::ParseAttribute(const AttributeModificationParams& params) { |
| 458 if (params.name == tabindexAttr || params.name == XMLNames::langAttr) | 458 if (params.name == tabindexAttr || params.name == XMLNames::langAttr) |
| 459 return Element::ParseAttribute(params); | 459 return Element::ParseAttribute(params); |
| 460 | 460 |
| 461 if (params.name == dirAttr) { | 461 if (params.name == dirAttr) { |
| 462 DirAttributeChanged(params.new_value); | 462 DirAttributeChanged(params.new_value); |
| 463 } else if (params.name == langAttr) { | 463 } else if (params.name == langAttr) { |
| 464 PseudoStateChanged(CSSSelector::kPseudoLang); | 464 PseudoStateChanged(CSSSelector::kPseudoLang); |
| 465 } else if (params.name == inertAttr) { |
| 466 UseCounter::Count(GetDocument(), UseCounter::kInertAttribute); |
| 465 } else { | 467 } else { |
| 466 const AtomicString& event_name = EventNameForAttributeName(params.name); | 468 const AtomicString& event_name = EventNameForAttributeName(params.name); |
| 467 if (!event_name.IsNull()) { | 469 if (!event_name.IsNull()) { |
| 468 SetAttributeEventListener( | 470 SetAttributeEventListener( |
| 469 event_name, | 471 event_name, |
| 470 CreateAttributeEventListener(this, params.name, params.new_value, | 472 CreateAttributeEventListener(this, params.name, params.new_value, |
| 471 EventParameterName())); | 473 EventParameterName())); |
| 472 } | 474 } |
| 473 } | 475 } |
| 474 } | 476 } |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 | 1199 |
| 1198 #ifndef NDEBUG | 1200 #ifndef NDEBUG |
| 1199 | 1201 |
| 1200 // For use in the debugger | 1202 // For use in the debugger |
| 1201 void dumpInnerHTML(blink::HTMLElement*); | 1203 void dumpInnerHTML(blink::HTMLElement*); |
| 1202 | 1204 |
| 1203 void dumpInnerHTML(blink::HTMLElement* element) { | 1205 void dumpInnerHTML(blink::HTMLElement* element) { |
| 1204 printf("%s\n", element->innerHTML().Ascii().data()); | 1206 printf("%s\n", element->innerHTML().Ascii().data()); |
| 1205 } | 1207 } |
| 1206 #endif | 1208 #endif |
| OLD | NEW |