| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 int size() const; | 58 int size() const; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 HTMLSelectElement* selectElement() const; | 61 HTMLSelectElement* selectElement() const; |
| 62 | 62 |
| 63 virtual const char* renderName() const { return "RenderListBox"; } | 63 virtual const char* renderName() const { return "RenderListBox"; } |
| 64 | 64 |
| 65 virtual bool isListBox() const { return true; } | 65 virtual bool isListBox() const { return true; } |
| 66 | 66 |
| 67 virtual void updateFromElement(); | 67 virtual void updateFromElement(); |
| 68 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; | |
| 69 virtual bool hasControlClip() const { return true; } | 68 virtual bool hasControlClip() const { return true; } |
| 70 virtual void paintObject(PaintInfo&, const LayoutPoint&); | 69 virtual void paintObject(PaintInfo&, const LayoutPoint&); |
| 71 virtual LayoutRect controlClipRect(const LayoutPoint&) const; | 70 virtual LayoutRect controlClipRect(const LayoutPoint&) const; |
| 72 | 71 |
| 73 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); | 72 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); |
| 74 | 73 |
| 75 virtual bool scrollImpl(ScrollDirection, ScrollGranularity, float) OVERRIDE; | 74 virtual bool scrollImpl(ScrollDirection, ScrollGranularity, float) OVERRIDE; |
| 76 | 75 |
| 77 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 76 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
| 78 virtual void computePreferredLogicalWidths() OVERRIDE; | 77 virtual void computePreferredLogicalWidths() OVERRIDE; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 int m_indexOffset; | 158 int m_indexOffset; |
| 160 | 159 |
| 161 RefPtr<Scrollbar> m_vBar; | 160 RefPtr<Scrollbar> m_vBar; |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); | 163 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); |
| 165 | 164 |
| 166 } // namepace WebCore | 165 } // namepace WebCore |
| 167 | 166 |
| 168 #endif // RenderListBox_h | 167 #endif // RenderListBox_h |
| OLD | NEW |