Title: [148516] trunk/Source/WebCore
- Revision
- 148516
- Author
- [email protected]
- Date
- 2013-04-16 09:16:04 -0700 (Tue, 16 Apr 2013)
Log Message
[BlackBerry] LayerTexture: check if the graphics context is NULL
https://bugs.webkit.org/show_bug.cgi?id=114674
Patch by Anthony Scian <[email protected]> on 2013-04-16
Reviewed by Rob Buis.
Internal PR: 256522
* platform/graphics/blackberry/LayerTexture.cpp:
(WebCore::LayerTexture::setContentsToColor):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (148515 => 148516)
--- trunk/Source/WebCore/ChangeLog 2013-04-16 16:07:50 UTC (rev 148515)
+++ trunk/Source/WebCore/ChangeLog 2013-04-16 16:16:04 UTC (rev 148516)
@@ -1,3 +1,15 @@
+2013-04-16 Anthony Scian <[email protected]>
+
+ [BlackBerry] LayerTexture: check if the graphics context is NULL
+ https://bugs.webkit.org/show_bug.cgi?id=114674
+
+ Reviewed by Rob Buis.
+
+ Internal PR: 256522
+
+ * platform/graphics/blackberry/LayerTexture.cpp:
+ (WebCore::LayerTexture::setContentsToColor):
+
2013-04-13 Andreas Kling <[email protected]>
REGRESSION(r148128): window.resizeTo doesn't work from Safari address bar.
Modified: trunk/Source/WebCore/platform/graphics/blackberry/LayerTexture.cpp (148515 => 148516)
--- trunk/Source/WebCore/platform/graphics/blackberry/LayerTexture.cpp 2013-04-16 16:07:50 UTC (rev 148515)
+++ trunk/Source/WebCore/platform/graphics/blackberry/LayerTexture.cpp 2013-04-16 16:16:04 UTC (rev 148516)
@@ -65,9 +65,10 @@
BlackBerry::Platform::Graphics::destroyBuffer(m_buffer);
m_buffer = BlackBerry::Platform::Graphics::createBuffer(IntSize(1, 1), BlackBerry::Platform::Graphics::BackedWhenNecessary);
- BlackBerry::Platform::Graphics::PlatformGraphicsContext* gc = lockBufferDrawable(m_buffer);
- gc->setFillColor(rgba);
- gc->addFillRect(BlackBerry::Platform::FloatRect(0, 0, 1, 1));
+ if (BlackBerry::Platform::Graphics::PlatformGraphicsContext* gc = lockBufferDrawable(m_buffer)) {
+ gc->setFillColor(rgba);
+ gc->addFillRect(BlackBerry::Platform::FloatRect(0, 0, 1, 1));
+ }
releaseBufferDrawable(m_buffer);
IntSize oldSize = m_size;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes