diff options
Diffstat (limited to 'WebCore/html/HTMLPreElement.h')
-rw-r--r-- | WebCore/html/HTMLPreElement.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/WebCore/html/HTMLPreElement.h b/WebCore/html/HTMLPreElement.h index 17b945e..0975c0f 100644 --- a/WebCore/html/HTMLPreElement.h +++ b/WebCore/html/HTMLPreElement.h @@ -1,6 +1,7 @@ /* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@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 @@ -28,19 +29,22 @@ namespace WebCore { class HTMLPreElement : public HTMLElement { public: + static PassRefPtr<HTMLPreElement> create(const QualifiedName&, Document*); + + int width() const; + void setWidth(int); + + bool wrap() const; + void setWrap(bool); + +private: HTMLPreElement(const QualifiedName&, Document*); virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } virtual int tagPriority() const { return 5; } - bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const; - void parseMappedAttribute(Attribute*); - - int width() const; - void setWidth(int w); - - bool wrap() const; - void setWrap(bool b); + virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const; + virtual void parseMappedAttribute(Attribute*); }; } // namespace WebCore |