| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2008 Apple Inc. All Rights Reserved. |    2  * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 
|    3  * Copyright (C) 2008, 2009 Google Inc. |    3  * Copyright (C) 2008, 2009 Google Inc. | 
|    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  * 1. Redistributions of source code must retain the above copyright |    8  * 1. Redistributions of source code must retain the above copyright | 
|    9  *    notice, this list of conditions and the following disclaimer. |    9  *    notice, this list of conditions and the following disclaimer. | 
|   10  * 2. Redistributions in binary form must reproduce the above copyright |   10  * 2. Redistributions in binary form must reproduce the above copyright | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|   23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |   23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
|   24  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |   24  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|   25  */ |   25  */ | 
|   26  |   26  | 
|   27 #include "config.h" |   27 #include "config.h" | 
|   28 #include "core/platform/ScrollbarThemeWin.h" |   28 #include "core/platform/ScrollbarThemeWin.h" | 
|   29  |   29  | 
|   30 #include <windows.h> |   30 #include <windows.h> | 
|   31 #include <vsstyle.h> |   31 #include <vsstyle.h> | 
|   32  |   32  | 
|   33 #include "core/platform/LayoutTestSupport.h" |  | 
|   34 #include "core/platform/PlatformMouseEvent.h" |   33 #include "core/platform/PlatformMouseEvent.h" | 
|   35 #include "core/platform/Scrollbar.h" |   34 #include "core/platform/Scrollbar.h" | 
|   36 #include "core/platform/graphics/GraphicsContext.h" |   35 #include "core/platform/graphics/GraphicsContext.h" | 
|   37 #include "core/platform/win/SystemInfo.h" |   36 #include "core/platform/win/SystemInfo.h" | 
 |   37 #include "platform/LayoutTestSupport.h" | 
|   38 #include "public/platform/Platform.h" |   38 #include "public/platform/Platform.h" | 
|   39 #include "public/platform/WebRect.h" |   39 #include "public/platform/WebRect.h" | 
|   40 #include "public/platform/win/WebThemeEngine.h" |   40 #include "public/platform/win/WebThemeEngine.h" | 
|   41 namespace WebCore { |   41 namespace WebCore { | 
|   42  |   42  | 
|   43 ScrollbarTheme* ScrollbarTheme::nativeTheme() |   43 ScrollbarTheme* ScrollbarTheme::nativeTheme() | 
|   44 { |   44 { | 
|   45     static ScrollbarThemeWin theme; |   45     static ScrollbarThemeWin theme; | 
|   46     return &theme; |   46     return &theme; | 
|   47 } |   47 } | 
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  246         int width = scrollbar->width() < 2 * girth ? scrollbar->width() / 2 : gi
     rth; |  246         int width = scrollbar->width() < 2 * girth ? scrollbar->width() / 2 : gi
     rth; | 
|  247         return IntSize(width, thickness); |  247         return IntSize(width, thickness); | 
|  248     } |  248     } | 
|  249  |  249  | 
|  250     int height = scrollbar->height() < 2 * girth ? scrollbar->height() / 2 : gir
     th; |  250     int height = scrollbar->height() < 2 * girth ? scrollbar->height() / 2 : gir
     th; | 
|  251     return IntSize(thickness, height); |  251     return IntSize(thickness, height); | 
|  252 } |  252 } | 
|  253  |  253  | 
|  254  |  254  | 
|  255 } // namespace WebCore |  255 } // namespace WebCore | 
| OLD | NEW |