Changeset 106873 in webkit
- Timestamp:
- Feb 6, 2012 4:38:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106864 r106873 1 2012-02-06 Ehsan Akhgari <ehsan.akhgari@gmail.com> 2 3 WebGL conformance test misc/functions-returning-strings.html fails 4 https://bugs.webkit.org/show_bug.cgi?id=77149 5 6 Imported the WebGL conformance test related to this. 7 8 Reviewed by Kenneth Russell. 9 10 * fast/canvas/webgl/functions-returning-strings-expected.txt: Added. 11 * fast/canvas/webgl/functions-returning-strings.html: Added. 12 1 13 2012-02-06 Chris Rogers <crogers@google.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r106872 r106873 1 2012-02-06 Ehsan Akhgari <ehsan.akhgari@gmail.com> 2 3 WebGL conformance test misc/functions-returning-strings.html fails 4 https://bugs.webkit.org/show_bug.cgi?id=77149 5 6 Make sure that WebGL methods returning strings don't return null when 7 they run successfully. 8 9 Reviewed by Kenneth Russell. 10 11 Test: fast/canvas/webgl/functions-returning-strings.html 12 13 * html/canvas/WebGLRenderingContext.cpp: 14 (WebCore): 15 (WebCore::WebGLRenderingContext::getProgramInfoLog): 16 (WebCore::WebGLRenderingContext::getShaderInfoLog): 17 (WebCore::WebGLRenderingContext::getShaderSource): 18 (WebCore::WebGLRenderingContext::ensureNotNull): 19 * html/canvas/WebGLRenderingContext.h: 20 (WebGLRenderingContext): 21 1 22 2012-02-06 Enrica Casucci <enrica@apple.com> 2 23 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r106421 r106873 2514 2514 return ""; 2515 2515 WebGLStateRestorer(this, false); 2516 return m_context->getProgramInfoLog(objectOrZero(program));2516 return ensureNotNull(m_context->getProgramInfoLog(objectOrZero(program))); 2517 2517 } 2518 2518 … … 2614 2614 return ""; 2615 2615 WebGLStateRestorer(this, false); 2616 return m_context->getShaderInfoLog(objectOrZero(shader));2616 return ensureNotNull(m_context->getShaderInfoLog(objectOrZero(shader))); 2617 2617 } 2618 2618 … … 2624 2624 if (!validateWebGLObject("getShaderSource", shader)) 2625 2625 return ""; 2626 return shader->getSource();2626 return ensureNotNull(shader->getSource()); 2627 2627 } 2628 2628 … … 5124 5124 } 5125 5125 5126 String WebGLRenderingContext::ensureNotNull(const String& text) const 5127 { 5128 if (text.isNull()) 5129 return WTF::emptyString(); 5130 return text; 5131 } 5132 5126 5133 WebGLRenderingContext::LRUImageBufferCache::LRUImageBufferCache(int capacity) 5127 5134 : m_buffers(adoptArrayPtr(new OwnPtr<ImageBuffer>[capacity])) -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h
r106421 r106873 663 663 void synthesizeGLError(GC3Denum, const char* functionName, const char* description); 664 664 665 String ensureNotNull(const String&) const; 666 665 667 friend class WebGLStateRestorer; 666 668 };
Note: See TracChangeset
for help on using the changeset viewer.