Changeset 91049 in webkit
- Timestamp:
- Jul 14, 2011 10:37:26 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r91048 r91049 1 2011-07-14 SravanKumar S <sravan.ken@gmail.com> 2 3 Replaced isChecked() with shouldAppearChecked() in HTMLInputElement.cpp along with all the corresponding function calls. 4 https://bugs.webkit.org/show_bug.cgi?id=54476 5 6 Reviewed by Darin Adler. 7 8 No new tests, since existing fast/dom/HTMLInputElement/checked-pseudo-selector.html verifies the patch. 9 10 * accessibility/AccessibilityRenderObject.cpp: 11 (WebCore::AccessibilityRenderObject::isChecked): 12 * css/CSSStyleSelector.cpp: 13 (WebCore::CSSStyleSelector::canShareStyleWithControl): 14 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): 15 * dom/CheckedRadioButtons.cpp: 16 (WebCore::CheckedRadioButtons::removeButton): 17 * html/HTMLInputElement.cpp: 18 (WebCore::HTMLInputElement::shouldAppearChecked): 19 * html/HTMLInputElement.h: Removed virtual declaration from shouldAppearChecked(). 20 * rendering/RenderTheme.cpp: 21 (WebCore::RenderTheme::isChecked): 22 1 23 2011-07-14 Kenichi Ishibashi <bashi@chromium.org> 2 24 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r90885 r91049 620 620 HTMLInputElement* inputElement = m_renderer->node()->toInputElement(); 621 621 if (inputElement) 622 return inputElement-> isChecked();622 return inputElement->shouldAppearChecked(); 623 623 624 624 // Else, if this is an ARIA checkbox or radio, respect the aria-checked attribute -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r91038 r91049 1047 1047 if (thisInputElement->isAutofilled() != otherInputElement->isAutofilled()) 1048 1048 return false; 1049 if (thisInputElement-> isChecked() != otherInputElement->isChecked())1049 if (thisInputElement->shouldAppearChecked() != otherInputElement->shouldAppearChecked()) 1050 1050 return false; 1051 1051 if (thisInputElement->isIndeterminate() != otherInputElement->isIndeterminate()) … … 2920 2920 // obey the CSS spec here in the test for matching the pseudo. 2921 2921 HTMLInputElement* inputElement = e->toInputElement(); 2922 if (inputElement && inputElement-> isChecked() && !inputElement->isIndeterminate())2922 if (inputElement && inputElement->shouldAppearChecked() && !inputElement->isIndeterminate()) 2923 2923 return true; 2924 2924 break; -
trunk/Source/WebCore/dom/CheckedRadioButtons.cpp
r85998 r91049 80 80 HTMLInputElement* inputElement = element->toInputElement(); 81 81 ASSERT_UNUSED(inputElement, inputElement); 82 ASSERT(inputElement-> isChecked());82 ASSERT(inputElement->shouldAppearChecked()); 83 83 ASSERT(element->isRadioButton()); 84 84 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r91047 r91049 1854 1854 } 1855 1855 1856 bool HTMLInputElement:: isChecked() const1856 bool HTMLInputElement::shouldAppearChecked() const 1857 1857 { 1858 1858 return checked() && m_inputType->isCheckable(); -
trunk/Source/WebCore/html/HTMLInputElement.h
r91014 r91049 127 127 bool indeterminate() const { return m_isIndeterminate; } 128 128 void setIndeterminate(bool); 129 130 // isChecked is used by the rendering tree/CSS while checked() is used by JS to determine checked state 131 virtual bool isChecked() const; 129 // shouldAppearChecked is used by the rendering tree/CSS while checked() is used by JS to determine checked state 130 bool shouldAppearChecked() const; 132 131 virtual bool isIndeterminate() const { return indeterminate(); } 133 132 -
trunk/Source/WebCore/rendering/RenderTheme.cpp
r89733 r91049 746 746 return false; 747 747 748 return inputElement-> isChecked();748 return inputElement->shouldAppearChecked(); 749 749 } 750 750
Note: See TracChangeset
for help on using the changeset viewer.