summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLFontElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLFontElement.h')
-rw-r--r--WebCore/html/HTMLFontElement.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/WebCore/html/HTMLFontElement.h b/WebCore/html/HTMLFontElement.h
index b3439b7..cdf7143 100644
--- a/WebCore/html/HTMLFontElement.h
+++ b/WebCore/html/HTMLFontElement.h
@@ -2,6 +2,7 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Simon Hausmann <hausmann@kde.org>
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -19,6 +20,7 @@
* Boston, MA 02110-1301, USA.
*
*/
+
#ifndef HTMLFontElement_h
#define HTMLFontElement_h
@@ -28,14 +30,8 @@ namespace WebCore {
class HTMLFontElement : public HTMLElement {
public:
- HTMLFontElement(const QualifiedName&, Document*);
+ static PassRefPtr<HTMLFontElement> create(const QualifiedName&, Document*);
- virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
- virtual int tagPriority() const { return 1; }
-
- virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
- virtual void parseMappedAttribute(Attribute*);
-
String color() const;
void setColor(const String&);
@@ -46,8 +42,17 @@ public:
void setSize(const String&);
static bool cssValueFromFontSizeNumber(const String&, int&);
+
+private:
+ HTMLFontElement(const QualifiedName&, Document*);
+
+ virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
+ virtual int tagPriority() const { return 1; }
+
+ virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
+ virtual void parseMappedAttribute(Attribute*);
};
-} //namespace
+} // namespace
#endif