Skip to content

Instantly share code, notes, and snippets.

@Slow3000
Slow3000 / Patch
Created November 2, 2011 17:24
Webkit trunk on harmattan build fix
diff --git a/Source/WebCore/html/HTMLSelectElement.cpp b/Source/WebCore/html/HTMLSelectElement.cpp
index 4986288..2d7fbe7 100644
--- a/Source/WebCore/html/HTMLSelectElement.cpp
+++ b/Source/WebCore/html/HTMLSelectElement.cpp
@@ -171,7 +171,7 @@ bool HTMLSelectElement::valueMissing() const
void HTMLSelectElement::listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow)
{
if (!multiple())
- setSelectedIndexByUser(listToOptionIndex(listIndex), true, fireOnChangeNow);
+ optionSelectedByUser(listToOptionIndex(listIndex), fireOnChangeNow, false);
@Slow3000
Slow3000 / gist:1376768
Created November 18, 2011 15:33
QWebViewportAttributes patch (code part)
From af876c2c6b0d285f313f43cc3bb117af7a2695bc Mon Sep 17 00:00:00 2001
From: Michael Bruning <michael.bruning@nokia.com>
Date: Fri, 18 Nov 2011 16:26:13 +0100
Subject: [PATCH] Add experimental QWebViewportAttributes class to experimental API
This patch introduces the QWebViewportAttributes which provides infor-
mation about the ViewportAttributes in the touch version of the
QQuickWebView class.
---
.../WebKit/qt/declarative/experimental/plugin.cpp | 3 +
@Slow3000
Slow3000 / gist:1388667
Created November 23, 2011 13:31
Reworked patch for experimental viewportAttributes
From e64013ea9f28d7ac38c23c9bb76be32496d4b129 Mon Sep 17 00:00:00 2001
From: Michael Bruning <michael.bruning@nokia.com>
Date: Wed, 23 Nov 2011 14:24:46 +0100
Subject: [PATCH] [QT][WK2]Add (experimental) viewport attributes view to Minibrowser/qt
https://bugs.webkit.org/show_bug.cgi?id=72893
Reviewed by Tor Arne Vestbo
This extends QQuickWebViewExperimental by a property named
@Slow3000
Slow3000 / gist:1393644
Created November 25, 2011 14:30
Build errors
/scratchbox/users/mibrunin/home/mibrunin/swork/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:116:28: error: 'QObjectPrivate* QObject::d_func()' is private
../../include/QtDeclarative/5.0.0/QtDeclarative/private/../../../../../src/declarative/qml/v8/qjsengine_p.h:50:66: error: within this context
../../include/QtDeclarative/5.0.0/QtDeclarative/private/../../../../../src/declarative/qml/v8/qjsengine_p.h:50:66: error: invalid conversion from 'QObjectPrivate*' to 'QJSEnginePrivate*
@Slow3000
Slow3000 / gist:1400046
Created November 28, 2011 11:20
JS property access fix...
--- a/Source/WebKit/qt/declarative/experimental/plugin.cpp
+++ b/Source/WebKit/qt/declarative/experimental/plugin.cpp
@@ -19,6 +19,7 @@
#include "qquickwebpage_p.h"
#include "qquickwebview_p.h"
+#include "qwebpreferences_p.h"
#include <QtDeclarative/qdeclarative.h>
#include <QtDeclarative/qdeclarativeextensionplugin.h>
@Slow3000
Slow3000 / gist:1400455
Created November 28, 2011 13:49
Moving WebPreferences to experimental extension
---
.../WebKit/qt/declarative/experimental/plugin.cpp | 3 +++
Source/WebKit/qt/declarative/plugin.cpp | 2 --
Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp | 12 ++++++------
Source/WebKit2/UIProcess/API/qt/qquickwebview_p.h | 4 ++--
Tools/MiniBrowser/qt/qml/BrowserWindow.qml | 7 +++++++
5 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/Source/WebKit/qt/declarative/experimental/plugin.cpp b/Source/WebKit/qt/declarative/experimental/plugin.cpp
index 86312e1..5d556e2 100644
@Slow3000
Slow3000 / gist:1438081
Created December 6, 2011 12:41
Fix for assertion in QQuickWebViewPrivate.
[qt][wk2] Tests of QQuickWebView assert in debug builds when destroying QQuickWebViewPrivate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
https://bugs.webkit.org/show_bug.cgi?id=73907
Patch by Michael Brüning <michael.bruning@nokia.com> on 2011-12-06
Reviewed by NOBODY (OOPS!).
@Slow3000
Slow3000 / gist:1472027
Created December 13, 2011 12:50
xvfb-run output
INFO:Exec:Running... /home/mibrunin/swork/qtwebkit-webkit2-dev-builddir-host-m6/Release/Source/WebKit2/UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview
INFO:Exec:Running... /home/mibrunin/swork/qtwebkit-webkit2-dev-builddir-host-m6/Release/Source/WebKit2/UIProcess/API/qt/tests/qmltests/tst_qmltests
Qml debugging is enabled. Only use this in a safe environment!
INFO:Exec:Finished /home/mibrunin/swork/qtwebkit-webkit2-dev-builddir-host-m6/Release/Source/WebKit2/UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview
INFO:Exec:Finished /home/mibrunin/swork/qtwebkit-webkit2-dev-builddir-host-m6/Release/Source/WebKit2/UIProcess/API/qt/tests/qmltests/tst_qmltests
Traceback (most recent call last):
File "Tools/Scripts/run-qtwebkit-tests", line 395, in <module>
main.run()
File "Tools/Scripts/run-qtwebkit-tests", line 225, in run
transformed_results = self.transform(results)
TestScript = [
Event = {
id: 1,
type: "TouchPress",
x : 10,
y : 20
},
Event = {
id: 1,
type: "TouchMove",
@Slow3000
Slow3000 / gist:1620867
Created January 16, 2012 13:28
qmltests assert
Reading symbols from /home/mibrunin/swork_1/qtwebkit-webkit2-dev-builddir-host-m6/Debug/Source/WebKit2/UIProcess/API/qt/tests/qmltests/tst_qmltests...done.
(gdb) r
Starting program: /home/mibrunin/swork_1/qtwebkit-webkit2-dev-builddir-host-m6/Debug/Source/WebKit2/UIProcess/API/qt/tests/qmltests/tst_qmltests
[Thread debugging using libthread_db enabled]
Qml debugging is enabled. Only use this in a safe environment!
[New Thread 0x7fffe578f700 (LWP 12115)]
[New Thread 0x7fffe4f8e700 (LWP 12116)]
[New Thread 0x7fff9dfd9700 (LWP 12117)]
[New Thread 0x7fff9d7d8700 (LWP 12118)]
[New Thread 0x7fff9cfd7700 (LWP 12119)]