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

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

Issue 1914933003: output should not match to :enabled or :disabled pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 7 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) 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 reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void setChangedSinceLastFormControlChangeEvent(bool); 61 void setChangedSinceLastFormControlChangeEvent(bool);
62 62
63 virtual void dispatchFormControlChangeEvent(); 63 virtual void dispatchFormControlChangeEvent();
64 void dispatchChangeEvent(); 64 void dispatchChangeEvent();
65 void dispatchFormControlInputEvent(); 65 void dispatchFormControlInputEvent();
66 66
67 HTMLFormElement* formOwner() const final; 67 HTMLFormElement* formOwner() const final;
68 68
69 bool isDisabledFormControl() const override; 69 bool isDisabledFormControl() const override;
70 70
71 bool matchesEnabledPseudoClass() const override;
72
71 bool isEnumeratable() const override { return false; } 73 bool isEnumeratable() const override { return false; }
72 74
73 bool isRequired() const; 75 bool isRequired() const;
74 76
75 const AtomicString& type() const { return formControlType(); } 77 const AtomicString& type() const { return formControlType(); }
76 78
77 virtual const AtomicString& formControlType() const = 0; 79 virtual const AtomicString& formControlType() const = 0;
78 80
79 virtual bool canTriggerImplicitSubmission() const { return false; } 81 virtual bool canTriggerImplicitSubmission() const { return false; }
80 82
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 { 205 {
204 return element.isFormControlElement(); 206 return element.isFormControlElement();
205 } 207 }
206 208
207 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 209 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
208 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement()); 210 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro l->isFormControlElement(), control.isFormControlElement());
209 211
210 } // namespace blink 212 } // namespace blink
211 213
212 #endif 214 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698