OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/rendering/RenderListBox.h" | 31 #include "core/rendering/RenderListBox.h" |
32 | 32 |
33 #include <math.h> | 33 #include "core/HTMLNames.h" |
34 #include "HTMLNames.h" | |
35 #include "core/accessibility/AXObjectCache.h" | 34 #include "core/accessibility/AXObjectCache.h" |
36 #include "core/css/CSSFontSelector.h" | 35 #include "core/css/CSSFontSelector.h" |
37 #include "core/css/resolver/StyleResolver.h" | 36 #include "core/css/resolver/StyleResolver.h" |
38 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
39 #include "core/dom/NodeRenderStyle.h" | 38 #include "core/dom/NodeRenderStyle.h" |
40 #include "core/editing/FrameSelection.h" | 39 #include "core/editing/FrameSelection.h" |
41 #include "core/frame/FrameView.h" | 40 #include "core/frame/FrameView.h" |
42 #include "core/frame/LocalFrame.h" | 41 #include "core/frame/LocalFrame.h" |
43 #include "core/html/HTMLOptGroupElement.h" | 42 #include "core/html/HTMLOptGroupElement.h" |
44 #include "core/html/HTMLOptionElement.h" | 43 #include "core/html/HTMLOptionElement.h" |
45 #include "core/html/HTMLSelectElement.h" | 44 #include "core/html/HTMLSelectElement.h" |
46 #include "core/page/EventHandler.h" | 45 #include "core/page/EventHandler.h" |
47 #include "core/page/FocusController.h" | 46 #include "core/page/FocusController.h" |
48 #include "core/page/Page.h" | 47 #include "core/page/Page.h" |
49 #include "core/page/SpatialNavigation.h" | 48 #include "core/page/SpatialNavigation.h" |
50 #include "core/rendering/HitTestResult.h" | 49 #include "core/rendering/HitTestResult.h" |
51 #include "core/rendering/PaintInfo.h" | 50 #include "core/rendering/PaintInfo.h" |
52 #include "core/rendering/RenderScrollbar.h" | 51 #include "core/rendering/RenderScrollbar.h" |
53 #include "core/rendering/RenderText.h" | 52 #include "core/rendering/RenderText.h" |
54 #include "core/rendering/RenderTheme.h" | 53 #include "core/rendering/RenderTheme.h" |
55 #include "core/rendering/RenderView.h" | 54 #include "core/rendering/RenderView.h" |
56 #include "platform/fonts/FontCache.h" | 55 #include "platform/fonts/FontCache.h" |
57 #include "platform/graphics/GraphicsContext.h" | 56 #include "platform/graphics/GraphicsContext.h" |
58 #include "platform/scroll/Scrollbar.h" | 57 #include "platform/scroll/Scrollbar.h" |
59 #include "platform/text/BidiTextRun.h" | 58 #include "platform/text/BidiTextRun.h" |
| 59 #include <math.h> |
60 | 60 |
61 using namespace std; | 61 using namespace std; |
62 | 62 |
63 namespace WebCore { | 63 namespace WebCore { |
64 | 64 |
65 using namespace HTMLNames; | 65 using namespace HTMLNames; |
66 | 66 |
67 const int rowSpacing = 1; | 67 const int rowSpacing = 1; |
68 | 68 |
69 const int optionsSpacingHorizontal = 2; | 69 const int optionsSpacingHorizontal = 2; |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 { | 1022 { |
1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde
x)); | 1023 return itemBoundingBoxRectInternal(point, listIndexToRenderListBoxIndex(inde
x)); |
1024 } | 1024 } |
1025 | 1025 |
1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index) | 1026 bool RenderListBox::scrollToRevealElementAtListIndex(int index) |
1027 { | 1027 { |
1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde
x(index)); | 1028 return scrollToRevealElementAtListIndexInternal(listIndexToRenderListBoxInde
x(index)); |
1029 } | 1029 } |
1030 | 1030 |
1031 } // namespace WebCore | 1031 } // namespace WebCore |
OLD | NEW |