Index: Source/core/rendering/RenderMenuList.h |
diff --git a/Source/core/rendering/RenderMenuList.h b/Source/core/rendering/RenderMenuList.h |
index 4b301d63660f1905abe4c39bbf49eca3615df44b..371b11df917cf16a0d7e886e6a2f5fbf9a478976 100644 |
--- a/Source/core/rendering/RenderMenuList.h |
+++ b/Source/core/rendering/RenderMenuList.h |
@@ -57,7 +57,7 @@ public: |
private: |
HTMLSelectElement* selectElement() const; |
- virtual bool isMenuList() const OVERRIDE { return true; } |
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectMenuList || RenderFlexibleBox::isOfType(type); } |
virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE; |