https://bugs.webkit.org/show_bug.cgi?id=144746
Reviewed by Martin Robinson.
.:
Don't set DEVELOPMENT_BUILD. We check whether it is defined for conditional compilation, not
what it is defined to, so defining it to 0 effectively turned it on always.
* Source/cmake/OptionsGTK.cmake:
Source/WebCore:
Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
* platform/gtk/GtkUtilities.cpp:
* platform/gtk/GtkUtilities.h:
* platform/text/gtk/HyphenationLibHyphen.cpp:
(WebCore::availableLocales):
Source/WebKit2:
Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
* Shared/gtk/ProcessExecutablePathGtk.cpp:
(WebKit::findWebKitProcess):
* UIProcess/API/gtk/WebKitWebContext.cpp:
(injectedBundleDirectory):
* UIProcess/gtk/TextCheckerGtk.cpp:
(WebKit::enchantTextChecker):
Tools:
Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
* MiniBrowser/gtk/main.c:
(main):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183945
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-05-07 Michael Catanzaro <mcatanzaro@igalia.com>
+
+ [GTK] Checks for DEVELOPMENT_BUILD are all wrong
+ https://bugs.webkit.org/show_bug.cgi?id=144746
+
+ Reviewed by Martin Robinson.
+
+ Don't set DEVELOPMENT_BUILD. We check whether it is defined for conditional compilation, not
+ what it is defined to, so defining it to 0 effectively turned it on always.
+
+ * Source/cmake/OptionsGTK.cmake:
+
2015-05-05 Myles C. Maxfield <mmaxfield@apple.com>
Revert "Introducing the Platform Abstraction Layer (PAL)"
+2015-05-07 Michael Catanzaro <mcatanzaro@igalia.com>
+
+ [GTK] Checks for DEVELOPMENT_BUILD are all wrong
+ https://bugs.webkit.org/show_bug.cgi?id=144746
+
+ Reviewed by Martin Robinson.
+
+ Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
+
+ * platform/gtk/GtkUtilities.cpp:
+ * platform/gtk/GtkUtilities.h:
+ * platform/text/gtk/HyphenationLibHyphen.cpp:
+ (WebCore::availableLocales):
+
2015-05-07 Simon Fraser <simon.fraser@apple.com>
Remove the WK1-only code path for independently composited iframes
return gtk_widget_is_toplevel(widget) && GTK_IS_WINDOW(widget) && !GTK_IS_OFFSCREEN_WINDOW(widget);
}
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
static CString topLevelPath()
{
if (const char* topLevelDirectory = g_getenv("WEBKIT_TOP_LEVEL"))
IntPoint convertWidgetPointToScreenPoint(GtkWidget*, const IntPoint&);
bool widgetIsOnscreenToplevelWindow(GtkWidget*);
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
CString webkitBuildDirectory();
#endif
availableLocales.set(AtomicString(extractLocaleFromDictionaryFilePath(filePath)), filePath);
}
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
static void scanTestDictionariesDirectoryIfNecessary(HashMap<AtomicString, String>& availableLocales)
{
// It's unfortunate that we need to look for the dictionaries this way, but
for (size_t i = 0; i < WTF_ARRAY_LENGTH(gDictionaryDirectories); i++)
scanDirectoryForDicionaries(gDictionaryDirectories[i], availableLocales);
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
scanTestDictionariesDirectoryIfNecessary(availableLocales);
#endif
+2015-05-07 Michael Catanzaro <mcatanzaro@igalia.com>
+
+ [GTK] Checks for DEVELOPMENT_BUILD are all wrong
+ https://bugs.webkit.org/show_bug.cgi?id=144746
+
+ Reviewed by Martin Robinson.
+
+ Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
+
+ * Shared/gtk/ProcessExecutablePathGtk.cpp:
+ (WebKit::findWebKitProcess):
+ * UIProcess/API/gtk/WebKitWebContext.cpp:
+ (injectedBundleDirectory):
+ * UIProcess/gtk/TextCheckerGtk.cpp:
+ (WebKit::enchantTextChecker):
+
2015-05-06 Dean Jackson <dino@apple.com>
Handle backdrop views that have to tile
#include <WebCore/FileSystem.h>
#include <glib.h>
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
#include <wtf/gobject/GlibUtilities.h>
#endif
namespace WebKit {
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
static String getExecutablePath()
{
CString executablePath = getCurrentExecutablePath();
static String findWebKitProcess(const char* processName)
{
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
static const char* execDirectory = g_getenv("WEBKIT_EXEC_PATH");
if (execDirectory) {
String processPath = pathByAppendingComponent(filenameToString(execDirectory), processName);
static const char* injectedBundleDirectory()
{
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
const char* bundleDirectory = g_getenv("WEBKIT_INJECTED_BUNDLE_PATH");
if (bundleDirectory && g_file_test(bundleDirectory, G_FILE_TEST_IS_DIR))
return bundleDirectory;
{
static NeverDestroyed<WebCore::TextCheckerEnchant> checker;
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
// This is a bit of a hack, but ensures that for testing purposes,
// spell checking is properly initialized in WebKitTestRunner while
// running layout tests. We should consider replacing this with some
WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_VIDEO)
WEBKIT_OPTION_DEPEND(USE_GSTREAMER_MPEGTS ENABLE_VIDEO)
-# FIXME: There is no reason these should be different.
-SET_AND_EXPOSE_TO_BUILD(DEVELOPMENT_BUILD ${DEVELOPER_MODE})
if (DEVELOPER_MODE)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MINIBROWSER PUBLIC ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_API_TESTS PRIVATE ON)
+2015-05-07 Michael Catanzaro <mcatanzaro@igalia.com>
+
+ [GTK] Checks for DEVELOPMENT_BUILD are all wrong
+ https://bugs.webkit.org/show_bug.cgi?id=144746
+
+ Reviewed by Martin Robinson.
+
+ Use DEVELOPER_MODE rather than DEVELOPMENT_BUILD.
+
+ * MiniBrowser/gtk/main.c:
+ (main):
+
2015-05-05 Myles C. Maxfield <mmaxfield@apple.com>
Revert "Introducing the Platform Abstraction Layer (PAL)"
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
-#if defined(DEVELOPMENT_BUILD)
+#if defined(DEVELOPER_MODE)
g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE);
#endif