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, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2010 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 "bindings/core/v8/ExceptionStatePlaceholder.h" | 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
29 #include "core/HTMLNames.h" | 29 #include "core/HTMLNames.h" |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/dom/Text.h" | 31 #include "core/dom/Text.h" |
32 #include "core/dom/shadow/ShadowRoot.h" | 32 #include "core/dom/shadow/ShadowRoot.h" |
33 #include "core/frame/UseCounter.h" | 33 #include "core/frame/UseCounter.h" |
34 #include "core/html/FormData.h" | 34 #include "core/html/FormData.h" |
35 #include "core/html/HTMLOptionElement.h" | 35 #include "core/html/HTMLOptionElement.h" |
36 #include "core/html/HTMLSelectElement.h" | 36 #include "core/html/HTMLSelectElement.h" |
37 #include "core/layout/LayoutBlockFlow.h" | 37 #include "core/layout/LayoutBlockFlow.h" |
| 38 #include "core/loader/FrameLoaderClient.h" |
38 #include "platform/text/PlatformLocale.h" | 39 #include "platform/text/PlatformLocale.h" |
39 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
40 #include "public/platform/WebLocalizedString.h" | 41 #include "public/platform/WebLocalizedString.h" |
41 #include "wtf/StdLibExtras.h" | 42 #include "wtf/StdLibExtras.h" |
42 | 43 |
43 using namespace blink; | 44 using namespace blink; |
44 | 45 |
45 namespace blink { | 46 namespace blink { |
46 | 47 |
47 using namespace HTMLNames; | 48 using namespace HTMLNames; |
48 | 49 |
49 HTMLKeygenElement::HTMLKeygenElement(Document& document, HTMLFormElement* form) | 50 HTMLKeygenElement::HTMLKeygenElement(Document& document, HTMLFormElement* form) |
50 : HTMLFormControlElementWithState(keygenTag, document, form) | 51 : HTMLFormControlElementWithState(keygenTag, document, form) |
51 { | 52 { |
52 UseCounter::count(document, UseCounter::HTMLKeygenElement); | 53 UseCounter::count(document, UseCounter::HTMLKeygenElement); |
| 54 document.frame()->loader().client()->didUseKeygen(); |
53 } | 55 } |
54 | 56 |
55 PassRefPtrWillBeRawPtr<HTMLKeygenElement> HTMLKeygenElement::create(Document& do
cument, HTMLFormElement* form) | 57 PassRefPtrWillBeRawPtr<HTMLKeygenElement> HTMLKeygenElement::create(Document& do
cument, HTMLFormElement* form) |
56 { | 58 { |
57 RefPtrWillBeRawPtr<HTMLKeygenElement> keygen = adoptRefWillBeNoop(new HTMLKe
ygenElement(document, form)); | 59 RefPtrWillBeRawPtr<HTMLKeygenElement> keygen = adoptRefWillBeNoop(new HTMLKe
ygenElement(document, form)); |
58 keygen->ensureUserAgentShadowRoot(); | 60 keygen->ensureUserAgentShadowRoot(); |
59 return keygen.release(); | 61 return keygen.release(); |
60 } | 62 } |
61 | 63 |
62 LayoutObject* HTMLKeygenElement::createLayoutObject(const ComputedStyle& style) | 64 LayoutObject* HTMLKeygenElement::createLayoutObject(const ComputedStyle& style) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 { | 131 { |
130 return true; | 132 return true; |
131 } | 133 } |
132 | 134 |
133 bool HTMLKeygenElement::supportsAutofocus() const | 135 bool HTMLKeygenElement::supportsAutofocus() const |
134 { | 136 { |
135 return true; | 137 return true; |
136 } | 138 } |
137 | 139 |
138 } // namespace | 140 } // namespace |
OLD | NEW |