| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54 { | 54 { | 
| 55     return adoptRefWillBeNoop(new HTMLOutputElement(document, form)); | 55     return adoptRefWillBeNoop(new HTMLOutputElement(document, form)); | 
| 56 } | 56 } | 
| 57 | 57 | 
| 58 const AtomicString& HTMLOutputElement::formControlType() const | 58 const AtomicString& HTMLOutputElement::formControlType() const | 
| 59 { | 59 { | 
| 60     DEFINE_STATIC_LOCAL(const AtomicString, output, ("output", AtomicString::Con
     structFromLiteral)); | 60     DEFINE_STATIC_LOCAL(const AtomicString, output, ("output", AtomicString::Con
     structFromLiteral)); | 
| 61     return output; | 61     return output; | 
| 62 } | 62 } | 
| 63 | 63 | 
|  | 64 bool HTMLOutputElement::isDisabledFormControl() const | 
|  | 65 { | 
|  | 66     return false; | 
|  | 67 } | 
|  | 68 | 
| 64 bool HTMLOutputElement::supportsFocus() const | 69 bool HTMLOutputElement::supportsFocus() const | 
| 65 { | 70 { | 
| 66     return HTMLElement::supportsFocus(); | 71     return HTMLElement::supportsFocus(); | 
| 67 } | 72 } | 
| 68 | 73 | 
| 69 void HTMLOutputElement::parseAttribute(const QualifiedName& name, const AtomicSt
     ring& oldValue, const AtomicString& value) | 74 void HTMLOutputElement::parseAttribute(const QualifiedName& name, const AtomicSt
     ring& oldValue, const AtomicString& value) | 
| 70 { | 75 { | 
| 71     if (name == HTMLNames::forAttr) | 76     if (name == HTMLNames::forAttr) | 
| 72         setFor(value); | 77         setFor(value); | 
| 73     else | 78     else | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 140 | 145 | 
| 141 | 146 | 
| 142 DEFINE_TRACE(HTMLOutputElement) | 147 DEFINE_TRACE(HTMLOutputElement) | 
| 143 { | 148 { | 
| 144     visitor->trace(m_tokens); | 149     visitor->trace(m_tokens); | 
| 145     HTMLFormControlElement::trace(visitor); | 150     HTMLFormControlElement::trace(visitor); | 
| 146     DOMTokenListObserver::trace(visitor); | 151     DOMTokenListObserver::trace(visitor); | 
| 147 } | 152 } | 
| 148 | 153 | 
| 149 } // namespace blink | 154 } // namespace blink | 
| OLD | NEW | 
|---|