Created
November 23, 2010 14:33
-
-
Save tronical/711845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WebKit/qt/Api/qwebsettings.cpp b/WebKit/qt/Api/qwebsettings.cpp | |
index 0d73ff9..08b1100 100644 | |
--- a/WebKit/qt/Api/qwebsettings.cpp | |
+++ b/WebKit/qt/Api/qwebsettings.cpp | |
@@ -167,12 +167,6 @@ void QWebSettingsPrivate::apply() | |
settings->setAcceleratedCompositingEnabled(value); | |
#endif | |
-#if ENABLE(3D_CANVAS) | |
- value = attributes.value(QWebSettings::WebGLEnabled, | |
- global->attributes.value(QWebSettings::WebGLEnabled)); | |
- | |
- settings->setWebGLEnabled(value); | |
-#endif | |
value = attributes.value(QWebSettings::JavascriptCanOpenWindows, | |
global->attributes.value(QWebSettings::JavascriptCanOpenWindows)); | |
@@ -503,7 +497,6 @@ QWebSettings::QWebSettings() | |
d->attributes.insert(QWebSettings::LocalContentCanAccessRemoteUrls, false); | |
d->attributes.insert(QWebSettings::LocalContentCanAccessFileUrls, true); | |
d->attributes.insert(QWebSettings::AcceleratedCompositingEnabled, true); | |
- d->attributes.insert(QWebSettings::WebGLEnabled, false); | |
d->attributes.insert(QWebSettings::TiledBackingStoreEnabled, false); | |
d->attributes.insert(QWebSettings::FrameFlatteningEnabled, false); | |
d->attributes.insert(QWebSettings::SiteSpecificQuirksEnabled, true); | |
diff --git a/WebKit/qt/Api/qwebsettings.h b/WebKit/qt/Api/qwebsettings.h | |
index 49f2904..6ecdfbc 100644 | |
--- a/WebKit/qt/Api/qwebsettings.h | |
+++ b/WebKit/qt/Api/qwebsettings.h | |
@@ -75,7 +75,6 @@ public: | |
TiledBackingStoreEnabled, | |
FrameFlatteningEnabled, | |
SiteSpecificQuirksEnabled, | |
- WebGLEnabled, | |
JavascriptCanCloseWindows | |
}; | |
enum WebGraphic { | |
diff --git a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp | |
index 735fa8e..ac904c5 100644 | |
--- a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp | |
+++ b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp | |
@@ -557,8 +557,6 @@ void LayoutTestController::overridePreference(const QString& name, const QVarian | |
setCaretBrowsingEnabled(value.toBool()); | |
else if (name == "WebKitPluginsEnabled") | |
settings->setAttribute(QWebSettings::PluginsEnabled, value.toBool()); | |
- else if (name == "WebKitWebGLEnabled") | |
- settings->setAttribute(QWebSettings::WebGLEnabled, value.toBool()); | |
else | |
printf("ERROR: LayoutTestController::overridePreference() does not support the '%s' preference\n", | |
name.toLatin1().data()); | |
diff --git a/WebKitTools/QtTestBrowser/launcherwindow.cpp b/WebKitTools/QtTestBrowser/launcherwindow.cpp | |
index 26c1ea1..20a4a2b 100644 | |
--- a/WebKitTools/QtTestBrowser/launcherwindow.cpp | |
+++ b/WebKitTools/QtTestBrowser/launcherwindow.cpp | |
@@ -145,7 +145,6 @@ void LauncherWindow::applyPrefs() | |
settings->setAttribute(QWebSettings::AcceleratedCompositingEnabled, m_windowOptions.useCompositing); | |
settings->setAttribute(QWebSettings::TiledBackingStoreEnabled, m_windowOptions.useTiledBackingStore); | |
settings->setAttribute(QWebSettings::FrameFlatteningEnabled, m_windowOptions.useFrameFlattening); | |
- settings->setAttribute(QWebSettings::WebGLEnabled, m_windowOptions.useWebGL); | |
if (!isGraphicsBased()) | |
return; | |
@@ -228,10 +227,6 @@ void LauncherWindow::createChrome() | |
toggleGraphicsView->setCheckable(true); | |
toggleGraphicsView->setChecked(isGraphicsBased()); | |
- QAction* toggleWebGL = toolsMenu->addAction("Toggle WebGL", this, SLOT(toggleWebGL(bool))); | |
- toggleWebGL->setCheckable(true); | |
- toggleWebGL->setChecked(settings->testAttribute(QWebSettings::WebGLEnabled)); | |
- | |
QAction* spatialNavigationAction = toolsMenu->addAction("Toggle Spatial Navigation", this, SLOT(toggleSpatialNavigation(bool))); | |
spatialNavigationAction->setCheckable(true); | |
spatialNavigationAction->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_S)); | |
@@ -700,12 +695,6 @@ void LauncherWindow::toggleResizesToContents(bool toggle) | |
static_cast<WebViewGraphicsBased*>(m_view)->setResizesToContents(toggle); | |
} | |
-void LauncherWindow::toggleWebGL(bool toggle) | |
-{ | |
- m_windowOptions.useWebGL = toggle; | |
- page()->settings()->setAttribute(QWebSettings::WebGLEnabled, toggle); | |
-} | |
- | |
void LauncherWindow::animatedFlip() | |
{ | |
qobject_cast<WebViewGraphicsBased*>(m_view)->animatedFlip(); | |
diff --git a/WebKitTools/QtTestBrowser/launcherwindow.h b/WebKitTools/QtTestBrowser/launcherwindow.h | |
index 65f390d..ed7bb6f 100644 | |
--- a/WebKitTools/QtTestBrowser/launcherwindow.h | |
+++ b/WebKitTools/QtTestBrowser/launcherwindow.h | |
@@ -155,7 +155,6 @@ protected slots: | |
void toggleAcceleratedCompositing(bool toggle); | |
void toggleTiledBackingStore(bool toggle); | |
void toggleResizesToContents(bool toggle); | |
- void toggleWebGL(bool toggle); | |
void toggleSpatialNavigation(bool b); | |
void toggleFullScreenMode(bool enable); | |
void toggleFrameFlattening(bool toggle); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment