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

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
« no previous file with comments | « Source/core/rendering/RenderMediaControls.cpp ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*, const RenderStyle&) const overrid e; 61 virtual bool isChildAllowed(LayoutObject*, const RenderStyle&) const overrid e;
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int m_optionsWidth; 128 int m_optionsWidth;
129 129
130 int m_lastActiveIndex; 130 int m_lastActiveIndex;
131 131
132 RefPtr<RenderStyle> m_optionStyle; 132 RefPtr<RenderStyle> m_optionStyle;
133 133
134 RefPtrWillBePersistent<PopupMenu> m_popup; 134 RefPtrWillBePersistent<PopupMenu> m_popup;
135 bool m_popupIsVisible; 135 bool m_popupIsVisible;
136 }; 136 };
137 137
138 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); 138 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList());
139 139
140 } 140 }
141 141
142 #endif 142 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMediaControls.cpp ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698