| 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 "CSSValueKeywords.h" |
| 26 #include "HTMLInputElement.h" | |
| 27 #include "HTMLMeterElement.h" | |
| 28 #include "HTMLNames.h" | 26 #include "HTMLNames.h" |
| 29 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
| 30 #include "core/editing/FrameSelection.h" | 28 #include "core/editing/FrameSelection.h" |
| 31 #include "core/fileapi/FileList.h" | 29 #include "core/fileapi/FileList.h" |
| 30 #include "core/html/HTMLInputElement.h" |
| 31 #include "core/html/HTMLMeterElement.h" |
| 32 #include "core/html/shadow/MediaControlElements.h" | 32 #include "core/html/shadow/MediaControlElements.h" |
| 33 #include "core/html/shadow/SpinButtonElement.h" | 33 #include "core/html/shadow/SpinButtonElement.h" |
| 34 #include "core/html/shadow/TextControlInnerElements.h" | 34 #include "core/html/shadow/TextControlInnerElements.h" |
| 35 #include "core/page/FocusController.h" | 35 #include "core/page/FocusController.h" |
| 36 #include "core/page/Frame.h" | 36 #include "core/page/Frame.h" |
| 37 #include "core/page/Page.h" | 37 #include "core/page/Page.h" |
| 38 #include "core/page/Settings.h" | 38 #include "core/page/Settings.h" |
| 39 #include "core/platform/FileSystem.h" | 39 #include "core/platform/FileSystem.h" |
| 40 #include "core/platform/FloatConversion.h" | 40 #include "core/platform/FloatConversion.h" |
| 41 #include "core/platform/LocalizedStrings.h" | 41 #include "core/platform/LocalizedStrings.h" |
| 42 #include "core/platform/graphics/FontSelector.h" | 42 #include "core/platform/graphics/FontSelector.h" |
| 43 #include "core/platform/graphics/GraphicsContext.h" | 43 #include "core/platform/graphics/GraphicsContext.h" |
| 44 #include "core/platform/graphics/StringTruncator.h" | 44 #include "core/platform/graphics/StringTruncator.h" |
| 45 #include "core/rendering/PaintInfo.h" | 45 #include "core/rendering/PaintInfo.h" |
| 46 #include "core/rendering/RenderMeter.h" | 46 #include "core/rendering/RenderMeter.h" |
| 47 #include "core/rendering/RenderView.h" | 47 #include "core/rendering/RenderView.h" |
| 48 #include "core/rendering/style/RenderStyle.h" | 48 #include "core/rendering/style/RenderStyle.h" |
| 49 | 49 |
| 50 #if ENABLE(INPUT_SPEECH) | 50 #if ENABLE(INPUT_SPEECH) |
| 51 #include "core/rendering/RenderInputSpeech.h" | 51 #include "core/rendering/RenderInputSpeech.h" |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 #if ENABLE(DATALIST_ELEMENT) | 54 #if ENABLE(DATALIST_ELEMENT) |
| 55 #include "HTMLCollection.h" | |
| 56 #include "HTMLDataListElement.h" | |
| 57 #include "HTMLOptionElement.h" | |
| 58 #include "core/dom/ElementShadow.h" | 55 #include "core/dom/ElementShadow.h" |
| 56 #include "core/html/HTMLCollection.h" |
| 57 #include "core/html/HTMLDataListElement.h" |
| 58 #include "core/html/HTMLOptionElement.h" |
| 59 #include "core/html/parser/HTMLParserIdioms.h" | 59 #include "core/html/parser/HTMLParserIdioms.h" |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 // The methods in this file are shared by all themes on every platform. | 62 // The methods in this file are shared by all themes on every platform. |
| 63 | 63 |
| 64 namespace WebCore { | 64 namespace WebCore { |
| 65 | 65 |
| 66 using namespace HTMLNames; | 66 using namespace HTMLNames; |
| 67 | 67 |
| 68 static Color& customFocusRingColor() | 68 static Color& customFocusRingColor() |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 | 1196 |
| 1197 return StringTruncator::centerTruncate(string, width, font, StringTruncator:
:EnableRoundingHacks); | 1197 return StringTruncator::centerTruncate(string, width, font, StringTruncator:
:EnableRoundingHacks); |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 bool RenderTheme::shouldOpenPickerWithF4Key() const | 1200 bool RenderTheme::shouldOpenPickerWithF4Key() const |
| 1201 { | 1201 { |
| 1202 return false; | 1202 return false; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 } // namespace WebCore | 1205 } // namespace WebCore |
| OLD | NEW |