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 15 matching lines...) Expand all Loading... |
26 #include "core/html/HTMLFormControlElement.h" | 26 #include "core/html/HTMLFormControlElement.h" |
27 | 27 |
28 #include "core/dom/Event.h" | 28 #include "core/dom/Event.h" |
29 #include "core/dom/EventNames.h" | 29 #include "core/dom/EventNames.h" |
30 #include "core/dom/PostAttachCallbacks.h" | 30 #include "core/dom/PostAttachCallbacks.h" |
31 #include "core/html/HTMLFieldSetElement.h" | 31 #include "core/html/HTMLFieldSetElement.h" |
32 #include "core/html/HTMLFormElement.h" | 32 #include "core/html/HTMLFormElement.h" |
33 #include "core/html/HTMLInputElement.h" | 33 #include "core/html/HTMLInputElement.h" |
34 #include "core/html/HTMLLegendElement.h" | 34 #include "core/html/HTMLLegendElement.h" |
35 #include "core/html/HTMLTextAreaElement.h" | 35 #include "core/html/HTMLTextAreaElement.h" |
36 #include "core/html/ValidationMessage.h" | |
37 #include "core/html/ValidityState.h" | 36 #include "core/html/ValidityState.h" |
| 37 #include "core/html/forms/ValidationMessage.h" |
38 #include "core/page/UseCounter.h" | 38 #include "core/page/UseCounter.h" |
39 #include "core/rendering/RenderBox.h" | 39 #include "core/rendering/RenderBox.h" |
40 #include "core/rendering/RenderTheme.h" | 40 #include "core/rendering/RenderTheme.h" |
41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 using namespace HTMLNames; | 45 using namespace HTMLNames; |
46 using namespace std; | 46 using namespace std; |
47 | 47 |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 HTMLFormControlElement* HTMLFormControlElement::enclosingFormControlElement(Node
* node) | 485 HTMLFormControlElement* HTMLFormControlElement::enclosingFormControlElement(Node
* node) |
486 { | 486 { |
487 for (; node; node = node->parentNode()) { | 487 for (; node; node = node->parentNode()) { |
488 if (node->isElementNode() && toElement(node)->isFormControlElement()) | 488 if (node->isElementNode() && toElement(node)->isFormControlElement()) |
489 return toHTMLFormControlElement(node); | 489 return toHTMLFormControlElement(node); |
490 } | 490 } |
491 return 0; | 491 return 0; |
492 } | 492 } |
493 | 493 |
494 } // namespace Webcore | 494 } // namespace Webcore |
OLD | NEW |