2009-04-28 Eric Carlson <eric.carlson@apple.com>

         Reviewed by Darin Adler.
        
        <rdar://problem/6834876> Don't use BlockExceptions macros until QTKit supports 
        QTMoviePreferredTransformAttribute

        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        (WebCore::MediaPlayerPrivate::cacheMovieScale): use @try and @catch instead of 
        BEGIN_BLOCK_OBJC_EXCEPTIONS and END_BLOCK_OBJC_EXCEPTIONS for builds of QTKit 
        that throw an exception on QTMovieCurrentSizeAttribute but don't support 
        QTMoviePreferredTransformAttribute



git-svn-id: svn://svn.chromium.org/blink/trunk@42952 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e19551fa
2009-04-28 Eric Carlson <eric.carlson@apple.com>
Reviewed by Darin Adler.
<rdar://problem/6834876> Don't use BlockExceptions macros until QTKit supports
QTMoviePreferredTransformAttribute
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore::MediaPlayerPrivate::cacheMovieScale): use @try and @catch instead of
BEGIN_BLOCK_OBJC_EXCEPTIONS and END_BLOCK_OBJC_EXCEPTIONS for builds of QTKit
that throw an exception on QTMovieCurrentSizeAttribute but don't support
QTMoviePreferredTransformAttribute
2009-04-28 Darin Adler <darin@apple.com> 2009-04-28 Darin Adler <darin@apple.com>
Reviewed by Sam Weinig. Reviewed by Sam Weinig.
...@@ -673,9 +673,11 @@ void MediaPlayerPrivate::cacheMovieScale() ...@@ -673,9 +673,11 @@ void MediaPlayerPrivate::cacheMovieScale()
if (displayTransform) if (displayTransform)
initialSize = [displayTransform transformSize:naturalSize]; initialSize = [displayTransform transformSize:naturalSize];
else { else {
BEGIN_BLOCK_OBJC_EXCEPTIONS; @try {
initialSize = [[m_qtMovie.get() attributeForKey:QTMovieCurrentSizeAttribute] sizeValue]; initialSize = [[m_qtMovie.get() attributeForKey:QTMovieCurrentSizeAttribute] sizeValue];
END_BLOCK_OBJC_EXCEPTIONS; } @catch (id) {
initialSize = naturalSize;
}
} }
if (naturalSize.width) if (naturalSize.width)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment