| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void didSetSelectedIndex(int listIndex); | 52 void didSetSelectedIndex(int listIndex); |
| 53 | 53 |
| 54 String text() const; | 54 String text() const; |
| 55 | 55 |
| 56 virtual PopupMenuStyle itemStyle(unsigned listIndex) const override; | 56 virtual PopupMenuStyle itemStyle(unsigned listIndex) const override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 HTMLSelectElement* selectElement() const; | 59 HTMLSelectElement* selectElement() const; |
| 60 | 60 |
| 61 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectMenuList || RenderFlexibleBox::isOfType(type); } | 61 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectMenuList || RenderFlexibleBox::isOfType(type); } |
| 62 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; | 62 virtual bool isChildAllowed(RenderObject*, const RenderStyle*) const overrid
e; |
| 63 | 63 |
| 64 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; | 64 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; |
| 65 virtual void removeChild(RenderObject*) override; | 65 virtual void removeChild(RenderObject*) override; |
| 66 virtual bool createsAnonymousWrapper() const override { return true; } | 66 virtual bool createsAnonymousWrapper() const override { return true; } |
| 67 | 67 |
| 68 virtual void updateFromElement() override; | 68 virtual void updateFromElement() override; |
| 69 | 69 |
| 70 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; | 70 virtual LayoutRect controlClipRect(const LayoutPoint&) const override; |
| 71 virtual bool hasControlClip() const override { return true; } | 71 virtual bool hasControlClip() const override { return true; } |
| 72 virtual bool canHaveGeneratedChildren() const override { return false; } | 72 virtual bool canHaveGeneratedChildren() const override { return false; } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 RefPtrWillBeMember<PopupMenu> m_popup; | 132 RefPtrWillBeMember<PopupMenu> m_popup; |
| 133 bool m_popupIsVisible; | 133 bool m_popupIsVisible; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); | 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); |
| 137 | 137 |
| 138 } | 138 } |
| 139 | 139 |
| 140 #endif | 140 #endif |
| OLD | NEW |