OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the select element renderer in WebCore. | 2 * This file is part of the select element renderer in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 void didSetSelectedIndex(int listIndex); | 51 void didSetSelectedIndex(int listIndex); |
52 | 52 |
53 String text() const; | 53 String text() const; |
54 | 54 |
55 virtual PopupMenuStyle itemStyle(unsigned listIndex) const override; | 55 virtual PopupMenuStyle itemStyle(unsigned listIndex) const override; |
56 | 56 |
57 private: | 57 private: |
58 HTMLSelectElement* selectElement() const; | 58 HTMLSelectElement* selectElement() const; |
59 | 59 |
60 virtual bool isMenuList() const override { return true; } | 60 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectMenuList || RenderFlexibleBox::isOfType(type); } |
61 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; | 61 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; |
62 | 62 |
63 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; | 63 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; |
64 virtual void removeChild(RenderObject*) override; | 64 virtual void removeChild(RenderObject*) override; |
65 virtual bool createsAnonymousWrapper() const override { return true; } | 65 virtual bool createsAnonymousWrapper() const override { return true; } |
66 | 66 |
67 virtual void updateFromElement() override; | 67 virtual void updateFromElement() override; |
68 | 68 |
69 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; | 69 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; |
70 virtual bool hasControlClip() const override { return true; } | 70 virtual bool hasControlClip() const override { return true; } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 RefPtrWillBeMember<PopupMenu> m_popup; | 131 RefPtrWillBeMember<PopupMenu> m_popup; |
132 bool m_popupIsVisible; | 132 bool m_popupIsVisible; |
133 }; | 133 }; |
134 | 134 |
135 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); | 135 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); |
136 | 136 |
137 } | 137 } |
138 | 138 |
139 #endif | 139 #endif |
OLD | NEW |