Changeset 25124 in webkit
- Timestamp:
- Aug 17, 2007 1:42:38 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r25115 r25124 1 2007-08-17 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Maciej. 4 5 Simple test to ensure we don't crash when creating a pattern 6 7 * fast/canvas/create-pattern-does-not-crash-expected.txt: Added. 8 * fast/canvas/create-pattern-does-not-crash.html: Added. 9 1 10 2007-08-16 Justin Garcia <justin.garcia@apple.com> 2 11 -
trunk/WebCore/ChangeLog
r25116 r25124 1 2007-08-17 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Maciej. 4 5 http://bugs.webkit.org/show_bug.cgi?id=14189 6 <rdar://problem/5319511> REPRODUCIBLE CRASH: Canvas createPattern(canvas, ...) crashes on Windows (14189) 7 8 Ensure that we actually retain the CG pattern correctly. 9 10 Credit to Philip Taylor <excors@gmail.com> for finding the cause of this. 11 12 * html/CanvasPattern.cpp: 13 (WebCore::CanvasPattern::~CanvasPattern): 14 (WebCore::CanvasPattern::createPattern): 15 * html/CanvasPattern.h: 16 (WebCore::CanvasPattern::platformImage): 17 1 18 2007-08-16 Geoffrey Garen <ggaren@apple.com> 2 19 -
trunk/WebCore/html/CanvasPattern.cpp
r24970 r25124 92 92 CanvasPattern::~CanvasPattern() 93 93 { 94 #if PLATFORM(CG)95 CGImageRelease(m_platformImage);96 #endif97 94 if (m_cachedImage) 98 95 m_cachedImage->deref(this); … … 143 140 rect.origin.y = 0; 144 141 if (m_platformImage) { 145 rect.size.width = CGImageGetWidth(m_platformImage );146 rect.size.height = CGImageGetHeight(m_platformImage );142 rect.size.width = CGImageGetWidth(m_platformImage.get()); 143 rect.size.height = CGImageGetHeight(m_platformImage.get()); 147 144 } else { 148 145 if (!m_cachedImage) -
trunk/WebCore/html/CanvasPattern.h
r18874 r25124 31 31 32 32 #if PLATFORM(CG) 33 #include <wtf/RetainPtr.h> 33 34 #include <ApplicationServices/ApplicationServices.h> 34 35 #endif … … 52 53 53 54 #if PLATFORM(CG) 54 CGImageRef platformImage() const { return m_platformImage ; }55 CGImageRef platformImage() const { return m_platformImage.get(); } 55 56 #endif 56 57 CachedImage* cachedImage() const { return m_cachedImage; } … … 62 63 private: 63 64 #if PLATFORM(CG) 64 const CGImageRefm_platformImage;65 const RetainPtr<CGImageRef> m_platformImage; 65 66 #endif 66 67 CachedImage* const m_cachedImage;
Note: See TracChangeset
for help on using the changeset viewer.