OLD | NEW |
1 /** | 1 /** |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/rendering/RenderTheme.h" | 23 #include "core/rendering/RenderTheme.h" |
24 | 24 |
25 #include "CSSValueKeywords.h" | 25 #include "core/CSSValueKeywords.h" |
26 #include "HTMLNames.h" | 26 #include "core/HTMLNames.h" |
27 #include "InputTypeNames.h" | 27 #include "core/InputTypeNames.h" |
28 #include "RuntimeEnabledFeatures.h" | |
29 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
30 #include "core/dom/shadow/ElementShadow.h" | 29 #include "core/dom/shadow/ElementShadow.h" |
31 #include "core/editing/FrameSelection.h" | 30 #include "core/editing/FrameSelection.h" |
32 #include "core/fileapi/FileList.h" | 31 #include "core/fileapi/FileList.h" |
33 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
34 #include "core/html/HTMLCollection.h" | 33 #include "core/html/HTMLCollection.h" |
35 #include "core/html/HTMLDataListElement.h" | 34 #include "core/html/HTMLDataListElement.h" |
36 #include "core/html/HTMLFormControlElement.h" | 35 #include "core/html/HTMLFormControlElement.h" |
37 #include "core/html/HTMLInputElement.h" | 36 #include "core/html/HTMLInputElement.h" |
38 #include "core/html/HTMLMeterElement.h" | 37 #include "core/html/HTMLMeterElement.h" |
39 #include "core/html/HTMLOptionElement.h" | 38 #include "core/html/HTMLOptionElement.h" |
40 #include "core/html/parser/HTMLParserIdioms.h" | 39 #include "core/html/parser/HTMLParserIdioms.h" |
41 #include "core/html/shadow/MediaControlElements.h" | 40 #include "core/html/shadow/MediaControlElements.h" |
42 #include "core/html/shadow/ShadowElementNames.h" | 41 #include "core/html/shadow/ShadowElementNames.h" |
43 #include "core/html/shadow/SpinButtonElement.h" | 42 #include "core/html/shadow/SpinButtonElement.h" |
44 #include "core/html/shadow/TextControlInnerElements.h" | 43 #include "core/html/shadow/TextControlInnerElements.h" |
45 #include "core/page/FocusController.h" | 44 #include "core/page/FocusController.h" |
46 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
47 #include "core/frame/Settings.h" | 46 #include "core/frame/Settings.h" |
48 #include "core/rendering/PaintInfo.h" | 47 #include "core/rendering/PaintInfo.h" |
49 #include "core/rendering/RenderMeter.h" | 48 #include "core/rendering/RenderMeter.h" |
50 #include "core/rendering/RenderView.h" | 49 #include "core/rendering/RenderView.h" |
51 #include "core/rendering/style/RenderStyle.h" | 50 #include "core/rendering/style/RenderStyle.h" |
52 #include "platform/FileMetadata.h" | 51 #include "platform/FileMetadata.h" |
53 #include "platform/FloatConversion.h" | 52 #include "platform/FloatConversion.h" |
| 53 #include "platform/RuntimeEnabledFeatures.h" |
54 #include "platform/fonts/FontSelector.h" | 54 #include "platform/fonts/FontSelector.h" |
55 #include "platform/graphics/GraphicsContextStateSaver.h" | 55 #include "platform/graphics/GraphicsContextStateSaver.h" |
56 #include "platform/text/PlatformLocale.h" | 56 #include "platform/text/PlatformLocale.h" |
57 #include "platform/text/StringTruncator.h" | 57 #include "platform/text/StringTruncator.h" |
58 #include "public/platform/Platform.h" | 58 #include "public/platform/Platform.h" |
59 #include "public/platform/WebFallbackThemeEngine.h" | 59 #include "public/platform/WebFallbackThemeEngine.h" |
60 #include "public/platform/WebRect.h" | 60 #include "public/platform/WebRect.h" |
61 #include "wtf/text/StringBuilder.h" | 61 #include "wtf/text/StringBuilder.h" |
62 | 62 |
63 // The methods in this file are shared by all themes on every platform. | 63 // The methods in this file are shared by all themes on every platform. |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 | 1218 |
1219 // padding - not honored by WinIE, needs to be removed. | 1219 // padding - not honored by WinIE, needs to be removed. |
1220 style->resetPadding(); | 1220 style->resetPadding(); |
1221 | 1221 |
1222 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 1222 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
1223 // for now, we will not honor it. | 1223 // for now, we will not honor it. |
1224 style->resetBorder(); | 1224 style->resetBorder(); |
1225 } | 1225 } |
1226 | 1226 |
1227 } // namespace WebCore | 1227 } // namespace WebCore |
OLD | NEW |