Chromium Code Reviews| 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 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 RefPtr<HTMLTextAreaElement> textArea = adoptRef(new HTMLTextAreaElement(docu ment, form)); | 91 RefPtr<HTMLTextAreaElement> textArea = adoptRef(new HTMLTextAreaElement(docu ment, form)); |
| 92 textArea->ensureUserAgentShadowRoot(); | 92 textArea->ensureUserAgentShadowRoot(); |
| 93 return textArea.release(); | 93 return textArea.release(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) | 96 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
| 97 { | 97 { |
| 98 root.appendChild(TextControlInnerTextElement::create(document())); | 98 root.appendChild(TextControlInnerTextElement::create(document())); |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool HTMLTextAreaElement::shouldAutocomplete() const | |
|
tkent
2014/02/16 23:56:05
This function adds nothing. We don't need to add
| |
| 102 { | |
| 103 return HTMLTextFormControlElement::shouldAutocomplete(); | |
| 104 } | |
| 105 | |
| 101 const AtomicString& HTMLTextAreaElement::formControlType() const | 106 const AtomicString& HTMLTextAreaElement::formControlType() const |
| 102 { | 107 { |
| 103 DEFINE_STATIC_LOCAL(const AtomicString, textarea, ("textarea", AtomicString: :ConstructFromLiteral)); | 108 DEFINE_STATIC_LOCAL(const AtomicString, textarea, ("textarea", AtomicString: :ConstructFromLiteral)); |
| 104 return textarea; | 109 return textarea; |
| 105 } | 110 } |
| 106 | 111 |
| 107 FormControlState HTMLTextAreaElement::saveFormControlState() const | 112 FormControlState HTMLTextAreaElement::saveFormControlState() const |
| 108 { | 113 { |
| 109 return m_isDirty ? FormControlState(value()) : FormControlState(); | 114 return m_isDirty ? FormControlState(value()) : FormControlState(); |
| 110 } | 115 } |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 541 { | 546 { |
| 542 return true; | 547 return true; |
| 543 } | 548 } |
| 544 | 549 |
| 545 bool HTMLTextAreaElement::supportsAutofocus() const | 550 bool HTMLTextAreaElement::supportsAutofocus() const |
| 546 { | 551 { |
| 547 return true; | 552 return true; |
| 548 } | 553 } |
| 549 | 554 |
| 550 } | 555 } |
| OLD | NEW |