36 #if defined(WTF_USE_V8) && WTF_USE_V8
39 class QtWebElementRuntime;
45 class QtWebElementRuntime;
56 class QWebElementPrivate;
73 void setPlainText(
const QString& text);
76 void setOuterXml(
const QString& markup);
79 void setInnerXml(
const QString& markup);
86 bool hasAttribute(
const QString& name)
const;
87 bool hasAttributeNS(
const QString& namespaceUri,
const QString& name)
const;
88 void removeAttribute(
const QString& name);
89 void removeAttributeNS(
const QString& namespaceUri,
const QString& name);
90 bool hasAttributes()
const;
94 bool hasClass(
const QString& name)
const;
95 void addClass(
const QString& name);
96 void removeClass(
const QString& name);
97 void toggleClass(
const QString& name);
99 bool hasFocus()
const;
102 QRect geometry()
const;
119 void appendInside(
const QString& markup);
123 void prependInside(
const QString& markup);
127 void appendOutside(
const QString& markup);
131 void prependOutside(
const QString& markup);
135 void encloseContentsWith(
const QWebElement& element);
136 void encloseContentsWith(
const QString& markup);
137 void encloseWith(
const QString& markup);
140 void replace(
const QString& markup);
145 void removeFromDocument();
146 void removeAllChildren();
155 QString styleProperty(
const QString& name, StyleResolveStrategy strategy)
const;
165 static QWebElement enclosingElement(WebCore::Node*);
167 friend class DumpRenderTreeSupportQt;
171 friend class QWebHitTestResultPrivate;
174 #if defined(WTF_USE_V8) && WTF_USE_V8
175 friend class V8::Bindings::QtWebElementRuntime;
177 friend class JSC::Bindings::QtWebElementRuntime;
180 QWebElementPrivate* d;
181 WebCore::Element* m_element;
184 class QWebElementCollectionPrivate;
198 append(other);
return *
this;
283 #endif // QWEBELEMENT_H
const_iterator & operator--()
const_iterator operator--(int)
bool operator==(const iterator &o) const
int operator-(iterator j) const
QWebElement first() const
iterator(const QWebElementCollection *collection, int index)
iterator & operator-=(int j)
int operator-(const_iterator j) const
const_iterator constEnd() const
iterator operator-(int j) const
bool operator>(const const_iterator &o) const
iterator operator+(int j) const
QWebElement operator*() const
bool operator<=(const iterator &o) const
const_iterator(const const_iterator &o)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
iterator(const iterator &o)
#define QT_BEGIN_NAMESPACE
bool operator!=(const iterator &o) const
const_iterator end() const
const QByteArray operator+(const QByteArray &a1, const QByteArray &a2)
GLuint GLuint GLsizei count
const_iterator operator+(int j) const
const_iterator & operator+=(int j)
bool operator!=(const QByteArray &a1, const QByteArray &a2)
bool operator==(const const_iterator &o) const
const_iterator constBegin() const
iterator & operator+=(int j)
GLsizei const GLfloat * value
const_iterator operator++(int)
GLuint const GLchar * name
const_iterator begin() const
bool operator<(const iterator &o) const
GLXFBConfig int attribute
const QWebElement operator*() const
bool operator<(const const_iterator &o) const
bool operator>(const iterator &o) const
bool operator!=(const const_iterator &o) const
bool operator<=(const const_iterator &o) const
QWebElementCollection & operator+=(const QWebElementCollection &other)
bool operator>=(const iterator &o) const
bool operator>=(const const_iterator &o) const
const_iterator(const QWebElementCollection *collection, int index)
QWebElement operator[](int i) const
const_iterator operator-(int j) const
const_iterator & operator-=(int j)
const_iterator & operator++()