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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLOutputElement.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 { 59 {
60 DEFINE_STATIC_LOCAL(const AtomicString, output, ("output")); 60 DEFINE_STATIC_LOCAL(const AtomicString, output, ("output"));
61 return output; 61 return output;
62 } 62 }
63 63
64 bool HTMLOutputElement::isDisabledFormControl() const 64 bool HTMLOutputElement::isDisabledFormControl() const
65 { 65 {
66 return false; 66 return false;
67 } 67 }
68 68
69 bool HTMLOutputElement::matchesEnabledPseudoClass() const
70 {
71 return false;
72 }
73
69 bool HTMLOutputElement::supportsFocus() const 74 bool HTMLOutputElement::supportsFocus() const
70 { 75 {
71 return HTMLElement::supportsFocus(); 76 return HTMLElement::supportsFocus();
72 } 77 }
73 78
74 void HTMLOutputElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& oldValue, const AtomicString& value) 79 void HTMLOutputElement::parseAttribute(const QualifiedName& name, const AtomicSt ring& oldValue, const AtomicString& value)
75 { 80 {
76 if (name == HTMLNames::forAttr) 81 if (name == HTMLNames::forAttr)
77 setFor(value); 82 setFor(value);
78 else 83 else
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 150
146 151
147 DEFINE_TRACE(HTMLOutputElement) 152 DEFINE_TRACE(HTMLOutputElement)
148 { 153 {
149 visitor->trace(m_tokens); 154 visitor->trace(m_tokens);
150 HTMLFormControlElement::trace(visitor); 155 HTMLFormControlElement::trace(visitor);
151 DOMTokenListObserver::trace(visitor); 156 DOMTokenListObserver::trace(visitor);
152 } 157 }
153 158
154 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLOutputElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698