| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 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 #ifndef CanvasStyle_h | 27 #ifndef CanvasStyle_h |
| 28 #define CanvasStyle_h | 28 #define CanvasStyle_h |
| 29 | 29 |
| 30 #include "platform/graphics/Color.h" | 30 #include "platform/graphics/Color.h" |
| 31 #include "platform/graphics/paint/PaintFlags.h" | 31 #include "platform/graphics/paint/PaintFlags.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Assertions.h" | 33 #include "platform/wtf/Assertions.h" |
| 34 #include "wtf/text/WTFString.h" | 34 #include "platform/wtf/text/WTFString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class CanvasGradient; | 38 class CanvasGradient; |
| 39 class CanvasPattern; | 39 class CanvasPattern; |
| 40 class HTMLCanvasElement; | 40 class HTMLCanvasElement; |
| 41 | 41 |
| 42 class CanvasStyle final : public GarbageCollected<CanvasStyle> { | 42 class CanvasStyle final : public GarbageCollected<CanvasStyle> { |
| 43 public: | 43 public: |
| 44 static CanvasStyle* CreateFromRGBA(RGBA32 rgba) { | 44 static CanvasStyle* CreateFromRGBA(RGBA32 rgba) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 Member<CanvasPattern> pattern_; | 77 Member<CanvasPattern> pattern_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 bool ParseColorOrCurrentColor(Color& parsed_color, | 80 bool ParseColorOrCurrentColor(Color& parsed_color, |
| 81 const String& color_string, | 81 const String& color_string, |
| 82 HTMLCanvasElement*); | 82 HTMLCanvasElement*); |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif | 86 #endif |
| OLD | NEW |