Title: [104605] trunk/Source/WebKit
- Revision
- 104605
- Author
- [email protected]
- Date
- 2012-01-10 11:38:09 -0800 (Tue, 10 Jan 2012)
Log Message
[BlackBerry] Fix assertion failure in BackingStore::blitContents
https://bugs.webkit.org/show_bug.cgi?id=75976
Prevent an assertion failure in BackingStore::blitContents by
checking that the srcRect of the transformation matrix is non empty.
Patch by Mike Lattanzio <[email protected]> on 2012-01-10
Reviewed by Adam Treat.
Upstream BlackBerry port is not yet building and testable.
* blackberry/Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::blitContents):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (104604 => 104605)
--- trunk/Source/WebKit/ChangeLog 2012-01-10 19:27:46 UTC (rev 104604)
+++ trunk/Source/WebKit/ChangeLog 2012-01-10 19:38:09 UTC (rev 104605)
@@ -1,3 +1,18 @@
+2012-01-10 Mike Lattanzio <[email protected]>
+
+ [BlackBerry] Fix assertion failure in BackingStore::blitContents
+ https://bugs.webkit.org/show_bug.cgi?id=75976
+
+ Prevent an assertion failure in BackingStore::blitContents by
+ checking that the srcRect of the transformation matrix is non empty.
+
+ Reviewed by Adam Treat.
+
+ Upstream BlackBerry port is not yet building and testable.
+
+ * blackberry/Api/BackingStore.cpp:
+ (BlackBerry::WebKit::BackingStorePrivate::blitContents):
+
2012-01-06 Benjamin Poulain <[email protected]>
[Mac] Sort the resources of WebKit.xcodeproj
Modified: trunk/Source/WebKit/blackberry/Api/BackingStore.cpp (104604 => 104605)
--- trunk/Source/WebKit/blackberry/Api/BackingStore.cpp 2012-01-10 19:27:46 UTC (rev 104604)
+++ trunk/Source/WebKit/blackberry/Api/BackingStore.cpp 2012-01-10 19:38:09 UTC (rev 104605)
@@ -1241,8 +1241,9 @@
#endif
// FIXME: This should not explicitely depend on WebCore::.
- TransformationMatrix transformation = TransformationMatrix::rectToRect(
- FloatRect(FloatPoint(0.0, 0.0), WebCore::IntSize(contents.size())), WebCore::IntRect(dstRect));
+ TransformationMatrix transformation;
+ if (!contents.isEmpty())
+ transformation = TransformationMatrix::rectToRect(FloatRect(FloatPoint(0.0, 0.0), WebCore::IntSize(contents.size())), WebCore::IntRect(dstRect));
bool blittingDirectlyToCompositingWindow = m_webPage->d->m_client->window()->windowUsage() == BlackBerry::Platform::Graphics::Window::GLES2Usage;
#if USE(ACCELERATED_COMPOSITING)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes