Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h

Issue 2007553002: Retire setGradientSpaceTransform, setPatternSpaceTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fmalita discovers SkMatrix::I() Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 29 matching lines...) Expand all
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 public: 41 public:
42 static Pattern::RepeatMode parseRepetitionType(const String&, ExceptionState &); 42 static Pattern::RepeatMode parseRepetitionType(const String&, ExceptionState &);
43 43
44 static CanvasPattern* create(PassRefPtr<Image> image, Pattern::RepeatMode re peat, bool originClean) 44 static CanvasPattern* create(PassRefPtr<Image> image, Pattern::RepeatMode re peat, bool originClean)
45 { 45 {
46 return new CanvasPattern(image, repeat, originClean); 46 return new CanvasPattern(image, repeat, originClean);
47 } 47 }
48 48
49 Pattern* getPattern() const { return m_pattern.get(); } 49 Pattern* getPattern() const { return m_pattern.get(); }
50 const AffineTransform& getTransform() const { return m_patternTransform; }
50 51
51 bool originClean() const { return m_originClean; } 52 bool originClean() const { return m_originClean; }
52 53
53 DEFINE_INLINE_TRACE() { } 54 DEFINE_INLINE_TRACE() { }
54 55
55 void setTransform(SVGMatrixTearOff*); 56 void setTransform(SVGMatrixTearOff*);
56 57
57 private: 58 private:
58 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean); 59 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean);
59 60
60 RefPtr<Pattern> m_pattern; 61 RefPtr<Pattern> m_pattern;
62 AffineTransform m_patternTransform;
61 bool m_originClean; 63 bool m_originClean;
62 }; 64 };
63 65
64 } // namespace blink 66 } // namespace blink
65 67
66 #endif // CanvasPattern_h 68 #endif // CanvasPattern_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterMac.mm ('k') | third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698