| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 int scrollToward(const IntPoint&); // Returns the new index or -1 if no scro
ll occurred | 54 int scrollToward(const IntPoint&); // Returns the new index or -1 if no scro
ll occurred |
| 55 | 55 |
| 56 int size() const; | 56 int size() const; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 virtual const char* renderName() const { return "RenderListBox"; } | 59 virtual const char* renderName() const { return "RenderListBox"; } |
| 60 | 60 |
| 61 virtual bool isListBox() const { return true; } | 61 virtual bool isListBox() const { return true; } |
| 62 | 62 |
| 63 virtual void updateFromElement(); | 63 virtual void updateFromElement(); |
| 64 | 64 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; |
| 65 virtual bool hasControlClip() const { return true; } | 65 virtual bool hasControlClip() const { return true; } |
| 66 virtual void paintObject(PaintInfo&, const LayoutPoint&); | 66 virtual void paintObject(PaintInfo&, const LayoutPoint&); |
| 67 virtual LayoutRect controlClipRect(const LayoutPoint&) const; | 67 virtual LayoutRect controlClipRect(const LayoutPoint&) const; |
| 68 | 68 |
| 69 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& poi
ntInContainer, const LayoutPoint& accumulatedOffset); | 69 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& poi
ntInContainer, const LayoutPoint& accumulatedOffset); |
| 70 | 70 |
| 71 virtual bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1
, Node** stopNode = 0); | 71 virtual bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1
, Node** stopNode = 0); |
| 72 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float
multiplier = 1, Node** stopNode = 0); | 72 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float
multiplier = 1, Node** stopNode = 0); |
| 73 | 73 |
| 74 virtual void computePreferredLogicalWidths(); | 74 virtual void computePreferredLogicalWidths(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 ASSERT(!object || object->isListBox()); | 151 ASSERT(!object || object->isListBox()); |
| 152 return static_cast<RenderListBox*>(object); | 152 return static_cast<RenderListBox*>(object); |
| 153 } | 153 } |
| 154 | 154 |
| 155 // This will catch anyone doing an unnecessary cast. | 155 // This will catch anyone doing an unnecessary cast. |
| 156 void toRenderListBox(const RenderListBox*); | 156 void toRenderListBox(const RenderListBox*); |
| 157 | 157 |
| 158 } // namepace WebCore | 158 } // namepace WebCore |
| 159 | 159 |
| 160 #endif // RenderListBox_h | 160 #endif // RenderListBox_h |
| OLD | NEW |