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/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "core/html/HTMLFormElement.h" | 29 #include "core/html/HTMLFormElement.h" |
30 #include "core/html/forms/FormController.h" | 30 #include "core/html/forms/FormController.h" |
31 #include "core/loader/FrameLoaderClient.h" | 31 #include "core/loader/FrameLoaderClient.h" |
32 #include "core/page/ChromeClient.h" | 32 #include "core/page/ChromeClient.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 HTMLFormControlElementWithState::HTMLFormControlElementWithState( | 36 HTMLFormControlElementWithState::HTMLFormControlElementWithState( |
37 const QualifiedName& tagName, | 37 const QualifiedName& tagName, |
38 Document& doc, | 38 Document& doc) |
39 HTMLFormElement* f) | 39 : HTMLFormControlElement(tagName, doc) {} |
40 : HTMLFormControlElement(tagName, doc, f) {} | |
41 | 40 |
42 HTMLFormControlElementWithState::~HTMLFormControlElementWithState() {} | 41 HTMLFormControlElementWithState::~HTMLFormControlElementWithState() {} |
43 | 42 |
44 Node::InsertionNotificationRequest | 43 Node::InsertionNotificationRequest |
45 HTMLFormControlElementWithState::insertedInto(ContainerNode* insertionPoint) { | 44 HTMLFormControlElementWithState::insertedInto(ContainerNode* insertionPoint) { |
46 if (insertionPoint->isConnected() && !containingShadowRoot()) | 45 if (insertionPoint->isConnected() && !containingShadowRoot()) |
47 document().formController().registerStatefulFormControl(*this); | 46 document().formController().registerStatefulFormControl(*this); |
48 return HTMLFormControlElement::insertedInto(insertionPoint); | 47 return HTMLFormControlElement::insertedInto(insertionPoint); |
49 } | 48 } |
50 | 49 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void HTMLFormControlElementWithState::finishParsingChildren() { | 82 void HTMLFormControlElementWithState::finishParsingChildren() { |
84 HTMLFormControlElement::finishParsingChildren(); | 83 HTMLFormControlElement::finishParsingChildren(); |
85 document().formController().restoreControlStateFor(*this); | 84 document().formController().restoreControlStateFor(*this); |
86 } | 85 } |
87 | 86 |
88 bool HTMLFormControlElementWithState::isFormControlElementWithState() const { | 87 bool HTMLFormControlElementWithState::isFormControlElementWithState() const { |
89 return true; | 88 return true; |
90 } | 89 } |
91 | 90 |
92 } // namespace blink | 91 } // namespace blink |
OLD | NEW |