Commit dcad4f60 authored by vestbo@webkit.org's avatar vestbo@webkit.org

2009-04-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>

        Rubber-stamped by Ariya Hidayat.

        [Qt] Rename QWebElement arguments from html to markup

git-svn-id: svn://svn.chromium.org/blink/trunk@42776 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5a5544ba
...@@ -922,13 +922,13 @@ void QWebElement::append(QWebElement element) ...@@ -922,13 +922,13 @@ void QWebElement::append(QWebElement element)
} }
/*! /*!
Appends the result of parsing \a html as the element's last child. Appends the result of parsing \a markup as the element's last child.
Calling this function on a null element does nothing. Calling this function on a null element does nothing.
\sa prepend(), insertBefore(), insertAfter() \sa prepend(), insertBefore(), insertAfter()
*/ */
void QWebElement::append(const QString &html) void QWebElement::append(const QString &markup)
{ {
if (!m_element) if (!m_element)
return; return;
...@@ -937,7 +937,7 @@ void QWebElement::append(const QString &html) ...@@ -937,7 +937,7 @@ void QWebElement::append(const QString &html)
return; return;
HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element); HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(html); RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(markup);
ExceptionCode exception = 0; ExceptionCode exception = 0;
m_element->appendChild(fragment, exception); m_element->appendChild(fragment, exception);
...@@ -964,13 +964,13 @@ void QWebElement::prepend(QWebElement element) ...@@ -964,13 +964,13 @@ void QWebElement::prepend(QWebElement element)
} }
/*! /*!
Prepends the result of parsing \a html as the element's first child. Prepends the result of parsing \a markup as the element's first child.
Calling this function on a null element does nothing. Calling this function on a null element does nothing.
\sa append(), insertBefore(), insertAfter() \sa append(), insertBefore(), insertAfter()
*/ */
void QWebElement::prepend(const QString &html) void QWebElement::prepend(const QString &markup)
{ {
if (!m_element) if (!m_element)
return; return;
...@@ -979,7 +979,7 @@ void QWebElement::prepend(const QString &html) ...@@ -979,7 +979,7 @@ void QWebElement::prepend(const QString &html)
return; return;
HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element); HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(html); RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(markup);
ExceptionCode exception = 0; ExceptionCode exception = 0;
m_element->insertBefore(fragment, m_element->firstChild(), exception); m_element->insertBefore(fragment, m_element->firstChild(), exception);
...@@ -1009,13 +1009,13 @@ void QWebElement::insertBefore(QWebElement element) ...@@ -1009,13 +1009,13 @@ void QWebElement::insertBefore(QWebElement element)
} }
/*! /*!
Inserts the result of parsing \a html before this element. Inserts the result of parsing \a markup before this element.
Calling this function on a null element does nothing. Calling this function on a null element does nothing.
\sa append(), prepend(), insertAfter() \sa append(), prepend(), insertAfter()
*/ */
void QWebElement::insertBefore(const QString &html) void QWebElement::insertBefore(const QString &markup)
{ {
if (!m_element) if (!m_element)
return; return;
...@@ -1027,7 +1027,7 @@ void QWebElement::insertBefore(const QString &html) ...@@ -1027,7 +1027,7 @@ void QWebElement::insertBefore(const QString &html)
return; return;
HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element); HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(html); RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(markup);
ExceptionCode exception = 0; ExceptionCode exception = 0;
m_element->parent()->insertBefore(fragment, m_element, exception); m_element->parent()->insertBefore(fragment, m_element, exception);
...@@ -1059,13 +1059,13 @@ void QWebElement::insertAfter(QWebElement element) ...@@ -1059,13 +1059,13 @@ void QWebElement::insertAfter(QWebElement element)
} }
/*! /*!
Inserts the result of parsing \a html after this element. Inserts the result of parsing \a markup after this element.
Calling this function on a null element does nothing. Calling this function on a null element does nothing.
\sa append(), prepend(), insertBefore() \sa append(), prepend(), insertBefore()
*/ */
void QWebElement::insertAfter(const QString &html) void QWebElement::insertAfter(const QString &markup)
{ {
if (!m_element) if (!m_element)
return; return;
...@@ -1077,7 +1077,7 @@ void QWebElement::insertAfter(const QString &html) ...@@ -1077,7 +1077,7 @@ void QWebElement::insertAfter(const QString &html)
return; return;
HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element); HTMLElement* htmlElement = static_cast<HTMLElement*>(m_element);
RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(html); RefPtr<DocumentFragment> fragment = htmlElement->createContextualFragment(markup);
ExceptionCode exception = 0; ExceptionCode exception = 0;
m_element->parent()->insertBefore(fragment, m_element->nextSibling(), exception); m_element->parent()->insertBefore(fragment, m_element->nextSibling(), exception);
......
...@@ -94,22 +94,22 @@ public: ...@@ -94,22 +94,22 @@ public:
QWebFrame *webFrame() const; QWebFrame *webFrame() const;
// TODO: Add QWebElementCollection overloads // TODO: Add QWebElementCollection overloads
void append(const QString &html); void append(const QString &markup);
void append(QWebElement element); void append(QWebElement element);
void prepend(const QString &html); void prepend(const QString &markup);
void prepend(QWebElement element); void prepend(QWebElement element);
void insertBefore(const QString &html); void insertBefore(const QString &markup);
void insertBefore(QWebElement element); void insertBefore(QWebElement element);
void insertAfter(const QString &html); void insertAfter(const QString &markup);
void insertAfter(QWebElement element); void insertAfter(QWebElement element);
void wrap(const QString &html); void wrap(const QString &markup);
void wrap(QWebElement element); void wrap(QWebElement element);
void replaceWith(const QString &html); void replaceWith(const QString &markup);
void replaceWith(QWebElement element); void replaceWith(QWebElement element);
QWebElement clone(); QWebElement clone();
......
2009-04-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Rubber-stamped by Ariya Hidayat.
[Qt] Rename QWebElement arguments from html to markup
* Api/qwebelement.cpp:
(QWebElement::append):
(QWebElement::prepend):
(QWebElement::insertBefore):
(QWebElement::insertAfter):
* Api/qwebelement.h:
2009-04-21 Antonio Gomes <antonio.gomes@openbossa.org> 2009-04-21 Antonio Gomes <antonio.gomes@openbossa.org>
Reviewed by Ariya Hidayat. Reviewed by Ariya Hidayat.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment