| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 void HTMLFormControlElement::updateVisibleValidationMessage() { | 464 void HTMLFormControlElement::updateVisibleValidationMessage() { |
| 465 Page* page = document().page(); | 465 Page* page = document().page(); |
| 466 if (!page || !page->isPageVisible()) | 466 if (!page || !page->isPageVisible()) |
| 467 return; | 467 return; |
| 468 String message; | 468 String message; |
| 469 if (layoutObject() && willValidate()) | 469 if (layoutObject() && willValidate()) |
| 470 message = validationMessage().stripWhiteSpace(); | 470 message = validationMessage().stripWhiteSpace(); |
| 471 | 471 |
| 472 m_hasValidationMessage = true; | 472 m_hasValidationMessage = true; |
| 473 ValidationMessageClient* client = &page->validationMessageClient(); | 473 ValidationMessageClient* client = &page->validationMessageClient(); |
| 474 TextDirection messageDir = TextDirection::Ltr; | 474 TextDirection messageDir = TextDirection::kLtr; |
| 475 TextDirection subMessageDir = TextDirection::Ltr; | 475 TextDirection subMessageDir = TextDirection::kLtr; |
| 476 String subMessage = validationSubMessage().stripWhiteSpace(); | 476 String subMessage = validationSubMessage().stripWhiteSpace(); |
| 477 if (message.isEmpty()) | 477 if (message.isEmpty()) |
| 478 client->hideValidationMessage(*this); | 478 client->hideValidationMessage(*this); |
| 479 else | 479 else |
| 480 findCustomValidationMessageTextDirection(message, messageDir, subMessage, | 480 findCustomValidationMessageTextDirection(message, messageDir, subMessage, |
| 481 subMessageDir); | 481 subMessageDir); |
| 482 client->showValidationMessage(*this, message, messageDir, subMessage, | 482 client->showValidationMessage(*this, message, messageDir, subMessage, |
| 483 subMessageDir); | 483 subMessageDir); |
| 484 } | 484 } |
| 485 | 485 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 const Element& source) { | 636 const Element& source) { |
| 637 HTMLElement::copyNonAttributePropertiesFromElement(source); | 637 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 638 setNeedsValidityCheck(); | 638 setNeedsValidityCheck(); |
| 639 } | 639 } |
| 640 | 640 |
| 641 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { | 641 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { |
| 642 associateByParser(form); | 642 associateByParser(form); |
| 643 }; | 643 }; |
| 644 | 644 |
| 645 } // namespace blink | 645 } // namespace blink |
| OLD | NEW |