[epiphany] Revert "Stop using unstable DOM API headers"



commit 7a97daa0b7075265c0f542c4e5be9fcec91f060b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Thu Oct 27 14:10:33 2016 -0500

    Revert "Stop using unstable DOM API headers"
    
    This reverts commit b9f0578c7f82c801c0a46b7c6ff248b232fe7937.
    
    We forgot to include new the newly-stable headers in webkitdom.h.

 embed/web-extension/ephy-web-dom-utils.h |    2 ++
 embed/web-extension/ephy-web-extension.c |    2 ++
 embed/web-extension/ephy-web-overview.c  |    5 ++++-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-dom-utils.h b/embed/web-extension/ephy-web-dom-utils.h
index 5472b00..85c3584 100644
--- a/embed/web-extension/ephy-web-dom-utils.h
+++ b/embed/web-extension/ephy-web-dom-utils.h
@@ -21,6 +21,8 @@
 #pragma once
 
 #include <webkitdom/webkitdom.h>
+#define WEBKIT_DOM_USE_UNSTABLE_API
+#include <webkitdom/WebKitDOMDOMSelection.h>
 
 G_BEGIN_DECLS
 
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 81e19b2..5debbc9 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -39,6 +39,8 @@
 #include <libsoup/soup.h>
 #include <string.h>
 #include <webkit2/webkit-web-extension.h>
+#define WEBKIT_DOM_USE_UNSTABLE_API
+#include <webkitdom/WebKitDOMDOMWindowUnstable.h>
 #include <JavaScriptCore/JavaScript.h>
 
 struct _EphyWebExtension {
diff --git a/embed/web-extension/ephy-web-overview.c b/embed/web-extension/ephy-web-overview.c
index 9dad635..e7a1c35 100644
--- a/embed/web-extension/ephy-web-overview.c
+++ b/embed/web-extension/ephy-web-overview.c
@@ -22,7 +22,10 @@
 #include "ephy-web-overview.h"
 
 #include <string.h>
-#include <webkitdom/webkitdom.h>
+
+#define WEBKIT_DOM_USE_UNSTABLE_API
+#include <webkitdom/WebKitDOMElementUnstable.h>
+#include <webkitdom/WebKitDOMDOMTokenList.h>
 
 struct _EphyWebOverview {
   GObject parent_instance;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]