diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/TextMetrics.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/html/TextMetrics.h')
-rw-r--r-- | Source/WebCore/html/TextMetrics.h | 9 |
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 |