| 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 15 matching lines...) Expand all Loading... |
| 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/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/Assertions.h" | 32 #include "wtf/Assertions.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 | 34 |
| 35 class SkPaint; | 35 class SkPaint; |
| 36 class SkShader; | |
| 37 | 36 |
| 38 namespace blink { | 37 namespace blink { |
| 39 | 38 |
| 40 class CanvasGradient; | 39 class CanvasGradient; |
| 41 class CanvasPattern; | 40 class CanvasPattern; |
| 42 class HTMLCanvasElement; | 41 class HTMLCanvasElement; |
| 43 | 42 |
| 44 class CanvasStyle final : public GarbageCollected<CanvasStyle> { | 43 class CanvasStyle final : public GarbageCollected<CanvasStyle> { |
| 45 public: | 44 public: |
| 46 static CanvasStyle* createFromRGBA(RGBA32 rgba) { | 45 static CanvasStyle* createFromRGBA(RGBA32 rgba) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 Member<CanvasPattern> m_pattern; | 78 Member<CanvasPattern> m_pattern; |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 bool parseColorOrCurrentColor(Color& parsedColor, | 81 bool parseColorOrCurrentColor(Color& parsedColor, |
| 83 const String& colorString, | 82 const String& colorString, |
| 84 HTMLCanvasElement*); | 83 HTMLCanvasElement*); |
| 85 | 84 |
| 86 } // namespace blink | 85 } // namespace blink |
| 87 | 86 |
| 88 #endif | 87 #endif |
| OLD | NEW |