Changeset 128323 in webkit
- Timestamp:
- Sep 12, 2012 9:16:14 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r128318 r128323 1 2012-09-12 MORITA Hajime <morrita@google.com> 2 3 [Shadow DOM] Unpolished elements should reject author shadows 4 https://bugs.webkit.org/show_bug.cgi?id=96404 5 6 Reviewed by Dimitri Glazkov. 7 8 - Added setAuthorShadowDOMForAnyElementEnabled() calls to make tests works. 9 - UPdated shadow-disable.html to capture the disabled elements. 10 11 * fast/dom/shadow/shadow-disable-expected.txt: 12 * fast/dom/shadow/shadow-disable.html: 13 * fast/dom/shadow/shadowdom-for-fieldset-without-shadow.html: 14 * fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html: 15 * fast/dom/shadow/shadowdom-for-media.html: 16 * platform/chromium/TestExpectations: 17 1 18 2012-09-12 Dominic Mazzoni <dmazzoni@google.com> 2 19 -
trunk/LayoutTests/fast/dom/shadow/shadow-disable-expected.txt
r127108 r128323 12 12 SECTION 13 13 PASS new WebKitShadowRoot(element) is not null 14 AUDIO15 PASS new WebKitShadowRoot(element) is not null16 VIDEO17 PASS new WebKitShadowRoot(element) is not null18 SELECT19 PASS new WebKitShadowRoot(element) is not null20 14 TEXTAREA 21 15 PASS new WebKitShadowRoot(element) is not null … … 24 18 tref 25 19 PASS new WebKitShadowRoot(element) threw exception Error: HIERARCHY_REQUEST_ERR: DOM Exception 3. 20 AUDIO 21 PASS new WebKitShadowRoot(element) threw exception Error: HIERARCHY_REQUEST_ERR: DOM Exception 3. 22 VIDEO 23 PASS new WebKitShadowRoot(element) threw exception Error: HIERARCHY_REQUEST_ERR: DOM Exception 3. 24 SELECT 25 PASS new WebKitShadowRoot(element) threw exception Error: HIERARCHY_REQUEST_ERR: DOM Exception 3. 26 26 PASS successfullyParsed is true 27 27 -
trunk/LayoutTests/fast/dom/shadow/shadow-disable.html
r127108 r128323 25 25 document.createElement('a'), 26 26 document.createElement('section'), 27 document.createElement('audio'),28 document.createElement('video'),29 document.createElement('select'),30 27 document.createElement('textarea') 31 28 ]; … … 33 30 var elementsToFail = [ 34 31 document.createElement('input'), 35 document.getElementById('tref') 32 document.getElementById('tref'), 33 document.createElement('audio'), 34 document.createElement('video'), 35 document.createElement('select') 36 36 ]; 37 37 -
trunk/LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-without-shadow.html
r123713 r128323 12 12 13 13 <script> 14 if (window.internals) 15 window.internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 14 16 var host = document.getElementById('host'); 15 17 var shadowRoot = new WebKitShadowRoot(host); -
trunk/LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html
r126248 r128323 31 31 if (window.testRunner) 32 32 testRunner.dumpAsText(); 33 if (window.internals) 34 window.internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 33 35 34 36 for (var i = 0; i < elems.length; ++i) { -
trunk/LayoutTests/fast/dom/shadow/shadowdom-for-media.html
r122816 r128323 17 17 return shadowRoot; 18 18 } 19 20 if (window.internals) 21 window.internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 19 22 20 23 var shadowRootForVideoWithControls = addShadowDOM(videoWithControls); -
trunk/Source/WebCore/ChangeLog
r128322 r128323 1 2012-09-12 MORITA Hajime <morrita@google.com> 2 3 [Shadow DOM] Unpolished elements should reject author shadows 4 https://bugs.webkit.org/show_bug.cgi?id=96404 5 6 Reviewed by Dimitri Glazkov. 7 8 Gave areAuthorShadowsAllowed() overrides for these replaced elements 9 which aren't author shadow ready. 10 11 No new tests. Covered by existing tests. 12 13 * html/HTMLCanvasElement.h: Did areAuthorShadowsAllowed() overrride. 14 * html/HTMLFieldSetElement.h: Did areAuthorShadowsAllowed() overrride. 15 * html/HTMLFrameElementBase.h: Did areAuthorShadowsAllowed() overrride. 16 * html/HTMLMediaElement.h: Did areAuthorShadowsAllowed() overrride. 17 * html/HTMLPlugInElement.h: Did areAuthorShadowsAllowed() overrride. 18 * html/HTMLSelectElement.h: Did areAuthorShadowsAllowed() overrride. 19 1 20 2012-09-12 Mark Pilgrim <pilgrim@chromium.org> 2 21 -
trunk/Source/WebCore/html/HTMLCanvasElement.h
r122550 r128323 144 144 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 145 145 virtual void attach(); 146 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 146 147 147 148 void reset(); -
trunk/Source/WebCore/html/HTMLFieldSetElement.h
r122115 r128323 56 56 virtual bool recalcWillValidate() const { return false; } 57 57 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 58 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 58 59 59 60 static void invalidateDisabledStateUnder(Element*); -
trunk/Source/WebCore/html/HTMLFrameElementBase.h
r126131 r128323 54 54 virtual void didNotifySubtreeInsertions(ContainerNode*) OVERRIDE; 55 55 virtual void attach(); 56 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 56 57 57 58 private: -
trunk/Source/WebCore/html/HTMLMediaElement.h
r128298 r128323 87 87 void createShadowSubtree(); 88 88 virtual void willAddAuthorShadowRoot() OVERRIDE; 89 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 89 90 90 91 virtual bool isVideo() const = 0; -
trunk/Source/WebCore/html/HTMLPlugInElement.h
r124954 r128323 63 63 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 64 64 virtual void collectStyleForAttribute(const Attribute&, StylePropertySet*) OVERRIDE; 65 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 65 66 66 67 bool m_inBeforeLoadEventHandler; -
trunk/Source/WebCore/html/HTMLSelectElement.h
r125660 r128323 180 180 181 181 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 182 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 182 183 183 184 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHRElement objects.
Note: See TracChangeset
for help on using the changeset viewer.