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

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

Issue 1928443002: Remove element related checks for PseudoDisabled css class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 if (select && select->usesMenuList()) 104 if (select && select->usesMenuList())
105 return false; 105 return false;
106 return HTMLElement::supportsFocus(); 106 return HTMLElement::supportsFocus();
107 } 107 }
108 108
109 bool HTMLOptGroupElement::matchesEnabledPseudoClass() const 109 bool HTMLOptGroupElement::matchesEnabledPseudoClass() const
110 { 110 {
111 return !isDisabledFormControl(); 111 return !isDisabledFormControl();
112 } 112 }
113 113
114 bool HTMLOptGroupElement::matchesDisabledPseudoClass() const
115 {
116 return isDisabledFormControl();
117 }
118
114 void HTMLOptGroupElement::updateNonComputedStyle() 119 void HTMLOptGroupElement::updateNonComputedStyle()
115 { 120 {
116 m_style = originalStyleForLayoutObject(); 121 m_style = originalStyleForLayoutObject();
117 if (layoutObject()) { 122 if (layoutObject()) {
118 if (HTMLSelectElement* select = ownerSelectElement()) 123 if (HTMLSelectElement* select = ownerSelectElement())
119 select->updateListOnLayoutObject(); 124 select->updateListOnLayoutObject();
120 } 125 }
121 } 126 }
122 127
123 ComputedStyle* HTMLOptGroupElement::nonLayoutObjectComputedStyle() const 128 ComputedStyle* HTMLOptGroupElement::nonLayoutObjectComputedStyle() const
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 label.setTextContent(labelText); 193 label.setTextContent(labelText);
189 label.setAttribute(aria_labelAttr, AtomicString(labelText)); 194 label.setAttribute(aria_labelAttr, AtomicString(labelText));
190 } 195 }
191 196
192 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const 197 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const
193 { 198 {
194 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement Names::optGroupLabel())); 199 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement Names::optGroupLabel()));
195 } 200 }
196 201
197 } // namespace blink 202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698