OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
5 * Copyright (C) 2008, 2009 Google Inc. | 5 * Copyright (C) 2008, 2009 Google Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/rendering/RenderThemeChromiumFontProvider.h" | 33 #include "core/rendering/RenderThemeChromiumFontProvider.h" |
34 #include "platform/LayoutTestSupport.h" | 34 #include "platform/LayoutTestSupport.h" |
35 #include "platform/graphics/GraphicsContext.h" | 35 #include "platform/graphics/GraphicsContext.h" |
36 #include "platform/graphics/Image.h" | 36 #include "platform/graphics/Image.h" |
37 #include "platform/scroll/ScrollbarTheme.h" | 37 #include "platform/scroll/ScrollbarTheme.h" |
38 #include "wtf/CurrentTime.h" | 38 #include "wtf/CurrentTime.h" |
39 #include "wtf/StdLibExtras.h" | 39 #include "wtf/StdLibExtras.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 enum PaddingType { | |
44 TopPadding, | |
45 RightPadding, | |
46 BottomPadding, | |
47 LeftPadding | |
48 }; | |
49 | |
50 static const int styledMenuListInternalPadding[4] = { 1, 4, 1, 4 }; | 43 static const int styledMenuListInternalPadding[4] = { 1, 4, 1, 4 }; |
51 | 44 |
52 // These values all match Safari/Win. | 45 // These values all match Safari/Win. |
53 static const float defaultControlFontPixelSize = 13; | 46 static const float defaultControlFontPixelSize = 13; |
54 static const float defaultCancelButtonSize = 9; | 47 static const float defaultCancelButtonSize = 9; |
55 static const float minCancelButtonSize = 5; | 48 static const float minCancelButtonSize = 5; |
56 static const float maxCancelButtonSize = 21; | 49 static const float maxCancelButtonSize = 21; |
57 static const float defaultSearchFieldResultsDecorationSize = 13; | 50 static const float defaultSearchFieldResultsDecorationSize = 13; |
58 static const float minSearchFieldResultsDecorationSize = 9; | 51 static const float minSearchFieldResultsDecorationSize = 9; |
59 static const float maxSearchFieldResultsDecorationSize = 30; | 52 static const float maxSearchFieldResultsDecorationSize = 30; |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 474 } |
482 | 475 |
483 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() | 476 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() |
484 { | 477 { |
485 if (!m_needsFlipping) | 478 if (!m_needsFlipping) |
486 return; | 479 return; |
487 m_paintInfo.context->restore(); | 480 m_paintInfo.context->restore(); |
488 } | 481 } |
489 | 482 |
490 } // namespace WebCore | 483 } // namespace WebCore |
OLD | NEW |