| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) | 313 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) |
| 314 --maxLength; | 314 --maxLength; |
| 315 return proposedValue.left(maxLength); | 315 return proposedValue.left(maxLength); |
| 316 } | 316 } |
| 317 | 317 |
| 318 void HTMLTextAreaElement::updateValue() const | 318 void HTMLTextAreaElement::updateValue() const |
| 319 { | 319 { |
| 320 if (m_valueIsUpToDate) | 320 if (m_valueIsUpToDate) |
| 321 return; | 321 return; |
| 322 | 322 |
| 323 ASSERT(renderer()); | |
| 324 m_value = innerEditorValue(); | 323 m_value = innerEditorValue(); |
| 325 const_cast<HTMLTextAreaElement*>(this)->m_valueIsUpToDate = true; | 324 const_cast<HTMLTextAreaElement*>(this)->m_valueIsUpToDate = true; |
| 326 const_cast<HTMLTextAreaElement*>(this)->notifyFormStateChanged(); | 325 const_cast<HTMLTextAreaElement*>(this)->notifyFormStateChanged(); |
| 327 m_isDirty = true; | 326 m_isDirty = true; |
| 328 const_cast<HTMLTextAreaElement*>(this)->updatePlaceholderVisibility(false); | 327 const_cast<HTMLTextAreaElement*>(this)->updatePlaceholderVisibility(false); |
| 329 } | 328 } |
| 330 | 329 |
| 331 String HTMLTextAreaElement::value() const | 330 String HTMLTextAreaElement::value() const |
| 332 { | 331 { |
| 333 updateValue(); | 332 updateValue(); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 { | 565 { |
| 567 return true; | 566 return true; |
| 568 } | 567 } |
| 569 | 568 |
| 570 bool HTMLTextAreaElement::supportsAutofocus() const | 569 bool HTMLTextAreaElement::supportsAutofocus() const |
| 571 { | 570 { |
| 572 return true; | 571 return true; |
| 573 } | 572 } |
| 574 | 573 |
| 575 } | 574 } |
| OLD | NEW |