Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index ffe80ab8add742c8b4afa3bd4fea968be6f0a8ec..c1066798070c9a9f1f255ef8a89ec3bbbdb3a66c 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -37,7 +37,6 @@ |
#include "core/dom/EventNames.h" |
#include "core/dom/KeyboardEvent.h" |
#include "core/dom/MouseEvent.h" |
-#include "core/dom/NodeRenderingContext.h" |
#include "core/dom/NodeTraversal.h" |
#include "core/html/FormController.h" |
#include "core/html/FormDataList.h" |
@@ -335,12 +334,12 @@ RenderObject* HTMLSelectElement::createRenderer(RenderStyle*) |
return new RenderListBox(this); |
} |
-bool HTMLSelectElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const |
+bool HTMLSelectElement::childShouldCreateRenderer(const Node& child) const |
{ |
- if (!HTMLFormControlElementWithState::childShouldCreateRenderer(childContext)) |
+ if (!HTMLFormControlElementWithState::childShouldCreateRenderer(child)) |
return false; |
if (!usesMenuList()) |
- return childContext.node()->hasTagName(HTMLNames::optionTag) || isHTMLOptGroupElement(childContext.node()); |
+ return child.hasTagName(HTMLNames::optionTag) || isHTMLOptGroupElement(&child); |
return false; |
} |