diff options
Diffstat (limited to 'WebCore/wml/WMLTableElement.cpp')
-rw-r--r-- | WebCore/wml/WMLTableElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/wml/WMLTableElement.cpp b/WebCore/wml/WMLTableElement.cpp index 92c7580..b589fe8 100644 --- a/WebCore/wml/WMLTableElement.cpp +++ b/WebCore/wml/WMLTableElement.cpp @@ -176,7 +176,7 @@ void WMLTableElement::joinSuperflousColumns(Vector<WMLElement*>& columnElements, ASSERT(lastColumn); // Merge superflous columns into a single one - RefPtr<WMLElement> newCell = new WMLElement(tdTag, document()); + RefPtr<WMLElement> newCell = WMLElement::create(tdTag, document()); transferAllChildrenOfElementToTargetElement(lastColumn, newCell.get(), 0); ExceptionCode ec = 0; @@ -213,7 +213,7 @@ void WMLTableElement::padWithEmptyColumns(Vector<WMLElement*>& columnElements, W ExceptionCode ec = 0; for (unsigned i = columnElements.size(); i < m_columns; ++i) { - RefPtr<WMLElement> newCell = new WMLElement(tdTag, document()); + RefPtr<WMLElement> newCell = WMLElement::create(tdTag, document()); rowElement->appendChild(newCell.release(), ec); ASSERT(ec == 0); } |