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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 isOfType(RenderObjectType type) const override { return type == RenderObjectMenuList || RenderFlexibleBox::isOfType(type); } 60 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectMenuList || RenderFlexibleBox::isOfType(type); }
61 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; 61 virtual bool isChildAllowed(LayoutObject*, RenderStyle*) const override;
62 62
63 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) override; 63 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0) override;
64 virtual void removeChild(RenderObject*) override; 64 virtual void removeChild(LayoutObject*) 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; }
71 virtual bool canHaveGeneratedChildren() const override { return false; } 71 virtual bool canHaveGeneratedChildren() const override { return false; }
72 72
73 virtual const char* renderName() const override { return "RenderMenuList"; } 73 virtual const char* renderName() const override { return "RenderMenuList"; }
74 74
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 int m_optionsWidth; 125 int m_optionsWidth;
126 126
127 int m_lastActiveIndex; 127 int m_lastActiveIndex;
128 128
129 RefPtr<RenderStyle> m_optionStyle; 129 RefPtr<RenderStyle> m_optionStyle;
130 130
131 RefPtrWillBePersistent<PopupMenu> m_popup; 131 RefPtrWillBePersistent<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_LAYOUT_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList());
136 136
137 } 137 }
138 138
139 #endif 139 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698