<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[165179] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/165179">165179</a></dd>
<dt>Author</dt> <dd>zandobersek@gmail.com</dd>
<dt>Date</dt> <dd>2014-03-06 01:14:58 -0800 (Thu, 06 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move Source/WebCore/html/canvas/ code to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=129668

Reviewed by Anders Carlsson.

Replace uses of OwnPtr and PassOwnPtr in code under Source/WebCore/html/canvas/ to std::unique_ptr.

* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::~HTMLCanvasElement):
(WebCore::HTMLCanvasElement::getContext):
* html/HTMLCanvasElement.h:
* html/canvas/ANGLEInstancedArrays.cpp:
* html/canvas/ANGLEInstancedArrays.h:
* html/canvas/CanvasRenderingContext2D.h:
* html/canvas/EXTTextureFilterAnisotropic.cpp:
* html/canvas/EXTTextureFilterAnisotropic.h:
* html/canvas/OESElementIndexUint.cpp:
* html/canvas/OESElementIndexUint.h:
* html/canvas/OESStandardDerivatives.cpp:
* html/canvas/OESStandardDerivatives.h:
* html/canvas/OESTextureFloat.cpp:
* html/canvas/OESTextureFloat.h:
* html/canvas/OESTextureFloatLinear.cpp:
* html/canvas/OESTextureFloatLinear.h:
* html/canvas/OESTextureHalfFloat.cpp:
* html/canvas/OESTextureHalfFloat.h:
* html/canvas/OESTextureHalfFloatLinear.cpp:
* html/canvas/OESTextureHalfFloatLinear.h:
* html/canvas/OESVertexArrayObject.cpp:
* html/canvas/OESVertexArrayObject.h:
* html/canvas/WebGLCompressedTextureATC.cpp:
* html/canvas/WebGLCompressedTextureATC.h:
* html/canvas/WebGLCompressedTexturePVRTC.cpp:
* html/canvas/WebGLCompressedTexturePVRTC.h:
* html/canvas/WebGLCompressedTextureS3TC.cpp:
* html/canvas/WebGLCompressedTextureS3TC.h:
* html/canvas/WebGLDebugRendererInfo.cpp:
* html/canvas/WebGLDebugRendererInfo.h:
* html/canvas/WebGLDebugShaders.cpp:
* html/canvas/WebGLDebugShaders.h:
* html/canvas/WebGLDepthTexture.cpp:
* html/canvas/WebGLDepthTexture.h:
* html/canvas/WebGLDrawBuffers.cpp:
* html/canvas/WebGLDrawBuffers.h:
* html/canvas/WebGLLoseContext.cpp:
* html/canvas/WebGLLoseContext.h:
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::create):
(WebCore::WebGLRenderingContext::getExtension):
* html/canvas/WebGLRenderingContext.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLCanvasElementcpp">trunk/Source/WebCore/html/HTMLCanvasElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLCanvasElementh">trunk/Source/WebCore/html/HTMLCanvasElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasANGLEInstancedArrayscpp">trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasANGLEInstancedArraysh">trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dh">trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasEXTTextureFilterAnisotropiccpp">trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasEXTTextureFilterAnisotropich">trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESElementIndexUintcpp">trunk/Source/WebCore/html/canvas/OESElementIndexUint.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESElementIndexUinth">trunk/Source/WebCore/html/canvas/OESElementIndexUint.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESStandardDerivativescpp">trunk/Source/WebCore/html/canvas/OESStandardDerivatives.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESStandardDerivativesh">trunk/Source/WebCore/html/canvas/OESStandardDerivatives.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureFloatcpp">trunk/Source/WebCore/html/canvas/OESTextureFloat.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureFloath">trunk/Source/WebCore/html/canvas/OESTextureFloat.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureFloatLinearcpp">trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureFloatLinearh">trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureHalfFloatcpp">trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureHalfFloath">trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureHalfFloatLinearcpp">trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESTextureHalfFloatLinearh">trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESVertexArrayObjectcpp">trunk/Source/WebCore/html/canvas/OESVertexArrayObject.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasOESVertexArrayObjecth">trunk/Source/WebCore/html/canvas/OESVertexArrayObject.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTextureATCcpp">trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTextureATCh">trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTexturePVRTCcpp">trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTexturePVRTCh">trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTextureS3TCcpp">trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLCompressedTextureS3TCh">trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDebugRendererInfocpp">trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDebugRendererInfoh">trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDebugShaderscpp">trunk/Source/WebCore/html/canvas/WebGLDebugShaders.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDebugShadersh">trunk/Source/WebCore/html/canvas/WebGLDebugShaders.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDepthTexturecpp">trunk/Source/WebCore/html/canvas/WebGLDepthTexture.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDepthTextureh">trunk/Source/WebCore/html/canvas/WebGLDepthTexture.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDrawBufferscpp">trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLDrawBuffersh">trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLLoseContextcpp">trunk/Source/WebCore/html/canvas/WebGLLoseContext.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLLoseContexth">trunk/Source/WebCore/html/canvas/WebGLLoseContext.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContextcpp">trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContexth">trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/ChangeLog        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -1,5 +1,58 @@
</span><span class="cx"> 2014-03-06  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
</span><span class="cx"> 
</span><ins>+        Move Source/WebCore/html/canvas/ code to std::unique_ptr
+        https://bugs.webkit.org/show_bug.cgi?id=129668
+
+        Reviewed by Anders Carlsson.
+
+        Replace uses of OwnPtr and PassOwnPtr in code under Source/WebCore/html/canvas/ to std::unique_ptr.
+
+        * html/HTMLCanvasElement.cpp:
+        (WebCore::HTMLCanvasElement::~HTMLCanvasElement):
+        (WebCore::HTMLCanvasElement::getContext):
+        * html/HTMLCanvasElement.h:
+        * html/canvas/ANGLEInstancedArrays.cpp:
+        * html/canvas/ANGLEInstancedArrays.h:
+        * html/canvas/CanvasRenderingContext2D.h:
+        * html/canvas/EXTTextureFilterAnisotropic.cpp:
+        * html/canvas/EXTTextureFilterAnisotropic.h:
+        * html/canvas/OESElementIndexUint.cpp:
+        * html/canvas/OESElementIndexUint.h:
+        * html/canvas/OESStandardDerivatives.cpp:
+        * html/canvas/OESStandardDerivatives.h:
+        * html/canvas/OESTextureFloat.cpp:
+        * html/canvas/OESTextureFloat.h:
+        * html/canvas/OESTextureFloatLinear.cpp:
+        * html/canvas/OESTextureFloatLinear.h:
+        * html/canvas/OESTextureHalfFloat.cpp:
+        * html/canvas/OESTextureHalfFloat.h:
+        * html/canvas/OESTextureHalfFloatLinear.cpp:
+        * html/canvas/OESTextureHalfFloatLinear.h:
+        * html/canvas/OESVertexArrayObject.cpp:
+        * html/canvas/OESVertexArrayObject.h:
+        * html/canvas/WebGLCompressedTextureATC.cpp:
+        * html/canvas/WebGLCompressedTextureATC.h:
+        * html/canvas/WebGLCompressedTexturePVRTC.cpp:
+        * html/canvas/WebGLCompressedTexturePVRTC.h:
+        * html/canvas/WebGLCompressedTextureS3TC.cpp:
+        * html/canvas/WebGLCompressedTextureS3TC.h:
+        * html/canvas/WebGLDebugRendererInfo.cpp:
+        * html/canvas/WebGLDebugRendererInfo.h:
+        * html/canvas/WebGLDebugShaders.cpp:
+        * html/canvas/WebGLDebugShaders.h:
+        * html/canvas/WebGLDepthTexture.cpp:
+        * html/canvas/WebGLDepthTexture.h:
+        * html/canvas/WebGLDrawBuffers.cpp:
+        * html/canvas/WebGLDrawBuffers.h:
+        * html/canvas/WebGLLoseContext.cpp:
+        * html/canvas/WebGLLoseContext.h:
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::create):
+        (WebCore::WebGLRenderingContext::getExtension):
+        * html/canvas/WebGLRenderingContext.h:
+
+2014-03-06  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
+
</ins><span class="cx">         Move Source/WebCore/editing/ code to std::unique_ptr
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=129665
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLCanvasElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLCanvasElement.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLCanvasElement.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx">     for (auto it = m_observers.begin(), end = m_observers.end(); it != end; ++it)
</span><span class="cx">         (*it)-&gt;canvasDestroyed(*this);
</span><span class="cx"> 
</span><del>-    m_context.clear(); // Ensure this goes away before the ImageBuffer.
</del><ins>+    m_context = nullptr; // Ensure this goes away before the ImageBuffer.
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLCanvasElement::parseAttribute(const QualifiedName&amp; name, const AtomicString&amp; value)
</span><span class="lines">@@ -205,7 +205,7 @@
</span><span class="cx">             if (Settings* settings = document().settings())
</span><span class="cx">                 usesDashbardCompatibilityMode = settings-&gt;usesDashboardBackwardCompatibilityMode();
</span><span class="cx"> #endif
</span><del>-            m_context = CanvasRenderingContext2D::create(this, document().inQuirksMode(), usesDashbardCompatibilityMode);
</del><ins>+            m_context = std::make_unique&lt;CanvasRenderingContext2D&gt;(this, document().inQuirksMode(), usesDashbardCompatibilityMode);
</ins><span class="cx"> #if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS)
</span><span class="cx">             // Need to make sure a RenderLayer and compositing layer get created for the Canvas
</span><span class="cx">             setNeedsStyleRecalc(SyntheticStyleChange);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLCanvasElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLCanvasElement.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLCanvasElement.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -31,6 +31,7 @@
</span><span class="cx"> #include &quot;FloatRect.h&quot;
</span><span class="cx"> #include &quot;HTMLElement.h&quot;
</span><span class="cx"> #include &quot;IntSize.h&quot;
</span><ins>+#include &lt;memory&gt;
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if USE(CG)
</span><span class="lines">@@ -171,7 +172,7 @@
</span><span class="cx"> 
</span><span class="cx">     IntSize m_size;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;CanvasRenderingContext&gt; m_context;
</del><ins>+    std::unique_ptr&lt;CanvasRenderingContext&gt; m_context;
</ins><span class="cx"> 
</span><span class="cx">     bool m_rendererIsCanvas;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasANGLEInstancedArrayscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -48,11 +48,6 @@
</span><span class="cx">     return ANGLEInstancedArraysName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;ANGLEInstancedArrays&gt; ANGLEInstancedArrays::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new ANGLEInstancedArrays(context));
-}
-
</del><span class="cx"> bool ANGLEInstancedArrays::supported(WebGLRenderingContext* context)
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS) || PLATFORM(MAC) &amp;&amp; __MAC_OS_X_VERSION_MIN_REQUIRED &gt;= 1090
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasANGLEInstancedArraysh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define ANGLEInstancedArrays_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -35,8 +34,9 @@
</span><span class="cx"> 
</span><span class="cx"> class ANGLEInstancedArrays : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;ANGLEInstancedArrays&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit ANGLEInstancedArrays(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~ANGLEInstancedArrays();
</span><ins>+
</ins><span class="cx">     virtual ExtensionName getName() const;
</span><span class="cx"> 
</span><span class="cx">     static bool supported(WebGLRenderingContext*);
</span><span class="lines">@@ -44,9 +44,6 @@
</span><span class="cx">     void drawArraysInstancedANGLE(GC3Denum mode, GC3Dint first, GC3Dsizei count, GC3Dsizei primcount);
</span><span class="cx">     void drawElementsInstancedANGLE(GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset, GC3Dsizei primcount);
</span><span class="cx">     void vertexAttribDivisorANGLE(GC3Duint index, GC3Duint divisor);
</span><del>-
-private:
-    ANGLEInstancedArrays(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -58,10 +58,7 @@
</span><span class="cx"> 
</span><span class="cx"> class CanvasRenderingContext2D : public CanvasRenderingContext, public CanvasPathMethods {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;CanvasRenderingContext2D&gt; create(HTMLCanvasElement* canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
-    {
-        return adoptPtr(new CanvasRenderingContext2D(canvas, usesCSSCompatibilityParseMode, usesDashboardCompatibilityMode));
-    }
</del><ins>+    CanvasRenderingContext2D(HTMLCanvasElement*, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode);
</ins><span class="cx">     virtual ~CanvasRenderingContext2D();
</span><span class="cx"> 
</span><span class="cx">     const CanvasStyle&amp; strokeStyle() const { return state().m_strokeStyle; }
</span><span class="lines">@@ -269,8 +266,6 @@
</span><span class="cx">         CanvasDidDrawApplyAll = 0xffffffff
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    CanvasRenderingContext2D(HTMLCanvasElement*, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode);
-
</del><span class="cx">     State&amp; modifiableState() { ASSERT(!m_unrealizedSaveCount); return m_stateStack.last(); }
</span><span class="cx">     const State&amp; state() const { return m_stateStack.last(); }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasEXTTextureFilterAnisotropiccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -45,11 +45,6 @@
</span><span class="cx">     return EXTTextureFilterAnisotropicName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;EXTTextureFilterAnisotropic&gt; EXTTextureFilterAnisotropic::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new EXTTextureFilterAnisotropic(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasEXTTextureFilterAnisotropich"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define EXTTextureFilterAnisotropic_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class EXTTextureFilterAnisotropic : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;EXTTextureFilterAnisotropic&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit EXTTextureFilterAnisotropic(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~EXTTextureFilterAnisotropic();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    EXTTextureFilterAnisotropic(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESElementIndexUintcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESElementIndexUint.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESElementIndexUint.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESElementIndexUint.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -45,11 +45,6 @@
</span><span class="cx">     return OESElementIndexUintName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESElementIndexUint&gt; OESElementIndexUint::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESElementIndexUint(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESElementIndexUinth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESElementIndexUint.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESElementIndexUint.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESElementIndexUint.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESElementIndexUint_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESElementIndexUint : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESElementIndexUint&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit OESElementIndexUint(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESElementIndexUint();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESElementIndexUint(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESStandardDerivativescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESStandardDerivatives.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESStandardDerivatives.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESStandardDerivatives.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -45,11 +45,6 @@
</span><span class="cx">     return OESStandardDerivativesName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESStandardDerivatives&gt; OESStandardDerivatives::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESStandardDerivatives(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESStandardDerivativesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESStandardDerivatives.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESStandardDerivatives.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESStandardDerivatives.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESStandardDerivatives_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESStandardDerivatives : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESStandardDerivatives&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit OESStandardDerivatives(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESStandardDerivatives();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESStandardDerivatives(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureFloatcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureFloat.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureFloat.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureFloat.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -45,11 +45,6 @@
</span><span class="cx">     return OESTextureFloatName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESTextureFloat&gt; OESTextureFloat::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESTextureFloat(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureFloath"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureFloat.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureFloat.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureFloat.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESTextureFloat_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESTextureFloat : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESTextureFloat&gt; create(WebGLRenderingContext*);
-
</del><ins>+    OESTextureFloat(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESTextureFloat();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESTextureFloat(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureFloatLinearcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -44,11 +44,6 @@
</span><span class="cx">     return OESTextureFloatLinearName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESTextureFloatLinear&gt; OESTextureFloatLinear::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESTextureFloatLinear(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureFloatLinearh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureFloatLinear.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESTextureFloatLinear_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESTextureFloatLinear : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESTextureFloatLinear&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit OESTextureFloatLinear(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESTextureFloatLinear();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESTextureFloatLinear(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureHalfFloatcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -45,11 +45,6 @@
</span><span class="cx">     return OESTextureHalfFloatName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESTextureHalfFloat&gt; OESTextureHalfFloat::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESTextureHalfFloat(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureHalfFloath"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureHalfFloat.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESTextureHalfFloat_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESTextureHalfFloat : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESTextureHalfFloat&gt; create(WebGLRenderingContext*);
-
</del><ins>+    OESTextureHalfFloat(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESTextureHalfFloat();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESTextureHalfFloat(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureHalfFloatLinearcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -44,11 +44,6 @@
</span><span class="cx">     return OESTextureHalfFloatLinearName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESTextureHalfFloatLinear&gt; OESTextureHalfFloatLinear::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESTextureHalfFloatLinear(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESTextureHalfFloatLinearh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESTextureHalfFloatLinear.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,19 +27,15 @@
</span><span class="cx"> #define OESTextureHalfFloatLinear_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class OESTextureHalfFloatLinear : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESTextureHalfFloatLinear&gt; create(WebGLRenderingContext*);
-
</del><ins>+    OESTextureHalfFloatLinear(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESTextureHalfFloatLinear();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    OESTextureHalfFloatLinear(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESVertexArrayObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESVertexArrayObject.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESVertexArrayObject.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESVertexArrayObject.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -47,11 +47,6 @@
</span><span class="cx">     return OESVertexArrayObjectName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;OESVertexArrayObject&gt; OESVertexArrayObject::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new OESVertexArrayObject(context));
-}
-
</del><span class="cx"> PassRefPtr&lt;WebGLVertexArrayObjectOES&gt; OESVertexArrayObject::createVertexArrayOES()
</span><span class="cx"> {
</span><span class="cx">     if (m_context-&gt;isContextLost())
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasOESVertexArrayObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/OESVertexArrayObject.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/OESVertexArrayObject.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/OESVertexArrayObject.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;GraphicsTypes3D.h&quot;
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -39,18 +38,15 @@
</span><span class="cx"> 
</span><span class="cx"> class OESVertexArrayObject : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;OESVertexArrayObject&gt; create(WebGLRenderingContext*);
-
</del><ins>+    OESVertexArrayObject(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~OESVertexArrayObject();
</span><ins>+
</ins><span class="cx">     virtual ExtensionName getName() const override;
</span><span class="cx">     
</span><span class="cx">     PassRefPtr&lt;WebGLVertexArrayObjectOES&gt; createVertexArrayOES();
</span><span class="cx">     void deleteVertexArrayOES(WebGLVertexArrayObjectOES*);
</span><span class="cx">     GC3Dboolean isVertexArrayOES(WebGLVertexArrayObjectOES*);
</span><span class="cx">     void bindVertexArrayOES(WebGLVertexArrayObjectOES*, ExceptionCode&amp;);
</span><del>-
-private:
-    OESVertexArrayObject(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTextureATCcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -50,11 +50,6 @@
</span><span class="cx">     return WebGLCompressedTextureATCName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLCompressedTextureATC&gt; WebGLCompressedTextureATC::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLCompressedTextureATC(context));
-}
-
</del><span class="cx"> bool WebGLCompressedTextureATC::supported(WebGLRenderingContext* context)
</span><span class="cx"> {
</span><span class="cx">     Extensions3D* extensions = context-&gt;graphicsContext3D()-&gt;getExtensions();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTextureATCh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTextureATC.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebGLCompressedTextureATC_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -35,15 +34,12 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLCompressedTextureATC : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLCompressedTextureATC&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit WebGLCompressedTextureATC(WebGLRenderingContext*);
+    virtual ~WebGLCompressedTextureATC();
</ins><span class="cx"> 
</span><span class="cx">     static bool supported(WebGLRenderingContext*);
</span><span class="cx"> 
</span><del>-    virtual ~WebGLCompressedTextureATC();
</del><span class="cx">     virtual ExtensionName getName() const override;
</span><del>-
-private:
-    WebGLCompressedTextureATC(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTexturePVRTCcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -52,11 +52,6 @@
</span><span class="cx">     return WebGLCompressedTexturePVRTCName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLCompressedTexturePVRTC&gt; WebGLCompressedTexturePVRTC::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLCompressedTexturePVRTC(context));
-}
-
</del><span class="cx"> bool WebGLCompressedTexturePVRTC::supported(WebGLRenderingContext* context)
</span><span class="cx"> {
</span><span class="cx">     Extensions3D* extensions = context-&gt;graphicsContext3D()-&gt;getExtensions();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTexturePVRTCh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,21 +27,16 @@
</span><span class="cx"> #define WebGLCompressedTexturePVRTC_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class WebGLCompressedTexturePVRTC : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLCompressedTexturePVRTC&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit WebGLCompressedTexturePVRTC(WebGLRenderingContext*);
+    virtual ~WebGLCompressedTexturePVRTC();
</ins><span class="cx"> 
</span><span class="cx">     static bool supported(WebGLRenderingContext*);
</span><del>-
-    virtual ~WebGLCompressedTexturePVRTC();
</del><span class="cx">     virtual ExtensionName getName() const override;
</span><del>-
-private:
-    WebGLCompressedTexturePVRTC(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTextureS3TCcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -52,11 +52,6 @@
</span><span class="cx">     return WebGLCompressedTextureS3TCName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLCompressedTextureS3TC&gt; WebGLCompressedTextureS3TC::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLCompressedTextureS3TC(context));
-}
-
</del><span class="cx"> bool WebGLCompressedTextureS3TC::supported(WebGLRenderingContext* context)
</span><span class="cx"> {
</span><span class="cx">     Extensions3D* extensions = context-&gt;graphicsContext3D()-&gt;getExtensions();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLCompressedTextureS3TCh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebGLCompressedTextureS3TC_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -35,15 +34,12 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLCompressedTextureS3TC : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLCompressedTextureS3TC&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit WebGLCompressedTextureS3TC(WebGLRenderingContext*);
+    virtual ~WebGLCompressedTextureS3TC();
</ins><span class="cx"> 
</span><span class="cx">     static bool supported(WebGLRenderingContext*);
</span><span class="cx"> 
</span><del>-    virtual ~WebGLCompressedTextureS3TC();
</del><span class="cx">     virtual ExtensionName getName() const override;
</span><del>-
-private:
-    WebGLCompressedTextureS3TC(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDebugRendererInfocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -47,11 +47,6 @@
</span><span class="cx">     return WebGLDebugRendererInfoName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLDebugRendererInfo&gt; WebGLDebugRendererInfo::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLDebugRendererInfo(context));
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(WEBGL)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDebugRendererInfoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDebugRendererInfo.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebGLDebugRendererInfo_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -38,13 +37,10 @@
</span><span class="cx">         UNMASKED_RENDERER_WEBGL = 0x9246
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static OwnPtr&lt;WebGLDebugRendererInfo&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit WebGLDebugRendererInfo(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~WebGLDebugRendererInfo();
</span><del>-    virtual ExtensionName getName() const override;
</del><span class="cx"> 
</span><del>-private:
-    WebGLDebugRendererInfo(WebGLRenderingContext*);
</del><ins>+    virtual ExtensionName getName() const override;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDebugShaderscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDebugShaders.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDebugShaders.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDebugShaders.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -49,11 +49,6 @@
</span><span class="cx">     return WebGLDebugShadersName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLDebugShaders&gt; WebGLDebugShaders::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLDebugShaders(context));
-}
-
</del><span class="cx"> String WebGLDebugShaders::getTranslatedShaderSource(WebGLShader* shader, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(ec);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDebugShadersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDebugShaders.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDebugShaders.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDebugShaders.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebGLDebugShaders_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -37,15 +36,12 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLDebugShaders : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLDebugShaders&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit WebGLDebugShaders(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~WebGLDebugShaders();
</span><ins>+
</ins><span class="cx">     virtual ExtensionName getName() const override;
</span><span class="cx"> 
</span><span class="cx">     String getTranslatedShaderSource(WebGLShader*, ExceptionCode&amp;);
</span><del>-
-private:
-    WebGLDebugShaders(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDepthTexturecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDepthTexture.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDepthTexture.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDepthTexture.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -47,11 +47,6 @@
</span><span class="cx">     return WebGLDepthTextureName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLDepthTexture&gt; WebGLDepthTexture::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLDepthTexture(context));
-}
-
</del><span class="cx"> bool WebGLDepthTexture::supported(GraphicsContext3D* context)
</span><span class="cx"> {
</span><span class="cx">     Extensions3D* extensions = context-&gt;getExtensions();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDepthTextureh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDepthTexture.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDepthTexture.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDepthTexture.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,21 +27,17 @@
</span><span class="cx"> #define WebGLDepthTexture_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class WebGLDepthTexture : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLDepthTexture&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit WebGLDepthTexture(WebGLRenderingContext*);
+    virtual ~WebGLDepthTexture();
</ins><span class="cx"> 
</span><span class="cx">     static bool supported(GraphicsContext3D*);
</span><span class="cx"> 
</span><del>-    virtual ~WebGLDepthTexture();
</del><span class="cx">     virtual ExtensionName getName() const override;
</span><del>-
-private:
-    WebGLDepthTexture(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDrawBufferscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -46,11 +46,6 @@
</span><span class="cx">     return WebGLExtension::WebGLDrawBuffersName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLDrawBuffers&gt; WebGLDrawBuffers::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLDrawBuffers(context));
-}
-
</del><span class="cx"> // static
</span><span class="cx"> bool WebGLDrawBuffers::supported(WebGLRenderingContext* context)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLDrawBuffersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLDrawBuffers.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,24 +27,21 @@
</span><span class="cx"> #define WebGLDrawBuffers_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class WebGLDrawBuffers : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLDrawBuffers&gt; create(WebGLRenderingContext*);
</del><ins>+    explicit WebGLDrawBuffers(WebGLRenderingContext*);
+    virtual ~WebGLDrawBuffers();
</ins><span class="cx"> 
</span><span class="cx">     static bool supported(WebGLRenderingContext*);
</span><span class="cx"> 
</span><del>-    virtual ~WebGLDrawBuffers();
</del><span class="cx">     virtual ExtensionName getName() const override;
</span><span class="cx"> 
</span><span class="cx">     void drawBuffersWEBGL(const Vector&lt;GC3Denum&gt;&amp; buffers);
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    WebGLDrawBuffers(WebGLRenderingContext*);
-
</del><span class="cx">     static bool satisfiesWebGLRequirements(WebGLRenderingContext*);
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLLoseContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLLoseContext.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLLoseContext.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLLoseContext.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -47,11 +47,6 @@
</span><span class="cx">     return WebGLLoseContextName;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLLoseContext&gt; WebGLLoseContext::create(WebGLRenderingContext* context)
-{
-    return adoptPtr(new WebGLLoseContext(context));
-}
-
</del><span class="cx"> void WebGLLoseContext::loseContext()
</span><span class="cx"> {
</span><span class="cx">     m_context-&gt;forceLostContext(WebGLRenderingContext::SyntheticLostContext);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLLoseContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLLoseContext.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLLoseContext.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLLoseContext.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> #define WebGLLoseContext_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;WebGLExtension.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -35,16 +34,13 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLLoseContext : public WebGLExtension {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLLoseContext&gt; create(WebGLRenderingContext*);
-
</del><ins>+    explicit WebGLLoseContext(WebGLRenderingContext*);
</ins><span class="cx">     virtual ~WebGLLoseContext();
</span><ins>+
</ins><span class="cx">     virtual ExtensionName getName() const override;
</span><span class="cx"> 
</span><span class="cx">     void loseContext();
</span><span class="cx">     void restoreContext();
</span><del>-
-private:
-    WebGLLoseContext(WebGLRenderingContext*);
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -387,7 +387,7 @@
</span><span class="cx">     WebGLRenderingContext* m_context;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-OwnPtr&lt;WebGLRenderingContext&gt; WebGLRenderingContext::create(HTMLCanvasElement* canvas, WebGLContextAttributes* attrs)
</del><ins>+std::unique_ptr&lt;WebGLRenderingContext&gt; WebGLRenderingContext::create(HTMLCanvasElement* canvas, WebGLContextAttributes* attrs)
</ins><span class="cx"> {
</span><span class="cx">     Document&amp; document = canvas-&gt;document();
</span><span class="cx">     Frame* frame = document.frame();
</span><span class="lines">@@ -437,9 +437,9 @@
</span><span class="cx"> 
</span><span class="cx">     if (isPendingPolicyResolution) {
</span><span class="cx">         LOG(WebGL, &quot;Create a WebGL context that looks real, but will require a policy resolution if used.&quot;);
</span><del>-        OwnPtr&lt;WebGLRenderingContext&gt; renderingContext = adoptPtr(new WebGLRenderingContext(canvas, attributes));
</del><ins>+        std::unique_ptr&lt;WebGLRenderingContext&gt; renderingContext(new WebGLRenderingContext(canvas, attributes));
</ins><span class="cx">         renderingContext-&gt;suspendIfNeeded();
</span><del>-        return renderingContext.release();
</del><ins>+        return std::move(renderingContext);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     HostWindow* hostWindow = document.view()-&gt;root()-&gt;hostWindow();
</span><span class="lines">@@ -454,10 +454,10 @@
</span><span class="cx">     if (extensions-&gt;supports(&quot;GL_EXT_debug_marker&quot;))
</span><span class="cx">         extensions-&gt;pushGroupMarkerEXT(&quot;WebGLRenderingContext&quot;);
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;WebGLRenderingContext&gt; renderingContext = adoptPtr(new WebGLRenderingContext(canvas, context, attributes));
</del><ins>+    std::unique_ptr&lt;WebGLRenderingContext&gt; renderingContext(new WebGLRenderingContext(canvas, context, attributes));
</ins><span class="cx">     renderingContext-&gt;suspendIfNeeded();
</span><span class="cx"> 
</span><del>-    return renderingContext.release();
</del><ins>+    return std::move(renderingContext);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WebGLRenderingContext::WebGLRenderingContext(HTMLCanvasElement* passedCanvas, GraphicsContext3D::Attributes attributes)
</span><span class="lines">@@ -2400,7 +2400,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_EXT_texture_filter_anisotropic&quot;)) {
</span><span class="cx">         if (!m_extTextureFilterAnisotropic) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_EXT_texture_filter_anisotropic&quot;);
</span><del>-            m_extTextureFilterAnisotropic = EXTTextureFilterAnisotropic::create(this);
</del><ins>+            m_extTextureFilterAnisotropic = std::make_unique&lt;EXTTextureFilterAnisotropic&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_extTextureFilterAnisotropic.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2408,7 +2408,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_standard_derivatives&quot;)) {
</span><span class="cx">         if (!m_oesStandardDerivatives) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_standard_derivatives&quot;);
</span><del>-            m_oesStandardDerivatives = OESStandardDerivatives::create(this);
</del><ins>+            m_oesStandardDerivatives = std::make_unique&lt;OESStandardDerivatives&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesStandardDerivatives.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2416,7 +2416,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_texture_float&quot;)) {
</span><span class="cx">         if (!m_oesTextureFloat) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_texture_float&quot;);
</span><del>-            m_oesTextureFloat = OESTextureFloat::create(this);
</del><ins>+            m_oesTextureFloat = std::make_unique&lt;OESTextureFloat&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesTextureFloat.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2424,7 +2424,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_texture_float_linear&quot;)) {
</span><span class="cx">         if (!m_oesTextureFloatLinear) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_texture_float_linear&quot;);
</span><del>-            m_oesTextureFloatLinear = OESTextureFloatLinear::create(this);
</del><ins>+            m_oesTextureFloatLinear = std::make_unique&lt;OESTextureFloatLinear&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesTextureFloatLinear.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2432,7 +2432,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_texture_half_float&quot;)) {
</span><span class="cx">         if (!m_oesTextureHalfFloat) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_texture_half_float&quot;);
</span><del>-            m_oesTextureHalfFloat = OESTextureHalfFloat::create(this);
</del><ins>+            m_oesTextureHalfFloat = std::make_unique&lt;OESTextureHalfFloat&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesTextureHalfFloat.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2440,7 +2440,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_texture_half_float_linear&quot;)) {
</span><span class="cx">         if (!m_oesTextureHalfFloatLinear) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_texture_half_float_linear&quot;);
</span><del>-            m_oesTextureHalfFloatLinear = OESTextureHalfFloatLinear::create(this);
</del><ins>+            m_oesTextureHalfFloatLinear = std::make_unique&lt;OESTextureHalfFloatLinear&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesTextureHalfFloatLinear.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2448,7 +2448,7 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_vertex_array_object&quot;)) {
</span><span class="cx">         if (!m_oesVertexArrayObject) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_vertex_array_object&quot;);
</span><del>-            m_oesVertexArrayObject = OESVertexArrayObject::create(this);
</del><ins>+            m_oesVertexArrayObject = std::make_unique&lt;OESVertexArrayObject&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesVertexArrayObject.get();
</span><span class="cx">     }
</span><span class="lines">@@ -2456,64 +2456,64 @@
</span><span class="cx">         &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_OES_element_index_uint&quot;)) {
</span><span class="cx">         if (!m_oesElementIndexUint) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_OES_element_index_uint&quot;);
</span><del>-            m_oesElementIndexUint = OESElementIndexUint::create(this);
</del><ins>+            m_oesElementIndexUint = std::make_unique&lt;OESElementIndexUint&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_oesElementIndexUint.get();
</span><span class="cx">     }
</span><span class="cx">     if (equalIgnoringCase(name, &quot;WEBGL_lose_context&quot;)) {
</span><span class="cx">         if (!m_webglLoseContext)
</span><del>-            m_webglLoseContext = WebGLLoseContext::create(this);
</del><ins>+            m_webglLoseContext = std::make_unique&lt;WebGLLoseContext&gt;(this);
</ins><span class="cx">         return m_webglLoseContext.get();
</span><span class="cx">     }
</span><span class="cx">     if ((equalIgnoringCase(name, &quot;WEBKIT_WEBGL_compressed_texture_atc&quot;))
</span><span class="cx">         &amp;&amp; WebGLCompressedTextureATC::supported(this)) {
</span><span class="cx">         if (!m_webglCompressedTextureATC)
</span><del>-            m_webglCompressedTextureATC = WebGLCompressedTextureATC::create(this);
</del><ins>+            m_webglCompressedTextureATC = std::make_unique&lt;WebGLCompressedTextureATC&gt;(this);
</ins><span class="cx">         return m_webglCompressedTextureATC.get();
</span><span class="cx">     }
</span><span class="cx">     if ((equalIgnoringCase(name, &quot;WEBKIT_WEBGL_compressed_texture_pvrtc&quot;))
</span><span class="cx">         &amp;&amp; WebGLCompressedTexturePVRTC::supported(this)) {
</span><span class="cx">         if (!m_webglCompressedTexturePVRTC)
</span><del>-            m_webglCompressedTexturePVRTC = WebGLCompressedTexturePVRTC::create(this);
</del><ins>+            m_webglCompressedTexturePVRTC = std::make_unique&lt;WebGLCompressedTexturePVRTC&gt;(this);
</ins><span class="cx">     }
</span><span class="cx">     if (equalIgnoringCase(name, &quot;WEBGL_compressed_texture_s3tc&quot;)
</span><span class="cx">         &amp;&amp; WebGLCompressedTextureS3TC::supported(this)) {
</span><span class="cx">         if (!m_webglCompressedTextureS3TC)
</span><del>-            m_webglCompressedTextureS3TC = WebGLCompressedTextureS3TC::create(this);
</del><ins>+            m_webglCompressedTextureS3TC = std::make_unique&lt;WebGLCompressedTextureS3TC&gt;(this);
</ins><span class="cx">         return m_webglCompressedTextureS3TC.get();
</span><span class="cx">     }
</span><span class="cx">     if (equalIgnoringCase(name, &quot;WEBGL_depth_texture&quot;)
</span><span class="cx">         &amp;&amp; WebGLDepthTexture::supported(graphicsContext3D())) {
</span><span class="cx">         if (!m_webglDepthTexture) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_CHROMIUM_depth_texture&quot;);
</span><del>-            m_webglDepthTexture = WebGLDepthTexture::create(this);
</del><ins>+            m_webglDepthTexture = std::make_unique&lt;WebGLDepthTexture&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_webglDepthTexture.get();
</span><span class="cx">     }
</span><span class="cx">     if (equalIgnoringCase(name, &quot;WEBGL_draw_buffers&quot;) &amp;&amp; supportsDrawBuffers()) {
</span><span class="cx">         if (!m_webglDrawBuffers) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_EXT_draw_buffers&quot;);
</span><del>-            m_webglDrawBuffers = WebGLDrawBuffers::create(this);
</del><ins>+            m_webglDrawBuffers = std::make_unique&lt;WebGLDrawBuffers&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_webglDrawBuffers.get();
</span><span class="cx">     }
</span><span class="cx">     if (equalIgnoringCase(name, &quot;ANGLE_instanced_arrays&quot;) &amp;&amp; ANGLEInstancedArrays::supported(this)) {
</span><span class="cx">         if (!m_angleInstancedArrays) {
</span><span class="cx">             m_context-&gt;getExtensions()-&gt;ensureEnabled(&quot;GL_ANGLE_instanced_arrays&quot;);
</span><del>-            m_angleInstancedArrays = ANGLEInstancedArrays::create(this);
</del><ins>+            m_angleInstancedArrays = std::make_unique&lt;ANGLEInstancedArrays&gt;(this);
</ins><span class="cx">         }
</span><span class="cx">         return m_angleInstancedArrays.get();
</span><span class="cx">     }
</span><span class="cx">     if (allowPrivilegedExtensions()) {
</span><span class="cx">         if (equalIgnoringCase(name, &quot;WEBGL_debug_renderer_info&quot;)) {
</span><span class="cx">             if (!m_webglDebugRendererInfo)
</span><del>-                m_webglDebugRendererInfo = WebGLDebugRendererInfo::create(this);
</del><ins>+                m_webglDebugRendererInfo = std::make_unique&lt;WebGLDebugRendererInfo&gt;(this);
</ins><span class="cx">             return m_webglDebugRendererInfo.get();
</span><span class="cx">         }
</span><span class="cx">         if (equalIgnoringCase(name, &quot;WEBGL_debug_shaders&quot;)
</span><span class="cx">             &amp;&amp; m_context-&gt;getExtensions()-&gt;supports(&quot;GL_ANGLE_translated_shader_source&quot;)) {
</span><span class="cx">             if (!m_webglDebugShaders)
</span><del>-                m_webglDebugShaders = WebGLDebugShaders::create(this);
</del><ins>+                m_webglDebugShaders = std::make_unique&lt;WebGLDebugShaders&gt;(this);
</ins><span class="cx">             return m_webglDebugShaders.get();
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h (165178 => 165179)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h        2014-03-06 09:04:38 UTC (rev 165178)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.h        2014-03-06 09:14:58 UTC (rev 165179)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &quot;ImageBuffer.h&quot;
</span><span class="cx"> #include &quot;Timer.h&quot;
</span><span class="cx"> #include &quot;WebGLGetInfo.h&quot;
</span><del>-
</del><span class="cx"> #include &lt;memory&gt;
</span><span class="cx"> #include &lt;runtime/Float32Array.h&gt;
</span><span class="cx"> #include &lt;runtime/Int32Array.h&gt;
</span><span class="lines">@@ -84,7 +83,7 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLRenderingContext : public CanvasRenderingContext, public ActiveDOMObject {
</span><span class="cx"> public:
</span><del>-    static OwnPtr&lt;WebGLRenderingContext&gt; create(HTMLCanvasElement*, WebGLContextAttributes*);
</del><ins>+    static std::unique_ptr&lt;WebGLRenderingContext&gt; create(HTMLCanvasElement*, WebGLContextAttributes*);
</ins><span class="cx">     virtual ~WebGLRenderingContext();
</span><span class="cx"> 
</span><span class="cx">     virtual bool is3d() const override { return true; }
</span><span class="lines">@@ -533,23 +532,23 @@
</span><span class="cx">     bool isContextLostOrPending();
</span><span class="cx"> 
</span><span class="cx">     // Enabled extension objects.
</span><del>-    OwnPtr&lt;EXTTextureFilterAnisotropic&gt; m_extTextureFilterAnisotropic;
-    OwnPtr&lt;OESTextureFloat&gt; m_oesTextureFloat;
-    OwnPtr&lt;OESTextureFloatLinear&gt; m_oesTextureFloatLinear;
-    OwnPtr&lt;OESTextureHalfFloat&gt; m_oesTextureHalfFloat;
-    OwnPtr&lt;OESTextureHalfFloatLinear&gt; m_oesTextureHalfFloatLinear;
-    OwnPtr&lt;OESStandardDerivatives&gt; m_oesStandardDerivatives;
-    OwnPtr&lt;OESVertexArrayObject&gt; m_oesVertexArrayObject;
-    OwnPtr&lt;OESElementIndexUint&gt; m_oesElementIndexUint;
-    OwnPtr&lt;WebGLLoseContext&gt; m_webglLoseContext;
-    OwnPtr&lt;WebGLDebugRendererInfo&gt; m_webglDebugRendererInfo;
-    OwnPtr&lt;WebGLDebugShaders&gt; m_webglDebugShaders;
-    OwnPtr&lt;WebGLCompressedTextureATC&gt; m_webglCompressedTextureATC;
-    OwnPtr&lt;WebGLCompressedTexturePVRTC&gt; m_webglCompressedTexturePVRTC;
-    OwnPtr&lt;WebGLCompressedTextureS3TC&gt; m_webglCompressedTextureS3TC;
-    OwnPtr&lt;WebGLDepthTexture&gt; m_webglDepthTexture;
-    OwnPtr&lt;WebGLDrawBuffers&gt; m_webglDrawBuffers;
-    OwnPtr&lt;ANGLEInstancedArrays&gt; m_angleInstancedArrays;
</del><ins>+    std::unique_ptr&lt;EXTTextureFilterAnisotropic&gt; m_extTextureFilterAnisotropic;
+    std::unique_ptr&lt;OESTextureFloat&gt; m_oesTextureFloat;
+    std::unique_ptr&lt;OESTextureFloatLinear&gt; m_oesTextureFloatLinear;
+    std::unique_ptr&lt;OESTextureHalfFloat&gt; m_oesTextureHalfFloat;
+    std::unique_ptr&lt;OESTextureHalfFloatLinear&gt; m_oesTextureHalfFloatLinear;
+    std::unique_ptr&lt;OESStandardDerivatives&gt; m_oesStandardDerivatives;
+    std::unique_ptr&lt;OESVertexArrayObject&gt; m_oesVertexArrayObject;
+    std::unique_ptr&lt;OESElementIndexUint&gt; m_oesElementIndexUint;
+    std::unique_ptr&lt;WebGLLoseContext&gt; m_webglLoseContext;
+    std::unique_ptr&lt;WebGLDebugRendererInfo&gt; m_webglDebugRendererInfo;
+    std::unique_ptr&lt;WebGLDebugShaders&gt; m_webglDebugShaders;
+    std::unique_ptr&lt;WebGLCompressedTextureATC&gt; m_webglCompressedTextureATC;
+    std::unique_ptr&lt;WebGLCompressedTexturePVRTC&gt; m_webglCompressedTexturePVRTC;
+    std::unique_ptr&lt;WebGLCompressedTextureS3TC&gt; m_webglCompressedTextureS3TC;
+    std::unique_ptr&lt;WebGLDepthTexture&gt; m_webglDepthTexture;
+    std::unique_ptr&lt;WebGLDrawBuffers&gt; m_webglDrawBuffers;
+    std::unique_ptr&lt;ANGLEInstancedArrays&gt; m_angleInstancedArrays;
</ins><span class="cx"> 
</span><span class="cx">     // Helpers for getParameter and others
</span><span class="cx">     WebGLGetInfo getBooleanParameter(GC3Denum);
</span></span></pre>
</div>
</div>

</body>
</html>