Changeset 126248 in webkit
- Timestamp:
- Aug 21, 2012 6:47:20 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r126246 r126248 1 2012-08-21 Shinya Kawanaka <shinyak@chromium.org> 2 3 A shadow element in ShadowDOM of a button element does not work. 4 https://bugs.webkit.org/show_bug.cgi?id=91486 5 6 Reviewed by Dimitri Glazkov. 7 8 * fast/dom/shadow/shadowdom-for-button-expected.html: Added. 9 * fast/dom/shadow/shadowdom-for-button.html: Added. 10 * fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt: 11 * fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html: a button element 12 does not have user agent shadow dom anymore. 13 1 14 2012-08-21 Kenneth Russell <kbr@google.com> 2 15 -
trunk/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt
r124027 r126248 1 1 When a AuthorShadowRoot is added, UserAgentShadowRoot should exists as the oldest Shadow Root. 2 2 3 PASS oldestShadowRoot is not shadowRoot4 PASS youngerShadowRoot is shadowRoot5 3 PASS oldestShadowRoot is not shadowRoot 6 4 PASS youngerShadowRoot is shadowRoot -
trunk/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html
r124027 r126248 8 8 <div id='container'> 9 9 <form> 10 <button id='button'>72</button>11 10 <select id='select'><option>hoge</option></select> 12 11 <output id='output'></output> … … 22 21 <script> 23 22 var elems = [ 24 " button", "select", "keygen", "fieldset"23 "select", "keygen", "fieldset" 25 24 ]; 26 25 -
trunk/Source/WebCore/ChangeLog
r126245 r126248 1 2012-08-21 Shinya Kawanaka <shinyak@chromium.org> 2 3 A shadow element in ShadowDOM of a button element does not work. 4 https://bugs.webkit.org/show_bug.cgi?id=91486 5 6 Reviewed by Dimitri Glazkov. 7 8 Since a button element is extended from an HTMLFormControlElement, it creates a UserAgentShadowDOM 9 just before adding an AuthorShadowDOM. However, actually a button element does not need any UserAgentShadowDOM. 10 So we have to prevent it from creating UserAgentShadowDOM. 11 12 Test: fast/dom/shadow/shadowdom-for-button.html 13 14 * html/HTMLButtonElement.cpp: 15 (WebCore::HTMLButtonElement::willAddAuthorShadowRoot): 16 (WebCore): 17 * html/HTMLButtonElement.h: 18 1 19 2012-08-21 Sukolsak Sakshuwong <sukolsak@google.com> 2 20 -
trunk/Source/WebCore/html/HTMLButtonElement.cpp
r124022 r126248 62 62 { 63 63 return new (arena) RenderButton(this); 64 } 65 66 void HTMLButtonElement::willAddAuthorShadowRoot() 67 { 64 68 } 65 69 -
trunk/Source/WebCore/html/HTMLButtonElement.h
r124022 r126248 48 48 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 49 49 50 virtual void willAddAuthorShadowRoot() OVERRIDE; 51 50 52 virtual void parseAttribute(const Attribute&) OVERRIDE; 51 53 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
Note: See TracChangeset
for help on using the changeset viewer.