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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFormControlElementWithState.h

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
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 29 matching lines...) Expand all
40 bool canContainRangeEndPoint() const final { return false; } 40 bool canContainRangeEndPoint() const final { return false; }
41 41
42 virtual bool shouldAutocomplete() const; 42 virtual bool shouldAutocomplete() const;
43 virtual bool shouldSaveAndRestoreFormControlState() const; 43 virtual bool shouldSaveAndRestoreFormControlState() const;
44 virtual FormControlState saveFormControlState() const; 44 virtual FormControlState saveFormControlState() const;
45 // The specified FormControlState must have at least one string value. 45 // The specified FormControlState must have at least one string value.
46 virtual void restoreFormControlState(const FormControlState&) {} 46 virtual void restoreFormControlState(const FormControlState&) {}
47 void notifyFormStateChanged(); 47 void notifyFormStateChanged();
48 48
49 protected: 49 protected:
50 HTMLFormControlElementWithState(const QualifiedName& tagName, 50 HTMLFormControlElementWithState(const QualifiedName& tagName, Document&);
51 Document&,
52 HTMLFormElement*);
53 51
54 void finishParsingChildren() override; 52 void finishParsingChildren() override;
55 InsertionNotificationRequest insertedInto(ContainerNode*) override; 53 InsertionNotificationRequest insertedInto(ContainerNode*) override;
56 void removedFrom(ContainerNode*) override; 54 void removedFrom(ContainerNode*) override;
57 bool isFormControlElementWithState() const final; 55 bool isFormControlElementWithState() const final;
58 }; 56 };
59 57
60 DEFINE_TYPE_CASTS(HTMLFormControlElementWithState, 58 DEFINE_TYPE_CASTS(HTMLFormControlElementWithState,
61 ListedElement, 59 ListedElement,
62 control, 60 control,
63 control->isFormControlElementWithState(), 61 control->isFormControlElementWithState(),
64 control.isFormControlElementWithState()); 62 control.isFormControlElementWithState());
65 63
66 } // namespace blink 64 } // namespace blink
67 65
68 #endif 66 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698