Changeset 84329 in webkit
- Timestamp:
- Apr 19, 2011 7:13:22 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r84327 r84329 1 2011-04-19 Julien Chaffraix <jchaffraix@codeaurora.org> 2 3 Reviewed by Alexey Proskuryakov. 4 5 https://bugs.webkit.org/show_bug.cgi?id=45425 6 HTMLLinkElement.disabled does not forward value to the Stylesheet's disabled attribute on setting 7 8 Test case by Bijan Amirzada <bijana@codeaurora.org>. 9 10 * fast/dom/HTMLLinkElement/disabled-attribute-expected.txt: Added. 11 * fast/dom/HTMLLinkElement/disabled-attribute.html: Added. 12 Test that the properties are properly forwarded to the stylesheet. 13 14 * fast/dom/boolean-attribute-reflection-expected.txt: 15 * fast/dom/script-tests/boolean-attribute-reflection.js: Removed link:disabled as it is 16 not reflected anymore. 17 1 18 2011-04-19 Simon Fraser <simon.fraser@apple.com> 2 19 -
trunk/LayoutTests/fast/dom/boolean-attribute-reflection-expected.txt
r75354 r84329 60 60 PASS e = make('input'); e.setAttribute('required', 'x'); e.required = false; e.getAttribute('required') is null 61 61 PASS e = make('input'); e.setAttribute('required', 'x'); e.required = true; e.getAttribute('required') is '' 62 PASS e = make('link'); e.removeAttribute('disabled'); e.disabled is false63 PASS e = make('link'); e.setAttribute('disabled', ''); e.disabled is true64 PASS e = make('link'); e.setAttribute('disabled', 'x'); e.disabled = false; e.getAttribute('disabled') is null65 PASS e = make('link'); e.setAttribute('disabled', 'x'); e.disabled = true; e.getAttribute('disabled') is ''66 62 PASS e = make('menu'); e.removeAttribute('compact'); e.compact is false 67 63 PASS e = make('menu'); e.setAttribute('compact', ''); e.compact is true -
trunk/LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js
r75354 r84329 16 16 [ "input", "readOnly" ], 17 17 [ "input", "required" ], 18 [ "link", "disabled" ],19 18 [ "menu", "compact" ], 20 19 [ "object", "declare" ], -
trunk/Source/WebCore/ChangeLog
r84326 r84329 1 2011-04-19 Julien Chaffraix <jchaffraix@codeaurora.org> 2 3 Reviewed by Alexey Proskuryakov. 4 5 https://bugs.webkit.org/show_bug.cgi?id=45425 6 HTMLLinkElement.disabled does not forward value to the Stylesheet's disabled attribute on setting 7 8 Test: fast/html/htmllink-disable.html 9 Test: fast/dom/HTMLLinkElement/disabled-attribute.html 10 11 Match the HTML5 specification by forwarding the 'disabled' attribute to our stylesheet. 12 13 Based on previous work by Bijan Amirzada <bijana@codeaurora.org>. 14 15 * html/HTMLLinkElement.cpp: 16 (WebCore::HTMLLinkElement::disabled): Return our stylesheet's 'disabled' value or 17 false if we don't have a stylesheet. 18 (WebCore::HTMLLinkElement::setDisabled): Set our stylesheet's 'disabled' value or 19 ignore the call if we don't have a stylesheet. 20 * html/HTMLLinkElement.h: 21 * html/HTMLLinkElement.idl: Remove 'Reflect' as it is not a reflected attribute anymore in HTML5. 22 This matches the way FF4, Opera and IE9 handle the attribute. 23 1 24 2011-04-19 Ryosuke Niwa <rniwa@webkit.org> 2 25 -
trunk/Source/WebCore/html/HTMLLinkElement.cpp
r84110 r84329 513 513 } 514 514 515 } 515 bool HTMLLinkElement::disabled() const 516 { 517 return m_sheet && m_sheet->disabled(); 518 } 519 520 void HTMLLinkElement::setDisabled(bool disabled) 521 { 522 if (!m_sheet) 523 return; 524 m_sheet->setDisabled(disabled); 525 } 526 527 } -
trunk/Source/WebCore/html/HTMLLinkElement.h
r84110 r84329 78 78 bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript; } 79 79 bool isIcon() const { return m_relAttribute.m_isIcon; } 80 bool disabled() const; 81 void setDisabled(bool); 80 82 81 83 private: -
trunk/Source/WebCore/html/HTMLLinkElement.idl
r72344 r84329 22 22 23 23 interface [CustomMarkFunction] HTMLLinkElement : HTMLElement { 24 attribute [Reflect]boolean disabled;24 attribute boolean disabled; 25 25 attribute [Reflect] DOMString charset; 26 26 attribute [Reflect, URL] DOMString href;
Note: See TracChangeset
for help on using the changeset viewer.