void HTMLViewSourceDocument::createContainingTable()
{
- RefPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(*this);
parserAppendChild(html);
- RefPtr<HTMLHeadElement> head = HTMLHeadElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLHeadElement> head = HTMLHeadElement::create(*this);
html->parserAppendChild(head);
- RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLBodyElement> body = HTMLBodyElement::create(*this);
html->parserAppendChild(body);
// Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
// document.
- RefPtr<HTMLDivElement> div = HTMLDivElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLDivElement> div = HTMLDivElement::create(*this);
div->setAttribute(classAttr, "webkit-line-gutter-backdrop");
body->parserAppendChild(div);
- RefPtr<HTMLTableElement> table = HTMLTableElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLTableElement> table = HTMLTableElement::create(*this);
body->parserAppendChild(table);
m_tbody = HTMLTableSectionElement::create(tbodyTag, *this);
table->parserAppendChild(m_tbody);
return m_current;
}
- RefPtr<HTMLSpanElement> span = HTMLSpanElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLSpanElement> span = HTMLSpanElement::create(*this);
span->setAttribute(classAttr, className);
m_current->parserAppendChild(span);
return span.release();
void HTMLViewSourceDocument::addLine(const AtomicString& className)
{
// Create a table row.
- RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(*this);
m_tbody->parserAppendChild(trow);
// Create a cell that will hold the line number (it is generated in the stylesheet using counters).
- RefPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, *this);
+ RefPtrWillBeRawPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, *this);
td->setAttribute(classAttr, "webkit-line-number");
td->setIntegralAttribute(valueAttr, ++m_lineNumber);
trow->parserAppendChild(td);
void HTMLViewSourceDocument::finishLine()
{
if (!m_current->hasChildren()) {
- RefPtr<HTMLBRElement> br = HTMLBRElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLBRElement> br = HTMLBRElement::create(*this);
m_current->parserAppendChild(br);
}
m_current = m_tbody;
PassRefPtr<Element> HTMLViewSourceDocument::addBase(const AtomicString& href)
{
- RefPtr<HTMLBaseElement> base = HTMLBaseElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLBaseElement> base = HTMLBaseElement::create(*this);
base->setAttribute(hrefAttr, href);
m_current->parserAppendChild(base);
return base.release();
addLine("webkit-html-tag");
// Now create a link for the attribute value instead of a span.
- RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(*this);
+ RefPtrWillBeRawPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(*this);
const char* classValue;
if (isAnchor)
classValue = "webkit-html-attribute-value webkit-html-external-link";
return anchor.release();
}
+void HTMLViewSourceDocument::trace(Visitor* visitor)
+{
+ visitor->trace(m_current);
+ visitor->trace(m_tbody);
+ visitor->trace(m_td);
+ HTMLDocument::trace(visitor);
+}
+
}