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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 using namespace HTMLNames; | 44 using namespace HTMLNames; |
45 | 45 |
46 class KeygenSelectElement : public HTMLSelectElement { | 46 class KeygenSelectElement : public HTMLSelectElement { |
47 public: | 47 public: |
48 static Result<KeygenSelectElement> create(Handle<Document> document) | 48 static Result<KeygenSelectElement> create(Handle<Document> document) |
49 { | 49 { |
50 return adoptTreeShared(new KeygenSelectElement(document)); | 50 return adoptTreeShared(new KeygenSelectElement(document)); |
51 } | 51 } |
52 | 52 |
53 void acceptHeapVisitor(Visitor* visitor) const OVERRIDE | |
54 { | |
55 HTMLSelectElement::acceptHeapVisitor(visitor); | |
56 } | |
57 | |
58 protected: | 53 protected: |
59 KeygenSelectElement(Handle<Document> document) | 54 KeygenSelectElement(Handle<Document> document) |
60 : HTMLSelectElement(selectTag, document, 0) | 55 : HTMLSelectElement(selectTag, document, 0) |
61 { | 56 { |
62 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-keygen-select", At
omicString::ConstructFromLiteral)); | 57 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-keygen-select", At
omicString::ConstructFromLiteral)); |
63 setPseudo(pseudoId); | 58 setPseudo(pseudoId); |
64 } | 59 } |
65 | 60 |
| 61 void acceptHeapVisitor(Visitor* visitor) const OVERRIDE |
| 62 { |
| 63 HTMLSelectElement::acceptHeapVisitor(visitor); |
| 64 } |
| 65 |
66 private: | 66 private: |
67 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() | 67 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() |
68 { | 68 { |
69 return create(document()).passRefPtr(); | 69 return create(document()).passRefPtr(); |
70 } | 70 } |
71 }; | 71 }; |
72 | 72 |
73 inline HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Handle
<Document> document, HTMLFormElement* form) | 73 inline HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Handle
<Document> document, HTMLFormElement* form) |
74 : HTMLFormControlElementWithState(tagName, document, form) | 74 : HTMLFormControlElementWithState(tagName, document, form) |
75 { | 75 { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ShadowRoot* root = userAgentShadowRoot(); | 138 ShadowRoot* root = userAgentShadowRoot(); |
139 return root ? toHTMLSelectElement(root->firstChild()) : nullptr; | 139 return root ? toHTMLSelectElement(root->firstChild()) : nullptr; |
140 } | 140 } |
141 | 141 |
142 void HTMLKeygenElement::acceptHeapVisitor(Visitor* visitor) const | 142 void HTMLKeygenElement::acceptHeapVisitor(Visitor* visitor) const |
143 { | 143 { |
144 HTMLFormControlElementWithState::acceptHeapVisitor(visitor); | 144 HTMLFormControlElementWithState::acceptHeapVisitor(visitor); |
145 } | 145 } |
146 | 146 |
147 } // namespace | 147 } // namespace |
OLD | NEW |