Fixes the following build failure in release builds:
WebCore/platform/graphics/cg/PDFDocumentImage.cpp:230:12: error: unused variable 'pageCount' [-Werror,-Wunused-variable]
* platform/graphics/cg/PDFDocumentImage.cpp:
(WebCore::PDFDocumentImage::computeBoundsForCurrentPage): Change
ASSERT() to call pageCount().
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174018
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-09-26 David Kilzer <ddkilzer@apple.com>
+
+ REGRESSION (r173988): Fix unused variable warning in PDFDocumentImage.cpp
+
+ Fixes the following build failure in release builds:
+
+ WebCore/platform/graphics/cg/PDFDocumentImage.cpp:230:12: error: unused variable 'pageCount' [-Werror,-Wunused-variable]
+
+ * platform/graphics/cg/PDFDocumentImage.cpp:
+ (WebCore::PDFDocumentImage::computeBoundsForCurrentPage): Change
+ ASSERT() to call pageCount().
+
2014-09-26 Brian J. Burg <burg@cs.washington.edu>
StorageTracker::deleteOrigin being called off the main thread (ASSERTs in inspector/test-harness-trivially-works.html test)
void PDFDocumentImage::computeBoundsForCurrentPage()
{
- size_t pageCount = CGPDFDocumentGetNumberOfPages(m_document.get());
- ASSERT(pageCount > 0);
+ ASSERT(pageCount() > 0);
CGPDFPageRef cgPage = CGPDFDocumentGetPage(m_document.get(), 1);
CGRect mediaBox = CGPDFPageGetBoxRect(cgPage, kCGPDFMediaBox);