summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/TextMetrics.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/TextMetrics.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/TextMetrics.h')
-rw-r--r--Source/WebCore/html/TextMetrics.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/WebCore/html/TextMetrics.h b/Source/WebCore/html/TextMetrics.h
index b272ef664..a7ed7d8e1 100644
--- a/Source/WebCore/html/TextMetrics.h
+++ b/Source/WebCore/html/TextMetrics.h
@@ -23,17 +23,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef TextMetrics_h
-#define TextMetrics_h
+#pragma once
-#include <wtf/PassRefPtr.h>
+#include <wtf/Ref.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class TextMetrics : public RefCounted<TextMetrics> {
public:
- static PassRefPtr<TextMetrics> create() { return adoptRef(new TextMetrics); }
+ static Ref<TextMetrics> create() { return adoptRef(*new TextMetrics); }
float width() const { return m_width; }
void setWidth(float w) { m_width = w; }
@@ -47,5 +46,3 @@ private:
};
} // namespace WebCore
-
-#endif // TextMetrics_h