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 17 matching lines...) Expand all Loading... |
28 #include "core/dom/ElementTraversal.h" | 28 #include "core/dom/ElementTraversal.h" |
29 #include "core/events/Event.h" | 29 #include "core/events/Event.h" |
30 #include "core/frame/UseCounter.h" | 30 #include "core/frame/UseCounter.h" |
31 #include "core/html/HTMLDataListElement.h" | 31 #include "core/html/HTMLDataListElement.h" |
32 #include "core/html/HTMLFieldSetElement.h" | 32 #include "core/html/HTMLFieldSetElement.h" |
33 #include "core/html/HTMLFormElement.h" | 33 #include "core/html/HTMLFormElement.h" |
34 #include "core/html/HTMLInputElement.h" | 34 #include "core/html/HTMLInputElement.h" |
35 #include "core/html/HTMLLegendElement.h" | 35 #include "core/html/HTMLLegendElement.h" |
36 #include "core/html/ValidityState.h" | 36 #include "core/html/ValidityState.h" |
37 #include "core/inspector/ConsoleMessage.h" | 37 #include "core/inspector/ConsoleMessage.h" |
| 38 #include "core/layout/LayoutBox.h" |
38 #include "core/layout/LayoutTheme.h" | 39 #include "core/layout/LayoutTheme.h" |
39 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
40 #include "core/page/ValidationMessageClient.h" | 41 #include "core/page/ValidationMessageClient.h" |
41 #include "core/rendering/RenderBox.h" | |
42 #include "platform/text/BidiTextRun.h" | 42 #include "platform/text/BidiTextRun.h" |
43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 using namespace HTMLNames; | 47 using namespace HTMLNames; |
48 | 48 |
49 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument& document, HTMLFormElement* form) | 49 HTMLFormControlElement::HTMLFormControlElement(const QualifiedName& tagName, Doc
ument& document, HTMLFormElement* form) |
50 : LabelableElement(tagName, document) | 50 : LabelableElement(tagName, document) |
51 , m_disabled(false) | 51 , m_disabled(false) |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 628 |
629 void HTMLFormControlElement::setFocus(bool flag) | 629 void HTMLFormControlElement::setFocus(bool flag) |
630 { | 630 { |
631 LabelableElement::setFocus(flag); | 631 LabelableElement::setFocus(flag); |
632 | 632 |
633 if (!flag && wasChangedSinceLastFormControlChangeEvent()) | 633 if (!flag && wasChangedSinceLastFormControlChangeEvent()) |
634 dispatchFormControlChangeEvent(); | 634 dispatchFormControlChangeEvent(); |
635 } | 635 } |
636 | 636 |
637 } // namespace blink | 637 } // namespace blink |
OLD | NEW |