Skip to content
  • dino@apple.com's avatar
    Support unprefixed WebGL context creation · 5f837bed
    dino@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=122523
    <rdar://problem/15179463>
    
    Reviewed by Simon Fraser.
    
    Source/WebCore:
    
    Add support for the unprefixed "webgl" canvas context type.
    
    Test: fast/canvas/webgl/unprefixed-context.html
    
    * html/HTMLCanvasElement.cpp:
    (WebCore::HTMLCanvasElement::is3dType):
    * inspector/InjectedScriptCanvasModuleSource.js:
    
    LayoutTests:
    
    Tests that we can create a context without the
    "experimental-" prefix. Meanwhile, most of the other
    WebGL tests should start to use the unprefixed
    form automatically (the helper script attempts
    "webgl" first).
    
    * fast/canvas/webgl/unprefixed-context-expected.txt: Added.
    * fast/canvas/webgl/unprefixed-context.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5f837bed