Reviewed by Kenneth Russell.
[chromium] Fixing crash with empty render surfaces.
https://bugs.webkit.org/show_bug.cgi?id=51432
Test: platform/chromium/compositing/empty-render-surface-crasher.html
* platform/graphics/chromium/RenderSurfaceChromium.cpp:
(WebCore::RenderSurfaceChromium::draw):
2010-12-21 Vangelis Kokkevis <vangelis@chromium.org>
Reviewed by Kenneth Russell.
[chromium] Enabling layout tests in platform/chromium/compositing
and adding new layout test to check for crash on empty render surfaces.
https://bugs.webkit.org/show_bug.cgi?id=51432
* platform/chromium-gpu/test_expectations.txt:
* platform/chromium/compositing/empty-render-surface-crasher-expected.txt: Added.
* platform/chromium/compositing/empty-render-surface-crasher.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74484
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-12-21 Vangelis Kokkevis <vangelis@chromium.org>
+
+ Reviewed by Kenneth Russell.
+
+ [chromium] Enabling layout tests in platform/chromium/compositing
+ and adding new layout test to check for crash on empty render surfaces.
+ https://bugs.webkit.org/show_bug.cgi?id=51432
+
+ * platform/chromium-gpu/test_expectations.txt:
+ * platform/chromium/compositing/empty-render-surface-crasher-expected.txt: Added.
+ * platform/chromium/compositing/empty-render-surface-crasher.html: Added.
+
2010-12-22 Krithigassree Sambamurthy <krithigassree.sambamurthy@nokia.com>
Reviewed by Kenneth Rohde Christiansen.
// FIXME: remove the FAIL from the following line.
BUGNONE : compositing = PASS FAIL
+platform/chromium/compositing = PASS
+
// Unskip the canvas tests on Win and Linux only (since Mac does not support
// accelerated 2D canvas yet).
BUGNONE WIN LINUX : fast/canvas = PASS
--- /dev/null
+This page tests that an empty render surface does not crash as reported in this bug. Pass if this does not crash.
+
+
--- /dev/null
+<!DOCTYPE>
+<html>
+<head>
+<title>Empty Render Surface</title>
+ <style type="text/css" media="screen">
+ .container {
+ position: relative;
+ height: 0x;
+ width: 0px;
+ opacity:0.5;
+ }
+
+ .child {
+ -webkit-transform: translateZ(0);
+ height: 0px;
+ width: 0px;
+ background-color: red;
+ }
+ </style>
+ <script type="text/javascript" charset="utf-8">
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ </script>
+
+</head>
+<body>
+<p>This page tests that an empty render surface does not crash as reported in <a href='https://bugs.webkit.org/show_bug.cgi?id=51432'>this bug</a>. Pass if this does not crash.</p>
+
+<div class="container">
+ <div class="child"> </div>
+</div>
+
+</body>
+</html>
+2010-12-21 Vangelis Kokkevis <vangelis@chromium.org>
+
+ Reviewed by Kenneth Russell.
+
+ [chromium] Fixing crash with empty render surfaces.
+ https://bugs.webkit.org/show_bug.cgi?id=51432
+
+ Test: platform/chromium/compositing/empty-render-surface-crasher.html
+
+ * platform/graphics/chromium/RenderSurfaceChromium.cpp:
+ (WebCore::RenderSurfaceChromium::draw):
+
2010-12-21 Pavel Podivilov <podivilov@chromium.org>
Reviewed by Yury Semikhatsky.
void RenderSurfaceChromium::draw()
{
- if (m_skipsDraw)
+ if (m_skipsDraw || !m_contentsTexture)
return;
m_contentsTexture->bindTexture();