summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLActiveInfo.h
diff options
context:
space:
mode:
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