| 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 * | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image, | 46 static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image, |
| 47 Pattern::RepeatMode repeat, bool originClean) | 47 Pattern::RepeatMode repeat, bool originClean) |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new CanvasPattern(image, repeat, originClean))
; | 49 return adoptRefWillBeNoop(new CanvasPattern(image, repeat, originClean))
; |
| 50 } | 50 } |
| 51 | 51 |
| 52 Pattern* pattern() const { return m_pattern.get(); } | 52 Pattern* pattern() const { return m_pattern.get(); } |
| 53 | 53 |
| 54 bool originClean() const { return m_originClean; } | 54 bool originClean() const { return m_originClean; } |
| 55 | 55 |
| 56 void trace(Visitor*) { } | 56 DEFINE_INLINE_TRACE() { } |
| 57 | 57 |
| 58 void setTransform(SVGMatrixTearOff*); | 58 void setTransform(SVGMatrixTearOff*); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean); | 61 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean); |
| 62 | 62 |
| 63 RefPtr<Pattern> m_pattern; | 63 RefPtr<Pattern> m_pattern; |
| 64 bool m_originClean; | 64 bool m_originClean; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // CanvasPattern_h | 69 #endif // CanvasPattern_h |
| OLD | NEW |