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. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 return attributeNameToEventNameMap.get(attrName.localName()); | 356 return attributeNameToEventNameMap.get(attrName.localName()); |
357 } | 357 } |
358 | 358 |
359 void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString&
oldValue, const AtomicString& value) | 359 void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString&
oldValue, const AtomicString& value) |
360 { | 360 { |
361 if (name == tabindexAttr || name == XMLNames::langAttr) | 361 if (name == tabindexAttr || name == XMLNames::langAttr) |
362 return Element::parseAttribute(name, oldValue, value); | 362 return Element::parseAttribute(name, oldValue, value); |
363 | 363 |
364 if (name == dirAttr) { | 364 if (name == dirAttr) { |
365 dirAttributeChanged(value); | 365 dirAttributeChanged(value); |
| 366 pseudoStateChanged(CSSSelector::PseudoDir); |
366 } else if (name == langAttr) { | 367 } else if (name == langAttr) { |
367 pseudoStateChanged(CSSSelector::PseudoLang); | 368 pseudoStateChanged(CSSSelector::PseudoLang); |
368 } else { | 369 } else { |
369 const AtomicString& eventName = eventNameForAttributeName(name); | 370 const AtomicString& eventName = eventNameForAttributeName(name); |
370 if (!eventName.isNull()) | 371 if (!eventName.isNull()) |
371 setAttributeEventListener(eventName, createAttributeEventListener(th
is, name, value, eventParameterName())); | 372 setAttributeEventListener(eventName, createAttributeEventListener(th
is, name, value, eventParameterName())); |
372 } | 373 } |
373 } | 374 } |
374 | 375 |
375 PassRefPtrWillBeRawPtr<DocumentFragment> HTMLElement::textToFragment(const Strin
g& text, ExceptionState& exceptionState) | 376 PassRefPtrWillBeRawPtr<DocumentFragment> HTMLElement::textToFragment(const Strin
g& text, ExceptionState& exceptionState) |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 #ifndef NDEBUG | 1033 #ifndef NDEBUG |
1033 | 1034 |
1034 // For use in the debugger | 1035 // For use in the debugger |
1035 void dumpInnerHTML(blink::HTMLElement*); | 1036 void dumpInnerHTML(blink::HTMLElement*); |
1036 | 1037 |
1037 void dumpInnerHTML(blink::HTMLElement* element) | 1038 void dumpInnerHTML(blink::HTMLElement* element) |
1038 { | 1039 { |
1039 printf("%s\n", element->innerHTML().ascii().data()); | 1040 printf("%s\n", element->innerHTML().ascii().data()); |
1040 } | 1041 } |
1041 #endif | 1042 #endif |
OLD | NEW |