| 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, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 m_reflectsCheckedAttribute = false; | 913 m_reflectsCheckedAttribute = false; |
| 914 m_isChecked = nowChecked; | 914 m_isChecked = nowChecked; |
| 915 | 915 |
| 916 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 916 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
| 917 scope->updateCheckedState(this); | 917 scope->updateCheckedState(this); |
| 918 if (layoutObject() && layoutObject()->style()->hasAppearance()) | 918 if (layoutObject() && layoutObject()->style()->hasAppearance()) |
| 919 LayoutTheme::theme().stateChanged(layoutObject(), CheckedControlState); | 919 LayoutTheme::theme().stateChanged(layoutObject(), CheckedControlState); |
| 920 | 920 |
| 921 setNeedsValidityCheck(); | 921 setNeedsValidityCheck(); |
| 922 | 922 |
| 923 // Ideally we'd do this from the render tree (matching | 923 // Ideally we'd do this from the layout tree (matching |
| 924 // RenderTextView), but it's not possible to do it at the moment | 924 // LayoutTextView), but it's not possible to do it at the moment |
| 925 // because of the way the code is structured. | 925 // because of the way the code is structured. |
| 926 if (layoutObject()) { | 926 if (layoutObject()) { |
| 927 if (AXObjectCache* cache = layoutObject()->document().existingAXObjectCa
che()) | 927 if (AXObjectCache* cache = layoutObject()->document().existingAXObjectCa
che()) |
| 928 cache->checkedStateChanged(this); | 928 cache->checkedStateChanged(this); |
| 929 } | 929 } |
| 930 | 930 |
| 931 // Only send a change event for items in the document (avoid firing during | 931 // Only send a change event for items in the document (avoid firing during |
| 932 // parsing) and don't send a change event for a radio button that's getting | 932 // parsing) and don't send a change event for a radio button that's getting |
| 933 // unchecked to match other browsers. DOM is not a useful standard for this | 933 // unchecked to match other browsers. DOM is not a useful standard for this |
| 934 // because it says only to fire change events at "lose focus" time, which is | 934 // because it says only to fire change events at "lose focus" time, which is |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 void HTMLInputElement::ensurePrimaryContent() | 1926 void HTMLInputElement::ensurePrimaryContent() |
| 1927 { | 1927 { |
| 1928 m_inputTypeView->ensurePrimaryContent(); | 1928 m_inputTypeView->ensurePrimaryContent(); |
| 1929 } | 1929 } |
| 1930 | 1930 |
| 1931 bool HTMLInputElement::hasFallbackContent() const | 1931 bool HTMLInputElement::hasFallbackContent() const |
| 1932 { | 1932 { |
| 1933 return m_inputTypeView->hasFallbackContent(); | 1933 return m_inputTypeView->hasFallbackContent(); |
| 1934 } | 1934 } |
| 1935 } // namespace | 1935 } // namespace |
| OLD | NEW |