| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 , m_cols(defaultCols) | 83 , m_cols(defaultCols) |
| 84 , m_wrap(SoftWrap) | 84 , m_wrap(SoftWrap) |
| 85 , m_isDirty(false) | 85 , m_isDirty(false) |
| 86 , m_valueIsUpToDate(true) | 86 , m_valueIsUpToDate(true) |
| 87 { | 87 { |
| 88 ScriptWrappable::init(this); | 88 ScriptWrappable::init(this); |
| 89 } | 89 } |
| 90 | 90 |
| 91 PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document
& document, HTMLFormElement* form) | 91 PassRefPtrWillBeRawPtr<HTMLTextAreaElement> HTMLTextAreaElement::create(Document
& document, HTMLFormElement* form) |
| 92 { | 92 { |
| 93 RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeRefCountedG
arbageCollected(new HTMLTextAreaElement(document, form)); | 93 RefPtrWillBeRawPtr<HTMLTextAreaElement> textArea = adoptRefWillBeNoop(new HT
MLTextAreaElement(document, form)); |
| 94 textArea->ensureUserAgentShadowRoot(); | 94 textArea->ensureUserAgentShadowRoot(); |
| 95 return textArea.release(); | 95 return textArea.release(); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) | 98 void HTMLTextAreaElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
| 99 { | 99 { |
| 100 root.appendChild(TextControlInnerTextElement::create(document())); | 100 root.appendChild(TextControlInnerTextElement::create(document())); |
| 101 } | 101 } |
| 102 | 102 |
| 103 const AtomicString& HTMLTextAreaElement::formControlType() const | 103 const AtomicString& HTMLTextAreaElement::formControlType() const |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 { | 561 { |
| 562 return true; | 562 return true; |
| 563 } | 563 } |
| 564 | 564 |
| 565 bool HTMLTextAreaElement::supportsAutofocus() const | 565 bool HTMLTextAreaElement::supportsAutofocus() const |
| 566 { | 566 { |
| 567 return true; | 567 return true; |
| 568 } | 568 } |
| 569 | 569 |
| 570 } | 570 } |
| OLD | NEW |