| OLD | NEW |
| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool HTMLOptGroupElement::supportsFocus() const | 101 bool HTMLOptGroupElement::supportsFocus() const |
| 102 { | 102 { |
| 103 HTMLSelectElement* select = ownerSelectElement(); | 103 HTMLSelectElement* select = ownerSelectElement(); |
| 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 |
| 110 { |
| 111 return !isDisabledFormControl(); |
| 112 } |
| 113 |
| 109 void HTMLOptGroupElement::updateNonComputedStyle() | 114 void HTMLOptGroupElement::updateNonComputedStyle() |
| 110 { | 115 { |
| 111 m_style = originalStyleForLayoutObject(); | 116 m_style = originalStyleForLayoutObject(); |
| 112 if (layoutObject()) { | 117 if (layoutObject()) { |
| 113 if (HTMLSelectElement* select = ownerSelectElement()) | 118 if (HTMLSelectElement* select = ownerSelectElement()) |
| 114 select->updateListOnLayoutObject(); | 119 select->updateListOnLayoutObject(); |
| 115 } | 120 } |
| 116 } | 121 } |
| 117 | 122 |
| 118 ComputedStyle* HTMLOptGroupElement::nonLayoutObjectComputedStyle() const | 123 ComputedStyle* HTMLOptGroupElement::nonLayoutObjectComputedStyle() const |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 label.setTextContent(labelText); | 188 label.setTextContent(labelText); |
| 184 label.setAttribute(aria_labelAttr, AtomicString(labelText)); | 189 label.setAttribute(aria_labelAttr, AtomicString(labelText)); |
| 185 } | 190 } |
| 186 | 191 |
| 187 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const | 192 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const |
| 188 { | 193 { |
| 189 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); | 194 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); |
| 190 } | 195 } |
| 191 | 196 |
| 192 } // namespace blink | 197 } // namespace blink |
| OLD | NEW |