RESOLVED FIXED Bug 49767
Make sure is* return false if the name is never bound
https://bugs.webkit.org/show_bug.cgi?id=49767
Summary Make sure is* return false if the name is never bound
Zhenyao Mo
Reported 2010-11-18 16:13:29 PST
For texture, buffer, renderbuffer, framebuffer. So we can work around this driver bug and pass enne's conformance test.
Attachments
patch (7.00 KB, patch)
2010-11-18 17:13 PST, Zhenyao Mo
zmo: commit-queue-
revised patch (6.97 KB, patch)
2010-11-18 17:16 PST, Zhenyao Mo
kbr: review-
zmo: commit-queue-
revised patch: naming fix (6.97 KB, patch)
2010-11-19 13:13 PST, Zhenyao Mo
zmo: commit-queue-
revised patch (7.10 KB, patch)
2010-11-19 13:23 PST, Zhenyao Mo
kbr: review+
zmo: commit-queue-
Zhenyao Mo
Comment 1 2010-11-18 17:13:15 PST
Zhenyao Mo
Comment 2 2010-11-18 17:14:24 PST
The is-object.html test is already checked in and marked as a failure. Once this lands and the bots results confirm the test passing, I'll remove the entry from the test_expectations and skipped.
Zhenyao Mo
Comment 3 2010-11-18 17:16:11 PST
Created attachment 74325 [details] revised patch Remove the "No new tests. (OOPS!)" from change log.
Adrienne Walker
Comment 4 2010-11-18 17:26:28 PST
Ah, good thought. If we fix this in WebKit, then we don't have to worry about incorrect drivers.
Kenneth Russell
Comment 5 2010-11-19 12:18:22 PST
Comment on attachment 74325 [details] revised patch View in context: https://bugs.webkit.org/attachment.cgi?id=74325&action=review The naming convention for these new methods is poor. The general rule is to name methods so clearly that comments aren't needed. This is especially true in a case like this where the methods are so simple. > WebCore/html/canvas/WebGLBuffer.h:62 > + bool bound() const { return object() && m_target; } bool hasEverBeenBound() const > WebCore/html/canvas/WebGLFramebuffer.h:59 > + // Return false if it is never bound; otherwise return true. Useless comment. > WebCore/html/canvas/WebGLFramebuffer.h:60 > + bool bound() const { return object() && m_bound; } bool hasEverBeenBound() const > WebCore/html/canvas/WebGLFramebuffer.h:62 > + void setBound() { m_bound = true; } void setHasEverBeenBound() > WebCore/html/canvas/WebGLRenderbuffer.h:63 > + // Return false if it is never bound; otherwise return true. Useless comment. > WebCore/html/canvas/WebGLRenderbuffer.h:66 > + bool bound() const { return object() && m_bound; } > + > + void setBound() { m_bound = true; } Naming. > WebCore/html/canvas/WebGLTexture.h:64 > + bool bound() const { return object() && m_target; } bool hasEverBeenBound()
Zhenyao Mo
Comment 6 2010-11-19 13:13:38 PST
Created attachment 74418 [details] revised patch: naming fix
Zhenyao Mo
Comment 7 2010-11-19 13:23:08 PST
Created attachment 74420 [details] revised patch
Kenneth Russell
Comment 8 2010-11-19 13:34:34 PST
Comment on attachment 74420 [details] revised patch Thanks, looks better.
Zhenyao Mo
Comment 9 2010-11-19 13:49:09 PST
Note You need to log in before you can comment on or make changes to this bug.