summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLActiveInfo.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/canvas/WebGLActiveInfo.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLActiveInfo.h')
-rw-r--r--Source/WebCore/html/canvas/WebGLActiveInfo.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/html/canvas/WebGLActiveInfo.h b/Source/WebCore/html/canvas/WebGLActiveInfo.h
index 0938a2366..843cb73a2 100644
--- a/Source/WebCore/html/canvas/WebGLActiveInfo.h
+++ b/Source/WebCore/html/canvas/WebGLActiveInfo.h
@@ -23,11 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGLActiveInfo_h
-#define WebGLActiveInfo_h
+#pragma once
#include "GraphicsContext3D.h"
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/text/WTFString.h>
@@ -35,9 +33,9 @@ namespace WebCore {
class WebGLActiveInfo : public RefCounted<WebGLActiveInfo> {
public:
- static PassRefPtr<WebGLActiveInfo> create(const String& name, GC3Denum type, GC3Dint size)
+ static Ref<WebGLActiveInfo> create(const String& name, GC3Denum type, GC3Dint size)
{
- return adoptRef(new WebGLActiveInfo(name, type, size));
+ return adoptRef(*new WebGLActiveInfo(name, type, size));
}
String name() const { return m_name; }
GC3Denum type() const { return m_type; }
@@ -58,6 +56,4 @@ private:
GC3Dint m_size;
};
-}
-
-#endif // WebGLActiveInfo_h
+} // namespace WebCore