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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 int size() const; | 45 int size() const; |
46 | 46 |
47 void paintInvalidationOfScrollbarIfNeeded(); | 47 void paintInvalidationOfScrollbarIfNeeded(); |
48 | 48 |
49 private: | 49 private: |
50 HTMLSelectElement* selectElement() const; | 50 HTMLSelectElement* selectElement() const; |
51 | 51 |
52 virtual const char* renderName() const OVERRIDE { return "RenderListBox"; } | 52 virtual const char* renderName() const OVERRIDE { return "RenderListBox"; } |
53 | 53 |
54 virtual bool isListBox() const OVERRIDE { return true; } | 54 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type ==
RenderObjectListBox || RenderBlockFlow::isOfType(type); } |
55 | 55 |
56 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; | 56 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; |
57 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 57 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
58 | 58 |
59 virtual void stopAutoscroll() OVERRIDE; | 59 virtual void stopAutoscroll() OVERRIDE; |
60 | 60 |
61 void setHasVerticalScrollbar(bool hasScrollbar); | 61 void setHasVerticalScrollbar(bool hasScrollbar); |
62 PassRefPtr<Scrollbar> createScrollbar(); | 62 PassRefPtr<Scrollbar> createScrollbar(); |
63 void destroyScrollbar(); | 63 void destroyScrollbar(); |
64 | 64 |
65 LayoutUnit defaultItemHeight() const; | 65 LayoutUnit defaultItemHeight() const; |
66 LayoutUnit itemHeight() const; | 66 LayoutUnit itemHeight() const; |
67 }; | 67 }; |
68 | 68 |
69 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); | 69 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); |
70 | 70 |
71 } // namepace blink | 71 } // namepace blink |
72 | 72 |
73 #endif // RenderListBox_h | 73 #endif // RenderListBox_h |
OLD | NEW |