| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "public/platform/WebScrollbarThemePainter.h" | 26 #include "public/platform/WebScrollbarThemePainter.h" |
| 27 | 27 |
| 28 #include "platform/graphics/GraphicsContext.h" | 28 #include "platform/graphics/GraphicsContext.h" |
| 29 #include "platform/graphics/paint/SkPictureBuilder.h" | 29 #include "platform/graphics/paint/SkPictureBuilder.h" |
| 30 #include "platform/scroll/Scrollbar.h" | 30 #include "platform/scroll/Scrollbar.h" |
| 31 #include "platform/scroll/ScrollbarTheme.h" | 31 #include "platform/scroll/ScrollbarTheme.h" |
| 32 #include "public/platform/WebRect.h" | 32 #include "public/platform/WebRect.h" |
| 33 #include "skia/ext/cdl_canvas.h" |
| 33 #include "third_party/skia/include/core/SkCanvas.h" | 34 #include "third_party/skia/include/core/SkCanvas.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 void WebScrollbarThemePainter::assign(const WebScrollbarThemePainter& painter) { | 38 void WebScrollbarThemePainter::assign(const WebScrollbarThemePainter& painter) { |
| 38 // This is a pointer to a static object, so no ownership transferral. | 39 // This is a pointer to a static object, so no ownership transferral. |
| 39 m_theme = painter.m_theme; | 40 m_theme = painter.m_theme; |
| 40 m_scrollbar = painter.m_scrollbar; | 41 m_scrollbar = painter.m_scrollbar; |
| 41 m_deviceScaleFactor = painter.m_deviceScaleFactor; | 42 m_deviceScaleFactor = painter.m_deviceScaleFactor; |
| 42 } | 43 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 163 |
| 163 bool WebScrollbarThemePainter::trackNeedsRepaint() const { | 164 bool WebScrollbarThemePainter::trackNeedsRepaint() const { |
| 164 return m_scrollbar->trackNeedsRepaint(); | 165 return m_scrollbar->trackNeedsRepaint(); |
| 165 } | 166 } |
| 166 | 167 |
| 167 bool WebScrollbarThemePainter::thumbNeedsRepaint() const { | 168 bool WebScrollbarThemePainter::thumbNeedsRepaint() const { |
| 168 return m_scrollbar->thumbNeedsRepaint(); | 169 return m_scrollbar->thumbNeedsRepaint(); |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace blink | 172 } // namespace blink |
| OLD | NEW |