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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 void HTMLFormControlElement::updateVisibleValidationMessage() { | 455 void HTMLFormControlElement::updateVisibleValidationMessage() { |
456 Page* page = document().page(); | 456 Page* page = document().page(); |
457 if (!page) | 457 if (!page) |
458 return; | 458 return; |
459 String message; | 459 String message; |
460 if (layoutObject() && willValidate()) | 460 if (layoutObject() && willValidate()) |
461 message = validationMessage().stripWhiteSpace(); | 461 message = validationMessage().stripWhiteSpace(); |
462 | 462 |
463 m_hasValidationMessage = true; | 463 m_hasValidationMessage = true; |
464 ValidationMessageClient* client = &page->validationMessageClient(); | 464 ValidationMessageClient* client = &page->validationMessageClient(); |
465 TextDirection messageDir = LTR; | 465 TextDirection messageDir = TextDirection::Ltr; |
466 TextDirection subMessageDir = LTR; | 466 TextDirection subMessageDir = TextDirection::Ltr; |
467 String subMessage = validationSubMessage().stripWhiteSpace(); | 467 String subMessage = validationSubMessage().stripWhiteSpace(); |
468 if (message.isEmpty()) | 468 if (message.isEmpty()) |
469 client->hideValidationMessage(*this); | 469 client->hideValidationMessage(*this); |
470 else | 470 else |
471 findCustomValidationMessageTextDirection(message, messageDir, subMessage, | 471 findCustomValidationMessageTextDirection(message, messageDir, subMessage, |
472 subMessageDir); | 472 subMessageDir); |
473 client->showValidationMessage(*this, message, messageDir, subMessage, | 473 client->showValidationMessage(*this, message, messageDir, subMessage, |
474 subMessageDir); | 474 subMessageDir); |
475 } | 475 } |
476 | 476 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 623 |
624 void HTMLFormControlElement::copyNonAttributePropertiesFromElement( | 624 void HTMLFormControlElement::copyNonAttributePropertiesFromElement( |
625 const Element& source) { | 625 const Element& source) { |
626 HTMLElement::copyNonAttributePropertiesFromElement(source); | 626 HTMLElement::copyNonAttributePropertiesFromElement(source); |
627 setNeedsValidityCheck(); | 627 setNeedsValidityCheck(); |
628 } | 628 } |
629 | 629 |
630 void HTMLFormControlElement::associateWith(HTMLFormElement*){}; | 630 void HTMLFormControlElement::associateWith(HTMLFormElement*){}; |
631 | 631 |
632 } // namespace blink | 632 } // namespace blink |
OLD | NEW |