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

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

Issue 2586143004: Blur immediately if an attribute change made an element unfocasable. (Closed)
Patch Set: Update comments and a function name 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 String nameForAutofill() const; 128 String nameForAutofill() const;
129 129
130 void copyNonAttributePropertiesFromElement(const Element&) override; 130 void copyNonAttributePropertiesFromElement(const Element&) override;
131 131
132 FormAssociated* toFormAssociatedOrNull() override { return this; }; 132 FormAssociated* toFormAssociatedOrNull() override { return this; };
133 void associateWith(HTMLFormElement*) override; 133 void associateWith(HTMLFormElement*) override;
134 134
135 protected: 135 protected:
136 HTMLFormControlElement(const QualifiedName& tagName, Document&); 136 HTMLFormControlElement(const QualifiedName& tagName, Document&);
137 137
138 void attributeChanged(const QualifiedName&,
139 const AtomicString&,
140 const AtomicString&,
141 AttributeModificationReason) override;
138 void parseAttribute(const QualifiedName&, 142 void parseAttribute(const QualifiedName&,
139 const AtomicString&, 143 const AtomicString&,
140 const AtomicString&) override; 144 const AtomicString&) override;
141 virtual void requiredAttributeChanged(); 145 virtual void requiredAttributeChanged();
142 virtual void disabledAttributeChanged(); 146 virtual void disabledAttributeChanged();
143 void attachLayoutTree(const AttachContext& = AttachContext()) override; 147 void attachLayoutTree(const AttachContext& = AttachContext()) override;
144 InsertionNotificationRequest insertedInto(ContainerNode*) override; 148 InsertionNotificationRequest insertedInto(ContainerNode*) override;
145 void removedFrom(ContainerNode*) override; 149 void removedFrom(ContainerNode*) override;
146 void willChangeForm() override; 150 void willChangeForm() override;
147 void didChangeForm() override; 151 void didChangeForm() override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 221 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
218 DEFINE_TYPE_CASTS(HTMLFormControlElement, 222 DEFINE_TYPE_CASTS(HTMLFormControlElement,
219 ListedElement, 223 ListedElement,
220 control, 224 control,
221 control->isFormControlElement(), 225 control->isFormControlElement(),
222 control.isFormControlElement()); 226 control.isFormControlElement());
223 227
224 } // namespace blink 228 } // namespace blink
225 229
226 #endif 230 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698