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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 String HTMLTextAreaElement::validationMessage() const | 505 String HTMLTextAreaElement::validationMessage() const |
506 { | 506 { |
507 if (!willValidate()) | 507 if (!willValidate()) |
508 return String(); | 508 return String(); |
509 | 509 |
510 if (customError()) | 510 if (customError()) |
511 return customValidationMessage(); | 511 return customValidationMessage(); |
512 | 512 |
513 if (valueMissing()) | 513 if (valueMissing()) |
514 return locale().queryString(blink::WebLocalizedString::ValidationValueMi
ssing); | 514 return locale().queryString(WebLocalizedString::ValidationValueMissing); |
515 | 515 |
516 if (tooLong()) | 516 if (tooLong()) |
517 return locale().validationMessageTooLongText(computeLengthForSubmission(
value()), maxLength()); | 517 return locale().validationMessageTooLongText(computeLengthForSubmission(
value()), maxLength()); |
518 | 518 |
519 if (tooShort()) | 519 if (tooShort()) |
520 return locale().validationMessageTooShortText(computeLengthForSubmission
(value()), minLength()); | 520 return locale().validationMessageTooShortText(computeLengthForSubmission
(value()), minLength()); |
521 | 521 |
522 return String(); | 522 return String(); |
523 } | 523 } |
524 | 524 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); | 639 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); |
640 } | 640 } |
641 | 641 |
642 const AtomicString& HTMLTextAreaElement::defaultAutocapitalize() const | 642 const AtomicString& HTMLTextAreaElement::defaultAutocapitalize() const |
643 { | 643 { |
644 DEFINE_STATIC_LOCAL(const AtomicString, sentences, ("sentences", AtomicStrin
g::ConstructFromLiteral)); | 644 DEFINE_STATIC_LOCAL(const AtomicString, sentences, ("sentences", AtomicStrin
g::ConstructFromLiteral)); |
645 return sentences; | 645 return sentences; |
646 } | 646 } |
647 | 647 |
648 } // namespace blink | 648 } // namespace blink |
OLD | NEW |