summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLFrameSetElement.h
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-06-03 14:33:32 +0100
committerLeon Clarke <leonclarke@google.com>2010-06-08 12:24:51 +0100
commit5af96e2c7b73ebc627c6894727826a7576d31758 (patch)
treef9d5e6f6175ccd7e3d14de9b290f08937a0d17ba /WebCore/html/HTMLFrameSetElement.h
parent8cc4fcf4f6adcbc0e0aebfc24fbad9a4cddf2cfb (diff)
downloadexternal_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.zip
external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.gz
external_webkit-5af96e2c7b73ebc627c6894727826a7576d31758.tar.bz2
Merge webkit.org at r60469 : Initial merge by git.
Change-Id: I66a0047aa2af802f66bb0c7f2a8b02247a596234
Diffstat (limited to 'WebCore/html/HTMLFrameSetElement.h')
-rw-r--r--WebCore/html/HTMLFrameSetElement.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/WebCore/html/HTMLFrameSetElement.h b/WebCore/html/HTMLFrameSetElement.h
index faf800d..accfbf8 100644
--- a/WebCore/html/HTMLFrameSetElement.h
+++ b/WebCore/html/HTMLFrameSetElement.h
@@ -2,7 +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) 2004, 2006, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2006, 2009, 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
@@ -24,29 +24,14 @@
#ifndef HTMLFrameSetElement_h
#define HTMLFrameSetElement_h
-#include "Color.h"
-#include "Document.h"
+#include <wtf/OwnArrayPtr.h>
#include "HTMLElement.h"
namespace WebCore {
class HTMLFrameSetElement : public HTMLElement {
public:
- HTMLFrameSetElement(const QualifiedName&, Document*);
- ~HTMLFrameSetElement();
-
- virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
- virtual int tagPriority() const { return 10; }
- virtual bool checkDTD(const Node* newChild);
-
- virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
- virtual void parseMappedAttribute(Attribute*);
-
- virtual void attach();
- virtual bool rendererIsNeeded(RenderStyle*);
- virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
-
- virtual void defaultEventHandler(Event*);
+ static PassRefPtr<HTMLFrameSetElement> create(const QualifiedName&, Document*);
bool hasFrameBorder() const { return frameborder; }
bool noResize() const { return noresize; }
@@ -57,16 +42,14 @@ public:
bool hasBorderColor() const { return m_borderColorSet; }
- virtual void recalcStyle(StyleChange);
-
String cols() const;
void setCols(const String&);
String rows() const;
void setRows(const String&);
- const Length* rowLengths() const { return m_rows; }
- const Length* colLengths() const { return m_cols; }
+ const Length* rowLengths() const { return m_rowLengths.get(); }
+ const Length* colLengths() const { return m_colLengths.get(); }
// Declared virtual in Element
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur);
@@ -88,8 +71,25 @@ public:
#endif
private:
- Length* m_rows;
- Length* m_cols;
+ HTMLFrameSetElement(const QualifiedName&, Document*);
+
+ virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
+ virtual int tagPriority() const { return 10; }
+ virtual bool checkDTD(const Node* newChild);
+
+ virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
+ virtual void parseMappedAttribute(Attribute*);
+
+ virtual void attach();
+ virtual bool rendererIsNeeded(RenderStyle*);
+ virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
+
+ virtual void defaultEventHandler(Event*);
+
+ virtual void recalcStyle(StyleChange);
+
+ OwnArrayPtr<Length> m_rowLengths;
+ OwnArrayPtr<Length> m_colLengths;
int m_totalRows;
int m_totalCols;