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 28 matching lines...) Expand all Loading... |
39 #include "public/platform/Platform.h" | 39 #include "public/platform/Platform.h" |
40 #include "public/platform/WebLocalizedString.h" | 40 #include "public/platform/WebLocalizedString.h" |
41 #include "wtf/StdLibExtras.h" | 41 #include "wtf/StdLibExtras.h" |
42 | 42 |
43 using namespace blink; | 43 using namespace blink; |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 using namespace HTMLNames; | 47 using namespace HTMLNames; |
48 | 48 |
49 HTMLKeygenElement::HTMLKeygenElement(Document& document, HTMLFormElement* form) | 49 HTMLKeygenElement::HTMLKeygenElement(Document& document) |
50 : HTMLFormControlElementWithState(keygenTag, document, form) { | 50 : HTMLFormControlElementWithState(keygenTag, document) { |
51 Deprecation::countDeprecation(document, UseCounter::HTMLKeygenElement); | 51 Deprecation::countDeprecation(document, UseCounter::HTMLKeygenElement); |
52 if (document.frame()) | 52 if (document.frame()) |
53 document.frame()->loader().client()->didUseKeygen(); | 53 document.frame()->loader().client()->didUseKeygen(); |
54 } | 54 } |
55 | 55 |
56 HTMLKeygenElement* HTMLKeygenElement::create(Document& document, | 56 HTMLKeygenElement* HTMLKeygenElement::create(Document& document) { |
57 HTMLFormElement* form) { | 57 HTMLKeygenElement* keygen = new HTMLKeygenElement(document); |
58 HTMLKeygenElement* keygen = new HTMLKeygenElement(document, form); | |
59 keygen->ensureUserAgentShadowRoot(); | 58 keygen->ensureUserAgentShadowRoot(); |
60 return keygen; | 59 return keygen; |
61 } | 60 } |
62 | 61 |
63 LayoutObject* HTMLKeygenElement::createLayoutObject( | 62 LayoutObject* HTMLKeygenElement::createLayoutObject( |
64 const ComputedStyle& style) { | 63 const ComputedStyle& style) { |
65 // TODO(mstensho): While it's harmful and meaningless to allow most display | 64 // TODO(mstensho): While it's harmful and meaningless to allow most display |
66 // types on replaced content (e.g. table, table-row or flex), it would be | 65 // types on replaced content (e.g. table, table-row or flex), it would be |
67 // useful to honor at least some of them. Table-cell (and maybe table-caption | 66 // useful to honor at least some of them. Table-cell (and maybe table-caption |
68 // too), for instance. See crbug.com/335040 | 67 // too), for instance. See crbug.com/335040 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 131 |
133 bool HTMLKeygenElement::isInteractiveContent() const { | 132 bool HTMLKeygenElement::isInteractiveContent() const { |
134 return true; | 133 return true; |
135 } | 134 } |
136 | 135 |
137 bool HTMLKeygenElement::supportsAutofocus() const { | 136 bool HTMLKeygenElement::supportsAutofocus() const { |
138 return true; | 137 return true; |
139 } | 138 } |
140 | 139 |
141 } // namespace blink | 140 } // namespace blink |
OLD | NEW |