diff options
Diffstat (limited to 'WebCore/html/HTMLDataGridElement.cpp')
-rw-r--r-- | WebCore/html/HTMLDataGridElement.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/WebCore/html/HTMLDataGridElement.cpp b/WebCore/html/HTMLDataGridElement.cpp index bb1f4a6..5753748 100644 --- a/WebCore/html/HTMLDataGridElement.cpp +++ b/WebCore/html/HTMLDataGridElement.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Apple Inc. All rights reserved. + * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -38,13 +38,18 @@ namespace WebCore { using namespace HTMLNames; -HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& tagName, Document* document) +inline HTMLDataGridElement::HTMLDataGridElement(const QualifiedName& tagName, Document* document) : HTMLElement(tagName, document) , m_columns(DataGridColumnList::create(this)) { setDataSource(DOMDataGridDataSource::create()); } +PassRefPtr<HTMLDataGridElement> HTMLDataGridElement::create(const QualifiedName& tagName, Document* document) +{ + return new HTMLDataGridElement(tagName, document); +} + HTMLDataGridElement::~HTMLDataGridElement() { m_columns->clearDataGrid(); |