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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #include "core/html/forms/FormController.h" 21 #include "core/html/forms/FormController.h"
22 22
23 #include <memory>
23 #include "core/events/ScopedEventQueue.h" 24 #include "core/events/ScopedEventQueue.h"
24 #include "core/html/HTMLFormControlElementWithState.h" 25 #include "core/html/HTMLFormControlElementWithState.h"
25 #include "core/html/HTMLFormElement.h" 26 #include "core/html/HTMLFormElement.h"
26 #include "core/html/HTMLInputElement.h" 27 #include "core/html/HTMLInputElement.h"
27 #include "platform/FileChooser.h" 28 #include "platform/FileChooser.h"
28 #include "wtf/Deque.h" 29 #include "wtf/Deque.h"
29 #include "wtf/HashTableDeletedValueType.h" 30 #include "wtf/HashTableDeletedValueType.h"
30 #include "wtf/PtrUtil.h" 31 #include "wtf/PtrUtil.h"
31 #include "wtf/text/StringBuilder.h" 32 #include "wtf/text/StringBuilder.h"
32 #include <memory>
33 33
34 namespace blink { 34 namespace blink {
35 35
36 using namespace HTMLNames; 36 using namespace HTMLNames;
37 37
38 static inline HTMLFormElement* ownerFormForState( 38 static inline HTMLFormElement* ownerFormForState(
39 const HTMLFormControlElementWithState& control) { 39 const HTMLFormControlElementWithState& control) {
40 // Assume controls with form attribute have no owners because we restore 40 // Assume controls with form attribute have no owners because we restore
41 // state during parsing and form owners of such controls might be 41 // state during parsing and form owners of such controls might be
42 // indeterminate. 42 // indeterminate.
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 HTMLFormControlElementWithState& control) { 570 HTMLFormControlElementWithState& control) {
571 m_documentState->addControl(&control); 571 m_documentState->addControl(&control);
572 } 572 }
573 573
574 void FormController::unregisterStatefulFormControl( 574 void FormController::unregisterStatefulFormControl(
575 HTMLFormControlElementWithState& control) { 575 HTMLFormControlElementWithState& control) {
576 m_documentState->removeControl(&control); 576 m_documentState->removeControl(&control);
577 } 577 }
578 578
579 } // namespace blink 579 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/FormController.h ('k') | third_party/WebKit/Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698