| 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 "sky/engine/config.h" |
| 23 #include "core/rendering/RenderTheme.h" | 23 #include "sky/engine/core/rendering/RenderTheme.h" |
| 24 | 24 |
| 25 #include "gen/sky/core/CSSValueKeywords.h" | 25 #include "gen/sky/core/CSSValueKeywords.h" |
| 26 #include "core/dom/Document.h" | |
| 27 #include "core/dom/shadow/ElementShadow.h" | |
| 28 #include "core/editing/FrameSelection.h" | |
| 29 #include "core/frame/LocalFrame.h" | |
| 30 #include "core/html/parser/HTMLParserIdioms.h" | |
| 31 #include "core/page/FocusController.h" | |
| 32 #include "core/page/Page.h" | |
| 33 #include "core/frame/Settings.h" | |
| 34 #include "core/rendering/PaintInfo.h" | |
| 35 #include "core/rendering/RenderView.h" | |
| 36 #include "core/rendering/style/RenderStyle.h" | |
| 37 #include "platform/FloatConversion.h" | |
| 38 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 26 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 39 #include "platform/fonts/FontSelector.h" | 27 #include "sky/engine/core/dom/Document.h" |
| 40 #include "platform/graphics/GraphicsContextStateSaver.h" | 28 #include "sky/engine/core/dom/shadow/ElementShadow.h" |
| 41 #include "platform/text/StringTruncator.h" | 29 #include "sky/engine/core/editing/FrameSelection.h" |
| 42 #include "public/platform/Platform.h" | 30 #include "sky/engine/core/frame/LocalFrame.h" |
| 43 #include "public/platform/WebFallbackThemeEngine.h" | 31 #include "sky/engine/core/frame/Settings.h" |
| 44 #include "public/platform/WebRect.h" | 32 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 45 #include "wtf/text/StringBuilder.h" | 33 #include "sky/engine/core/page/FocusController.h" |
| 34 #include "sky/engine/core/page/Page.h" |
| 35 #include "sky/engine/core/rendering/PaintInfo.h" |
| 36 #include "sky/engine/core/rendering/RenderView.h" |
| 37 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 38 #include "sky/engine/platform/FloatConversion.h" |
| 39 #include "sky/engine/platform/fonts/FontSelector.h" |
| 40 #include "sky/engine/platform/graphics/GraphicsContextStateSaver.h" |
| 41 #include "sky/engine/platform/text/StringTruncator.h" |
| 42 #include "sky/engine/public/platform/Platform.h" |
| 43 #include "sky/engine/public/platform/WebFallbackThemeEngine.h" |
| 44 #include "sky/engine/public/platform/WebRect.h" |
| 45 #include "sky/engine/wtf/text/StringBuilder.h" |
| 46 | 46 |
| 47 // The methods in this file are shared by all themes on every platform. | 47 // The methods in this file are shared by all themes on every platform. |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 | 50 |
| 51 RenderTheme::RenderTheme() | 51 RenderTheme::RenderTheme() |
| 52 : m_hasCustomFocusRingColor(false) | 52 : m_hasCustomFocusRingColor(false) |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 | 55 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return theme().platformTapHighlightColor(); | 132 return theme().platformTapHighlightColor(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 RenderTheme& RenderTheme::theme() | 135 RenderTheme& RenderTheme::theme() |
| 136 { | 136 { |
| 137 DEFINE_STATIC_LOCAL(RenderTheme, renderTheme, ()); | 137 DEFINE_STATIC_LOCAL(RenderTheme, renderTheme, ()); |
| 138 return renderTheme; | 138 return renderTheme; |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |