| 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef RenderListBox_h | 31 #ifndef RenderListBox_h |
| 32 #define RenderListBox_h | 32 #define RenderListBox_h |
| 33 | 33 |
| 34 #include "RenderBlock.h" | 34 #include "RenderBlock.h" |
| 35 #include "ScrollableArea.h" | 35 #include "ScrollableArea.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class HTMLSelectElement; | 39 class HTMLSelectElement; |
| 40 | 40 |
| 41 class RenderListBox : public RenderBlock, private ScrollableArea { | 41 class RenderListBox FINAL : public RenderBlock, private ScrollableArea { |
| 42 public: | 42 public: |
| 43 explicit RenderListBox(Element*); | 43 explicit RenderListBox(Element*); |
| 44 virtual ~RenderListBox(); | 44 virtual ~RenderListBox(); |
| 45 | 45 |
| 46 void selectionChanged(); | 46 void selectionChanged(); |
| 47 | 47 |
| 48 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } | 48 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } |
| 49 | 49 |
| 50 int listIndexAtOffset(const LayoutSize&); | 50 int listIndexAtOffset(const LayoutSize&); |
| 51 LayoutRect itemBoundingBoxRect(const LayoutPoint&, int index); | 51 LayoutRect itemBoundingBoxRect(const LayoutPoint&, int index); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListBox()); | 156 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListBox()); |
| 157 return static_cast<RenderListBox*>(object); | 157 return static_cast<RenderListBox*>(object); |
| 158 } | 158 } |
| 159 | 159 |
| 160 // This will catch anyone doing an unnecessary cast. | 160 // This will catch anyone doing an unnecessary cast. |
| 161 void toRenderListBox(const RenderListBox*); | 161 void toRenderListBox(const RenderListBox*); |
| 162 | 162 |
| 163 } // namepace WebCore | 163 } // namepace WebCore |
| 164 | 164 |
| 165 #endif // RenderListBox_h | 165 #endif // RenderListBox_h |
| OLD | NEW |