summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/Api/qwebelement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/Api/qwebelement.h')
-rw-r--r--WebKit/qt/Api/qwebelement.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/WebKit/qt/Api/qwebelement.h b/WebKit/qt/Api/qwebelement.h
index c488d12..b94c372 100644
--- a/WebKit/qt/Api/qwebelement.h
+++ b/WebKit/qt/Api/qwebelement.h
@@ -32,11 +32,20 @@ namespace WebCore {
class Node;
}
-namespace JSC {
-namespace Bindings {
+
+#if defined(WTF_USE_V8) && WTF_USE_V8
+namespace V8 {
+ namespace Bindings {
class QtWebElementRuntime;
+ }
}
+#else
+namespace JSC {
+ namespace Bindings {
+ class QtWebElementRuntime;
+ }
}
+#endif
QT_BEGIN_NAMESPACE
class QPainter;
@@ -160,7 +169,12 @@ private:
friend class QWebHitTestResult;
friend class QWebHitTestResultPrivate;
friend class QWebPage;
+
+#if defined(WTF_USE_V8) && WTF_USE_V8
+ friend class V8::Bindings::QtWebElementRuntime;
+#else
friend class JSC::Bindings::QtWebElementRuntime;
+#endif
QWebElementPrivate* d;
WebCore::Element* m_element;