OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2012 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2008, 2012 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 30 matching lines...) Expand all Loading... |
41 { | 41 { |
42 return adoptRef(new GradientGeneratedImage(generator, size)); | 42 return adoptRef(new GradientGeneratedImage(generator, size)); |
43 } | 43 } |
44 | 44 |
45 virtual ~GradientGeneratedImage() | 45 virtual ~GradientGeneratedImage() |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 protected: | 49 protected: |
50 virtual void draw(GraphicsContext*, const FloatRect&, const FloatRect&, | 50 virtual void draw(GraphicsContext*, const FloatRect&, const FloatRect&, |
51 CompositeOperator, WebBlendMode) OVERRIDE; | 51 CompositeOperator, WebBlendMode) override; |
52 virtual void drawPattern(GraphicsContext*, const FloatRect&, | 52 virtual void drawPattern(GraphicsContext*, const FloatRect&, |
53 const FloatSize&, const FloatPoint&, CompositeOperator, | 53 const FloatSize&, const FloatPoint&, CompositeOperator, |
54 const FloatRect&, WebBlendMode, const IntSize& repeatSpacing) OVERRIDE; | 54 const FloatRect&, WebBlendMode, const IntSize& repeatSpacing) override; |
55 | 55 |
56 GradientGeneratedImage(PassRefPtr<Gradient> generator, const IntSize& size) | 56 GradientGeneratedImage(PassRefPtr<Gradient> generator, const IntSize& size) |
57 : m_gradient(generator) | 57 : m_gradient(generator) |
58 { | 58 { |
59 m_size = size; | 59 m_size = size; |
60 } | 60 } |
61 | 61 |
62 RefPtr<Gradient> m_gradient; | 62 RefPtr<Gradient> m_gradient; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif | 67 #endif |
OLD | NEW |