Index: Source/WebCore/html/HTMLSelectElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLSelectElement.cpp (revision 122284) |
+++ Source/WebCore/html/HTMLSelectElement.cpp (working copy) |
@@ -346,7 +346,11 @@ |
bool HTMLSelectElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const |
{ |
- return childContext.isOnUpperEncapsulationBoundary() && HTMLFormControlElementWithState::childShouldCreateRenderer(childContext); |
+ if (!HTMLFormControlElementWithState::childShouldCreateRenderer(childContext)) |
+ return false; |
+ if (!usesMenuList()) |
+ return true; |
+ return validationMessageShadowTreeContains(childContext.node()); |
} |
HTMLOptionsCollection* HTMLSelectElement::options() |