| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool HTMLOutputElement::matchesEnabledPseudoClass() const { | 59 bool HTMLOutputElement::matchesEnabledPseudoClass() const { |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool HTMLOutputElement::supportsFocus() const { | 63 bool HTMLOutputElement::supportsFocus() const { |
| 64 return HTMLElement::supportsFocus(); | 64 return HTMLElement::supportsFocus(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void HTMLOutputElement::parseAttribute(const QualifiedName& name, | 67 void HTMLOutputElement::parseAttribute( |
| 68 const AtomicString& oldValue, | 68 const AttributeModificationParams& params) { |
| 69 const AtomicString& value) { | 69 if (params.name == HTMLNames::forAttr) |
| 70 if (name == HTMLNames::forAttr) | 70 setFor(params.newValue); |
| 71 setFor(value); | |
| 72 else | 71 else |
| 73 HTMLFormControlElement::parseAttribute(name, oldValue, value); | 72 HTMLFormControlElement::parseAttribute(params); |
| 74 } | 73 } |
| 75 | 74 |
| 76 DOMTokenList* HTMLOutputElement::htmlFor() const { | 75 DOMTokenList* HTMLOutputElement::htmlFor() const { |
| 77 return m_tokens.get(); | 76 return m_tokens.get(); |
| 78 } | 77 } |
| 79 | 78 |
| 80 void HTMLOutputElement::setFor(const AtomicString& value) { | 79 void HTMLOutputElement::setFor(const AtomicString& value) { |
| 81 m_tokens->setValue(value); | 80 m_tokens->setValue(value); |
| 82 } | 81 } |
| 83 | 82 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return HTMLElement::tabIndex(); | 131 return HTMLElement::tabIndex(); |
| 133 } | 132 } |
| 134 | 133 |
| 135 DEFINE_TRACE(HTMLOutputElement) { | 134 DEFINE_TRACE(HTMLOutputElement) { |
| 136 visitor->trace(m_tokens); | 135 visitor->trace(m_tokens); |
| 137 HTMLFormControlElement::trace(visitor); | 136 HTMLFormControlElement::trace(visitor); |
| 138 DOMTokenListObserver::trace(visitor); | 137 DOMTokenListObserver::trace(visitor); |
| 139 } | 138 } |
| 140 | 139 |
| 141 } // namespace blink | 140 } // namespace blink |
| OLD | NEW |