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 23 matching lines...) Expand all Loading... |
34 #include "core/html/ValidityState.h" | 34 #include "core/html/ValidityState.h" |
35 #include "core/html/forms/ValidationMessage.h" | 35 #include "core/html/forms/ValidationMessage.h" |
36 #include "core/frame/UseCounter.h" | 36 #include "core/frame/UseCounter.h" |
37 #include "core/rendering/RenderBox.h" | 37 #include "core/rendering/RenderBox.h" |
38 #include "core/rendering/RenderTheme.h" | 38 #include "core/rendering/RenderTheme.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 using namespace HTMLNames; | 43 using namespace HTMLNames; |
44 using namespace std; | |
45 | 44 |
46 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument& document, HTMLFormElement* form) | 45 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument& document, HTMLFormElement* form) |
47 : LabelableElement(tagName, document) | 46 : LabelableElement(tagName, document) |
48 , m_disabled(false) | 47 , m_disabled(false) |
49 , m_isAutofilled(false) | 48 , m_isAutofilled(false) |
50 , m_isReadOnly(false) | 49 , m_isReadOnly(false) |
51 , m_isRequired(false) | 50 , m_isRequired(false) |
52 , m_ancestorDisabledState(AncestorDisabledStateUnknown) | 51 , m_ancestorDisabledState(AncestorDisabledStateUnknown) |
53 , m_dataListAncestorState(Unknown) | 52 , m_dataListAncestorState(Unknown) |
54 , m_willValidateInitialized(false) | 53 , m_willValidateInitialized(false) |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 502 |
504 void HTMLFormControlElement::setFocus(bool flag) | 503 void HTMLFormControlElement::setFocus(bool flag) |
505 { | 504 { |
506 LabelableElement::setFocus(flag); | 505 LabelableElement::setFocus(flag); |
507 | 506 |
508 if (!flag && wasChangedSinceLastFormControlChangeEvent()) | 507 if (!flag && wasChangedSinceLastFormControlChangeEvent()) |
509 dispatchFormControlChangeEvent(); | 508 dispatchFormControlChangeEvent(); |
510 } | 509 } |
511 | 510 |
512 } // namespace Webcore | 511 } // namespace Webcore |
OLD | NEW |