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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase better. 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
« no previous file with comments | « Source/core/rendering/RenderImage.h ('k') | Source/core/rendering/RenderListItem.h » ('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) 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 explicit RenderListBox(Element*); 42 explicit RenderListBox(Element*);
43 virtual ~RenderListBox(); 43 virtual ~RenderListBox();
44 44
45 int size() const; 45 int size() const;
46 46
47 private: 47 private:
48 HTMLSelectElement* selectElement() const; 48 HTMLSelectElement* selectElement() const;
49 49
50 virtual const char* renderName() const override { return "RenderListBox"; } 50 virtual const char* renderName() const override { return "RenderListBox"; }
51 51
52 virtual bool isListBox() const override { return true; } 52 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectListBox || RenderBlockFlow::isOfType(type); }
53 53
54 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override; 54 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override;
55 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 55 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override;
56 56
57 virtual void stopAutoscroll() override; 57 virtual void stopAutoscroll() override;
58 58
59 LayoutUnit defaultItemHeight() const; 59 LayoutUnit defaultItemHeight() const;
60 LayoutUnit itemHeight() const; 60 LayoutUnit itemHeight() const;
61 }; 61 };
62 62
63 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); 63 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox());
64 64
65 } // namepace blink 65 } // namepace blink
66 66
67 #endif // RenderListBox_h 67 #endif // RenderListBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderImage.h ('k') | Source/core/rendering/RenderListItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698