Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFormElement.cpp

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 (parentLayoutObject->isTableRow() && isHTMLTableRowElement(*node)) || 116 (parentLayoutObject->isTableRow() && isHTMLTableRowElement(*node)) ||
117 (parentLayoutObject->isTableSection() && node->hasTagName(tbodyTag)) || 117 (parentLayoutObject->isTableSection() && node->hasTagName(tbodyTag)) ||
118 (parentLayoutObject->isLayoutTableCol() && node->hasTagName(colTag)) || 118 (parentLayoutObject->isLayoutTableCol() && node->hasTagName(colTag)) ||
119 (parentLayoutObject->isTableCell() && isHTMLTableRowElement(*node)); 119 (parentLayoutObject->isTableCell() && isHTMLTableRowElement(*node));
120 120
121 if (!parentIsTableElementPart) 121 if (!parentIsTableElementPart)
122 return true; 122 return true;
123 123
124 EDisplay display = style.display(); 124 EDisplay display = style.display();
125 bool formIsTablePart = 125 bool formIsTablePart =
126 display == EDisplay::Table || display == EDisplay::InlineTable || 126 display == EDisplay::kTable || display == EDisplay::kInlineTable ||
127 display == EDisplay::TableRowGroup || 127 display == EDisplay::kTableRowGroup ||
128 display == EDisplay::TableHeaderGroup || 128 display == EDisplay::kTableHeaderGroup ||
129 display == EDisplay::TableFooterGroup || display == EDisplay::TableRow || 129 display == EDisplay::kTableFooterGroup ||
130 display == EDisplay::TableColumnGroup || 130 display == EDisplay::kTableRow ||
131 display == EDisplay::TableColumn || display == EDisplay::TableCell || 131 display == EDisplay::kTableColumnGroup ||
132 display == EDisplay::TableCaption; 132 display == EDisplay::kTableColumn || display == EDisplay::kTableCell ||
133 display == EDisplay::kTableCaption;
133 134
134 return formIsTablePart; 135 return formIsTablePart;
135 } 136 }
136 137
137 Node::InsertionNotificationRequest HTMLFormElement::insertedInto( 138 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(
138 ContainerNode* insertionPoint) { 139 ContainerNode* insertionPoint) {
139 HTMLElement::insertedInto(insertionPoint); 140 HTMLElement::insertedInto(insertionPoint);
140 logAddElementIfIsolatedWorldAndInDocument("form", methodAttr, actionAttr); 141 logAddElementIfIsolatedWorldAndInDocument("form", methodAttr, actionAttr);
141 if (insertionPoint->isConnected()) 142 if (insertionPoint->isConnected())
142 this->document().didAssociateFormControl(this); 143 this->document().didAssociateFormControl(this);
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 for (const auto& control : listedElements()) { 827 for (const auto& control : listedElements()) {
827 if (!control->isFormControlElement()) 828 if (!control->isFormControlElement())
828 continue; 829 continue;
829 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) 830 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton())
830 toHTMLFormControlElement(control)->pseudoStateChanged( 831 toHTMLFormControlElement(control)->pseudoStateChanged(
831 CSSSelector::PseudoDefault); 832 CSSSelector::PseudoDefault);
832 } 833 }
833 } 834 }
834 835
835 } // namespace blink 836 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698