| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 setNonDirtyValue(value); | 421 setNonDirtyValue(value); |
| 422 } | 422 } |
| 423 | 423 |
| 424 int HTMLTextAreaElement::maxLength() const | 424 int HTMLTextAreaElement::maxLength() const |
| 425 { | 425 { |
| 426 bool ok; | 426 bool ok; |
| 427 int value = getAttribute(maxlengthAttr).string().toInt(&ok); | 427 int value = getAttribute(maxlengthAttr).string().toInt(&ok); |
| 428 return ok && value >= 0 ? value : -1; | 428 return ok && value >= 0 ? value : -1; |
| 429 } | 429 } |
| 430 | 430 |
| 431 void HTMLTextAreaElement::setMaxLength(int newValue, ExceptionState& es) | 431 void HTMLTextAreaElement::setMaxLength(int newValue, ExceptionState& exceptionSt
ate) |
| 432 { | 432 { |
| 433 if (newValue < 0) | 433 if (newValue < 0) |
| 434 es.throwUninformativeAndGenericDOMException(IndexSizeError); | 434 exceptionState.throwUninformativeAndGenericDOMException(IndexSizeError); |
| 435 else | 435 else |
| 436 setAttribute(maxlengthAttr, String::number(newValue)); | 436 setAttribute(maxlengthAttr, String::number(newValue)); |
| 437 } | 437 } |
| 438 | 438 |
| 439 String HTMLTextAreaElement::validationMessage() const | 439 String HTMLTextAreaElement::validationMessage() const |
| 440 { | 440 { |
| 441 if (!willValidate()) | 441 if (!willValidate()) |
| 442 return String(); | 442 return String(); |
| 443 | 443 |
| 444 if (customError()) | 444 if (customError()) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 } | 529 } |
| 530 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); | 530 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); |
| 531 } | 531 } |
| 532 | 532 |
| 533 bool HTMLTextAreaElement::isInteractiveContent() const | 533 bool HTMLTextAreaElement::isInteractiveContent() const |
| 534 { | 534 { |
| 535 return true; | 535 return true; |
| 536 } | 536 } |
| 537 | 537 |
| 538 } | 538 } |
| OLD | NEW |