Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: Source/core/rendering/RenderMenuList.h

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698