Skip to content

Instantly share code, notes, and snippets.

@Slow3000
Slow3000 / gist:a982ff11bad915f6cfbb
Created June 5, 2014 16:07
Quick hack to make Chromium not build angle libraries.
From b36d628d27c95c1789d3f22e795971834b34bdee Mon Sep 17 00:00:00 2001
From: Michael Bruning <michael.bruning@digia.com>
Date: Thu, 5 Jun 2014 18:04:55 +0200
Subject: [PATCH] Quick hack for suppressing the ANGLE build in Chromium.
Basically removes the EGL and GLESv2 targets and adds
those to the libraries.y
---
chromium/build/all.gyp | 2 +-
chromium/build/common.gypi | 4 +-
@Slow3000
Slow3000 / gist:088f110c4506eedba3ed
Created July 30, 2014 15:23
MSVS 2012 compiler error
Microsoft (R) Program Maintenance Utility Version 11.00.60315.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 /Fd..\..\..\..\plugins\pl
tforms\qwindowsd.pdb -DUNICODE -DWIN32 -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRA
Y -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_
NGLE -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\plugins\platforms\windows" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdpa
ty\wintab" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdparty\freetype\src" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rd
arty\freetype\include" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdparty\iaccessible2\generated\x86" -I"..\..\..\..\inc
ude" -I"..\..\..\..\include\QtPlatformSupport" -I"..\..\..\..\include\QtPlatformSupport\5.4.0" -I"..\..\..\..\include\Q
@Slow3000
Slow3000 / gist:b59ac2a91914c159428e
Created September 4, 2014 12:00
Style recalc assert.
> Qt1WebEngineCored.dll!WebCore::DocumentLifecycle::advanceTo(WebCore::DocumentLifecycle::State state) Line 154 C++
Qt1WebEngineCored.dll!WebCore::Document::updateStyle(WebCore::StyleRecalcChange change) Line 1889 C++
Qt1WebEngineCored.dll!WebCore::Document::updateRenderTree(WebCore::StyleRecalcChange change) Line 1863 C++
Qt1WebEngineCored.dll!WebCore::Document::updateLayoutIgnorePendingStylesheets(WebCore::Document::RunPostLayoutTasks runPostLayoutTasks) Line 2032 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::canonicalPosition(const WebCore::Position & passedPosition) Line 576 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::init(const WebCore::Position & position, WebCore::EAffinity affinity) Line 65 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::VisiblePosition(const WebCore::Position & pos, WebCore::EAffinity affinity) Line 54 C++
Qt1WebEngineCored.dll!WebCore::FrameSelection::localCaretRect() Line 1228 C++
Qt1WebEngineCored.dll!WebCore::FrameSelection::recomputeCaretRect()
@Slow3000
Slow3000 / Local variables
Created October 23, 2014 15:54
Occasional crash in Qt WebKit (5.4) on 64 Bit MSVC 2013 Windows (here on youtube.com in QGraphicsWebView)
from : 0x0000001c82aa1563 void *
to :0x0000003800000260 void *
offset : 0x0000001b7d55ecfd __int64
castOffset : 0x7d55ecfd int
@Slow3000
Slow3000 / Check that fails in ipc_sync_message_filter.cc
Created October 27, 2014 11:21
Qt WebEngine windows crash on exit.
bool SyncMessageFilter::Send(Message* message) {
// Removed [...]
// Can't use this class on the main thread or else it can lead to deadlocks.
// Also by definition, can't use this on IO thread since we're blocking it.
DCHECK(MessageLoopProxy::current().get() != listener_loop_.get());
@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>