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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool parentIsTableElementPart = (parentLayoutObject->isTable() && isHTMLTabl
eElement(*node)) | 120 bool parentIsTableElementPart = (parentLayoutObject->isTable() && isHTMLTabl
eElement(*node)) |
121 || (parentLayoutObject->isTableRow() && isHTMLTableRowElement(*node)) | 121 || (parentLayoutObject->isTableRow() && isHTMLTableRowElement(*node)) |
122 || (parentLayoutObject->isTableSection() && node->hasTagName(tbodyTag)) | 122 || (parentLayoutObject->isTableSection() && node->hasTagName(tbodyTag)) |
123 || (parentLayoutObject->isLayoutTableCol() && node->hasTagName(colTag)) | 123 || (parentLayoutObject->isLayoutTableCol() && node->hasTagName(colTag)) |
124 || (parentLayoutObject->isTableCell() && isHTMLTableRowElement(*node)); | 124 || (parentLayoutObject->isTableCell() && isHTMLTableRowElement(*node)); |
125 | 125 |
126 if (!parentIsTableElementPart) | 126 if (!parentIsTableElementPart) |
127 return true; | 127 return true; |
128 | 128 |
129 EDisplay display = style.display(); | 129 EDisplay display = style.display(); |
130 bool formIsTablePart = display == TABLE || display == INLINE_TABLE || displa
y == TABLE_ROW_GROUP | 130 bool formIsTablePart = display == EDisplay::Table || display == EDisplay::In
lineTable || display == EDisplay::TableRowGroup |
131 || display == TABLE_HEADER_GROUP || display == TABLE_FOOTER_GROUP || dis
play == TABLE_ROW | 131 || display == EDisplay::TableHeaderGroup || display == EDisplay::TableFo
oterGroup || display == EDisplay::TableRow |
132 || display == TABLE_COLUMN_GROUP || display == TABLE_COLUMN || display =
= TABLE_CELL | 132 || display == EDisplay::TableColumnGroup || display == EDisplay::TableCo
lumn || display == EDisplay::TableCell |
133 || display == TABLE_CAPTION; | 133 || display == EDisplay::TableCaption; |
134 | 134 |
135 return formIsTablePart; | 135 return formIsTablePart; |
136 } | 136 } |
137 | 137 |
138 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode*
insertionPoint) | 138 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode*
insertionPoint) |
139 { | 139 { |
140 HTMLElement::insertedInto(insertionPoint); | 140 HTMLElement::insertedInto(insertionPoint); |
141 logAddElementIfIsolatedWorldAndInDocument("form", methodAttr, actionAttr); | 141 logAddElementIfIsolatedWorldAndInDocument("form", methodAttr, actionAttr); |
142 if (insertionPoint->isConnected()) | 142 if (insertionPoint->isConnected()) |
143 this->document().didAssociateFormControl(this); | 143 this->document().didAssociateFormControl(this); |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 { | 783 { |
784 for (const auto& control : associatedElements()) { | 784 for (const auto& control : associatedElements()) { |
785 if (!control->isFormControlElement()) | 785 if (!control->isFormControlElement()) |
786 continue; | 786 continue; |
787 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) | 787 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) |
788 toHTMLFormControlElement(control)->pseudoStateChanged(CSSSelector::P
seudoDefault); | 788 toHTMLFormControlElement(control)->pseudoStateChanged(CSSSelector::P
seudoDefault); |
789 } | 789 } |
790 } | 790 } |
791 | 791 |
792 } // namespace blink | 792 } // namespace blink |
OLD | NEW |