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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 444 |
445 String HTMLTextAreaElement::validationMessage() const | 445 String HTMLTextAreaElement::validationMessage() const |
446 { | 446 { |
447 if (!willValidate()) | 447 if (!willValidate()) |
448 return String(); | 448 return String(); |
449 | 449 |
450 if (customError()) | 450 if (customError()) |
451 return customValidationMessage(); | 451 return customValidationMessage(); |
452 | 452 |
453 if (valueMissing()) | 453 if (valueMissing()) |
454 return locale().queryString(WebKit::WebLocalizedString::ValidationValueM
issing); | 454 return locale().queryString(blink::WebLocalizedString::ValidationValueMi
ssing); |
455 | 455 |
456 if (tooLong()) | 456 if (tooLong()) |
457 return locale().validationMessageTooLongText(computeLengthForSubmission(
value()), maxLength()); | 457 return locale().validationMessageTooLongText(computeLengthForSubmission(
value()), maxLength()); |
458 | 458 |
459 return String(); | 459 return String(); |
460 } | 460 } |
461 | 461 |
462 bool HTMLTextAreaElement::valueMissing() const | 462 bool HTMLTextAreaElement::valueMissing() const |
463 { | 463 { |
464 return willValidate() && valueMissing(value()); | 464 return willValidate() && valueMissing(value()); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 } | 535 } |
536 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); | 536 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); |
537 } | 537 } |
538 | 538 |
539 bool HTMLTextAreaElement::isInteractiveContent() const | 539 bool HTMLTextAreaElement::isInteractiveContent() const |
540 { | 540 { |
541 return true; | 541 return true; |
542 } | 542 } |
543 | 543 |
544 } | 544 } |
OLD | NEW |