diff options
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 |