Changeset 111500 in webkit
- Timestamp:
- Mar 20, 2012, 10:12:51 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 13 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/shadow/content-element-in-media-element-expected.txt (added)
-
LayoutTests/fast/dom/shadow/content-element-in-media-element.html (added)
-
LayoutTests/fast/dom/shadow/content-element-in-meter-element-expected.txt (added)
-
LayoutTests/fast/dom/shadow/content-element-in-meter-element.html (added)
-
LayoutTests/fast/dom/shadow/content-element-in-progress-element-expected.txt (added)
-
LayoutTests/fast/dom/shadow/content-element-in-progress-element.html (added)
-
LayoutTests/fast/dom/shadow/content-element-in-select-element-expected.txt (added)
-
LayoutTests/fast/dom/shadow/content-element-in-select-element.html (added)
-
LayoutTests/platform/chromium/test_expectations.txt (modified) (1 diff)
-
LayoutTests/platform/efl/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt/Skipped (modified) (1 diff)
-
LayoutTests/platform/win/Skipped (modified) (2 diffs)
-
LayoutTests/platform/wincairo/Skipped (modified) (1 diff)
-
LayoutTests/platform/wk2/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/NodeRenderingContext.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLMeterElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLProgressElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLSelectElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r111498 r111500 1 2012-03-19 Shinya Kawanaka <shinyak@chromium.org> 2 3 [Crash] RenderMenuList::addChild() in Shadow DOM. 4 https://bugs.webkit.org/show_bug.cgi?id=81201 5 6 Reviewed by Dimitri Glazkov. 7 8 Skipped these tests in non-chromium port since SHADOW_DOM flag is not enabled. 9 10 Marked 2 new tests FAIL. Their behavior is affected by this patch, but this patch 11 won't fix them completely. They have another bugs. See Bug 81310 and Bug 81311. 12 13 * fast/dom/shadow/content-element-in-media-element-expected.txt: Added. 14 * fast/dom/shadow/content-element-in-media-element.html: Added. 15 * fast/dom/shadow/content-element-in-meter-element-expected.txt: Added. 16 * fast/dom/shadow/content-element-in-meter-element.html: Added. 17 * fast/dom/shadow/content-element-in-progress-element-expected.txt: Added. 18 * fast/dom/shadow/content-element-in-progress-element.html: Added. 19 * fast/dom/shadow/content-element-in-select-element-expected.txt: Added. 20 * fast/dom/shadow/content-element-in-select-element.html: Added. 21 * platform/chromium/test_expectations.txt: 22 * platform/efl/Skipped: 23 * platform/mac/Skipped: 24 * platform/qt/Skipped: 25 * platform/win/Skipped: 26 * platform/wincairo/Skipped: 27 * platform/wk2/Skipped: 28 1 29 2012-03-20 Dan Bernstein <mitz@apple.com> 2 30 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r111494 r111500 3278 3278 BUGCR85293 LINUX : svg/text/foreignObject-text-clipping-bug.xml = PASS IMAGE 3279 3279 3280 BUGWK81310 : fast/dom/shadow/content-element-in-media-element.html = TEXT 3281 BUGWK81311 : fast/dom/shadow/content-element-in-meter-element.html = TEXT 3282 3280 3283 // CSS Grid Layout is not enabled yet. 3281 3284 BUGWK60731 SKIP : fast/css-grid-layout = PASS -
trunk/LayoutTests/platform/efl/Skipped
r111185 r111500 1939 1939 fast/dom/shadow/content-element-outside-shadow.html 1940 1940 fast/dom/shadow/content-element-outside-shadow-style.html 1941 fast/dom/shadow/content-element-in-media-element.html 1942 fast/dom/shadow/content-element-in-meter-element.html 1941 1943 fast/dom/shadow/get-element-by-id-in-shadow-root.html 1942 1944 fast/dom/shadow/shadow-root-js-api.html -
trunk/LayoutTests/platform/qt/Skipped
r111472 r111500 168 168 fast/dom/shadow/content-element-outside-shadow.html 169 169 fast/dom/shadow/content-element-outside-shadow-style.html 170 fast/dom/shadow/content-element-in-media-element.html 171 fast/dom/shadow/content-element-in-meter-element.html 170 172 fast/dom/shadow/get-element-by-id-in-shadow-root.html 171 173 fast/dom/shadow/iframe-shadow.html -
trunk/LayoutTests/platform/win/Skipped
r111439 r111500 1008 1008 fast/forms/form-attribute.html 1009 1009 1010 1010 1011 # view mode media feature 1011 1012 fast/media/view-mode-media-feature.html … … 1461 1462 fast/dom/shadow/content-element-outside-shadow.html 1462 1463 fast/dom/shadow/content-element-outside-shadow-style.html 1464 fast/dom/shadow/content-element-in-media-element.html 1465 fast/dom/shadow/content-element-in-meter-element.html 1463 1466 fast/dom/shadow/get-element-by-id-in-shadow-root.html 1464 1467 fast/dom/shadow/shadow-root-js-api.html -
trunk/LayoutTests/platform/wincairo/Skipped
r111149 r111500 1973 1973 fast/dom/shadow/content-element-api.html 1974 1974 fast/dom/shadow/content-element-outside-shadow.html 1975 fast/dom/shadow/content-element-in-media-element.html 1976 fast/dom/shadow/content-element-in-meter-element.html 1975 1977 fast/dom/shadow/get-element-by-id-in-shadow-root.html 1976 1978 fast/dom/shadow/shadow-root-js-api.html -
trunk/LayoutTests/platform/wk2/Skipped
r111498 r111500 1084 1084 fast/dom/shadow/content-element-outside-shadow.html 1085 1085 fast/dom/shadow/content-element-outside-shadow-style.html 1086 fast/dom/shadow/content-element-in-media-element.html 1087 fast/dom/shadow/content-element-in-meter-element.html 1086 1088 fast/dom/shadow/shadow-root-js-api.html 1087 1089 fast/dom/shadow/shadow-disable.html -
trunk/Source/WebCore/ChangeLog
r111499 r111500 1 2012-03-19 Shinya Kawanaka <shinyak@chromium.org> 2 3 [Crash] RenderMenuList::addChild() in Shadow DOM. 4 https://bugs.webkit.org/show_bug.cgi?id=81201 5 6 Reviewed by Dimitri Glazkov. 7 8 <audio>, <video>, <meter>, <progress>, and <select> are implemented using 9 Shadow DOM having HTMLContentElement. Their renderer children basically should not 10 create a renderer unless they are on the upper shadow encapsulation boundary, 11 which means they are the direct children of the shadow root. 12 13 However, current implementation allows their renderer children to create a renderer 14 even if they are on a lower shadow encapsulation boundary, which means 15 they are distributed elements of HTMLContentElement. 16 17 This patch makes there renderer children not to create a renderer if they are on a lower shadow 18 encapsulation boudary. 19 20 Tests: fast/dom/shadow/content-element-in-media-element.html 21 fast/dom/shadow/content-element-in-meter-element.html 22 fast/dom/shadow/content-element-in-progress-element.html 23 fast/dom/shadow/content-element-in-select-element.html 24 25 * dom/NodeRenderingContext.h: 26 (NodeRenderingContext): 27 (WebCore::NodeRenderingContext::isOnUpperEncapsulationBoundary): 28 (WebCore): 29 * html/HTMLMediaElement.cpp: 30 (WebCore::HTMLMediaElement::childShouldCreateRenderer): 31 * html/HTMLMeterElement.cpp: 32 (WebCore::HTMLMeterElement::childShouldCreateRenderer): 33 * html/HTMLProgressElement.cpp: 34 (WebCore::HTMLProgressElement::childShouldCreateRenderer): 35 * html/HTMLSelectElement.cpp: 36 (WebCore::HTMLSelectElement::childShouldCreateRenderer): 37 1 38 2012-03-20 Dana Jansens <danakj@chromium.org> 2 39 -
trunk/Source/WebCore/dom/NodeRenderingContext.h
r108959 r111500 63 63 void hostChildrenChanged(); 64 64 65 bool isOnUpperEncapsulationBoundary() const; 65 66 bool isOnEncapsulationBoundary() const; 66 67 bool hasFlowThreadParent() const { return m_parentFlowRenderer; } … … 118 119 } 119 120 121 inline bool NodeRenderingContext::isOnUpperEncapsulationBoundary() const 122 { 123 return m_phase == AttachingShadowChild; 124 } 125 120 126 class NodeRendererFactory { 121 127 WTF_MAKE_NONCOPYABLE(NodeRendererFactory); -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r110095 r111500 469 469 bool HTMLMediaElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const 470 470 { 471 return childContext.isOn EncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext);471 return childContext.isOnUpperEncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext); 472 472 } 473 473 -
trunk/Source/WebCore/html/HTMLMeterElement.cpp
r110927 r111500 64 64 bool HTMLMeterElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const 65 65 { 66 return childContext.isOn EncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext);66 return childContext.isOnUpperEncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext); 67 67 } 68 68 -
trunk/Source/WebCore/html/HTMLProgressElement.cpp
r111009 r111500 66 66 bool HTMLProgressElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const 67 67 { 68 return childContext.isOn EncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext);68 return childContext.isOnUpperEncapsulationBoundary() && HTMLElement::childShouldCreateRenderer(childContext); 69 69 } 70 70 -
trunk/Source/WebCore/html/HTMLSelectElement.cpp
r110340 r111500 329 329 bool HTMLSelectElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const 330 330 { 331 return childContext.isOn EncapsulationBoundary() && HTMLFormControlElementWithState::childShouldCreateRenderer(childContext);331 return childContext.isOnUpperEncapsulationBoundary() && HTMLFormControlElementWithState::childShouldCreateRenderer(childContext); 332 332 } 333 333
Note:
See TracChangeset
for help on using the changeset viewer.