| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/page/UseCounter.h" | 37 #include "core/page/UseCounter.h" |
| 38 #include "core/rendering/RenderBox.h" | 38 #include "core/rendering/RenderBox.h" |
| 39 #include "core/rendering/RenderTheme.h" | 39 #include "core/rendering/RenderTheme.h" |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 using namespace HTMLNames; | 44 using namespace HTMLNames; |
| 45 using namespace std; | 45 using namespace std; |
| 46 | 46 |
| 47 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument* document, HTMLFormElement* form) | 47 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument& document, HTMLFormElement* form) |
| 48 : LabelableElement(tagName, document) | 48 : LabelableElement(tagName, document) |
| 49 , m_disabled(false) | 49 , m_disabled(false) |
| 50 , m_isReadOnly(false) | 50 , m_isReadOnly(false) |
| 51 , m_isRequired(false) | 51 , m_isRequired(false) |
| 52 , m_valueMatchesRenderer(false) | 52 , m_valueMatchesRenderer(false) |
| 53 , m_ancestorDisabledState(AncestorDisabledStateUnknown) | 53 , m_ancestorDisabledState(AncestorDisabledStateUnknown) |
| 54 , m_dataListAncestorState(Unknown) | 54 , m_dataListAncestorState(Unknown) |
| 55 , m_willValidateInitialized(false) | 55 , m_willValidateInitialized(false) |
| 56 , m_willValidate(true) | 56 , m_willValidate(true) |
| 57 , m_isValid(true) | 57 , m_isValid(true) |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 HTMLFormControlElement* HTMLFormControlElement::enclosingFormControlElement(Node
* node) | 494 HTMLFormControlElement* HTMLFormControlElement::enclosingFormControlElement(Node
* node) |
| 495 { | 495 { |
| 496 for (; node; node = node->parentNode()) { | 496 for (; node; node = node->parentNode()) { |
| 497 if (node->isElementNode() && toElement(node)->isFormControlElement()) | 497 if (node->isElementNode() && toElement(node)->isFormControlElement()) |
| 498 return toHTMLFormControlElement(node); | 498 return toHTMLFormControlElement(node); |
| 499 } | 499 } |
| 500 return 0; | 500 return 0; |
| 501 } | 501 } |
| 502 | 502 |
| 503 } // namespace Webcore | 503 } // namespace Webcore |
| OLD | NEW |