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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/frame/LocalFrame.h" | 42 #include "core/frame/LocalFrame.h" |
43 #include "core/html/HTMLOptGroupElement.h" | 43 #include "core/html/HTMLOptGroupElement.h" |
44 #include "core/html/HTMLOptionElement.h" | 44 #include "core/html/HTMLOptionElement.h" |
45 #include "core/html/HTMLSelectElement.h" | 45 #include "core/html/HTMLSelectElement.h" |
46 #include "core/page/EventHandler.h" | 46 #include "core/page/EventHandler.h" |
47 #include "core/page/FocusController.h" | 47 #include "core/page/FocusController.h" |
48 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
49 #include "core/page/SpatialNavigation.h" | 49 #include "core/page/SpatialNavigation.h" |
50 #include "core/rendering/HitTestResult.h" | 50 #include "core/rendering/HitTestResult.h" |
51 #include "core/rendering/PaintInfo.h" | 51 #include "core/rendering/PaintInfo.h" |
52 #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 "core/rendering/TextRunConstructor.h" | 55 #include "core/rendering/TextRunConstructor.h" |
57 #include "platform/fonts/FontCache.h" | 56 #include "platform/fonts/FontCache.h" |
58 #include "platform/graphics/GraphicsContext.h" | 57 #include "platform/graphics/GraphicsContext.h" |
59 #include "platform/scroll/Scrollbar.h" | |
60 #include "platform/text/BidiTextRun.h" | 58 #include "platform/text/BidiTextRun.h" |
61 #include <math.h> | 59 #include <math.h> |
62 | 60 |
63 namespace blink { | 61 namespace blink { |
64 | 62 |
65 using namespace HTMLNames; | 63 using namespace HTMLNames; |
66 | 64 |
67 // Default size when the multiple attribute is present but size attribute is abs
ent. | 65 // Default size when the multiple attribute is present but size attribute is abs
ent. |
68 const int defaultSize = 4; | 66 const int defaultSize = 4; |
69 | 67 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 133 } |
136 | 134 |
137 void RenderListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, L
ayoutUnit& maxLogicalWidth) const | 135 void RenderListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, L
ayoutUnit& maxLogicalWidth) const |
138 { | 136 { |
139 RenderBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWi
dth); | 137 RenderBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWi
dth); |
140 if (style()->width().isPercent()) | 138 if (style()->width().isPercent()) |
141 minLogicalWidth = 0; | 139 minLogicalWidth = 0; |
142 } | 140 } |
143 | 141 |
144 } // namespace blink | 142 } // namespace blink |
OLD | NEW |