summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLFontElement.cpp
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/HTMLFontElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLFontElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLFontElement.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/WebCore/html/HTMLFontElement.cpp b/Source/WebCore/html/HTMLFontElement.cpp
index 7d27ffd07..aab4d9461 100644
--- a/Source/WebCore/html/HTMLFontElement.cpp
+++ b/Source/WebCore/html/HTMLFontElement.cpp
@@ -23,7 +23,6 @@
#include "config.h"
#include "HTMLFontElement.h"
-#include "Attribute.h"
#include "CSSPropertyNames.h"
#include "CSSStyleSheet.h"
#include "CSSValueKeywords.h"
@@ -46,9 +45,9 @@ HTMLFontElement::HTMLFontElement(const QualifiedName& tagName, Document& documen
ASSERT(hasTagName(fontTag));
}
-PassRefPtr<HTMLFontElement> HTMLFontElement::create(const QualifiedName& tagName, Document& document)
+Ref<HTMLFontElement> HTMLFontElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new HTMLFontElement(tagName, document));
+ return adoptRef(*new HTMLFontElement(tagName, document));
}
// http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#fonts-and-colors
@@ -195,8 +194,8 @@ void HTMLFontElement::collectStyleForPresentationAttribute(const QualifiedName&
} else if (name == colorAttr)
addHTMLColorToStyle(style, CSSPropertyColor, value);
else if (name == faceAttr) {
- if (RefPtr<CSSValueList> fontFaceValue = cssValuePool().createFontFaceValue(value))
- style.setProperty(CSSProperty(CSSPropertyFontFamily, fontFaceValue.release()));
+ if (auto fontFaceValue = CSSValuePool::singleton().createFontFaceValue(value))
+ style.setProperty(CSSProperty(CSSPropertyFontFamily, WTFMove(fontFaceValue)));
} else
HTMLElement::collectStyleForPresentationAttribute(name, value, style);
}