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, 2008, 2009 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 || display == TABLE_HEADER_GROUP || display == TABLE_FOOTER_GROUP || dis
play == TABLE_ROW | 132 || display == TABLE_HEADER_GROUP || display == TABLE_FOOTER_GROUP || dis
play == TABLE_ROW |
133 || display == TABLE_COLUMN_GROUP || display == TABLE_COLUMN || display =
= TABLE_CELL | 133 || display == TABLE_COLUMN_GROUP || display == TABLE_COLUMN || display =
= TABLE_CELL |
134 || display == TABLE_CAPTION; | 134 || display == TABLE_CAPTION; |
135 | 135 |
136 return formIsTablePart; | 136 return formIsTablePart; |
137 } | 137 } |
138 | 138 |
139 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode*
insertionPoint) | 139 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode*
insertionPoint) |
140 { | 140 { |
141 HTMLElement::insertedInto(insertionPoint); | 141 HTMLElement::insertedInto(insertionPoint); |
142 if (insertionPoint->inDocument()) | |
143 this->document()->didAssociateFormControl(this); | |
144 return InsertionDone; | 142 return InsertionDone; |
145 } | 143 } |
146 | 144 |
147 static inline Node* findRoot(Node* n) | 145 static inline Node* findRoot(Node* n) |
148 { | 146 { |
149 Node* root = n; | 147 Node* root = n; |
150 for (; n; n = n->parentNode()) | 148 for (; n; n = n->parentNode()) |
151 root = n; | 149 root = n; |
152 return root; | 150 return root; |
153 } | 151 } |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 document()->formController()->restoreControlStateIn(*this); | 741 document()->formController()->restoreControlStateIn(*this); |
744 } | 742 } |
745 | 743 |
746 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc
e) | 744 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc
e) |
747 { | 745 { |
748 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted; | 746 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted; |
749 HTMLElement::copyNonAttributePropertiesFromElement(source); | 747 HTMLElement::copyNonAttributePropertiesFromElement(source); |
750 } | 748 } |
751 | 749 |
752 } // namespace | 750 } // namespace |
OLD | NEW |