Skip to content

Instantly share code, notes, and snippets.

View Smith1123's full-sized avatar

Smith Smith1123

View GitHub Profile
@Smith1123
Smith1123 / gist:944218
Created April 27, 2011 13:09
Patch for bug 48958
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 3df238f..5e4db0f 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -2285,7 +2285,7 @@ fast/images/webp-image-decoding.html
# [Qt] DRT sideeffect revealed by r71268
# https://bugs.webkit.org/show_bug.cgi?id=48958
-svg/custom/text-zoom.xhtml
+#svg/custom/text-zoom.xhtml
@Smith1123
Smith1123 / gist:944253
Created April 27, 2011 13:36
LayoutTests/ChangeLog
2011-04-27 Zsolt Fehér <h490267@stud.u-szeged.hu>
Reviewed by NOBODY (OOPS!).
Retool the Zoomfactor svg/custom/text-zoom.xhtml and but for no reset this value.
https://bugs.webkit.org/show_bug.cgi?id=48958
* platform/qt/Skipped:
* svg/custom/text-zoom.xhtml: Removed.
@Smith1123
Smith1123 / gist:944257
Created April 27, 2011 13:38
Tools/ChangLog
2011-04-27 Zsolt Fehér <h490267@stud.u-szeged.hu>
Reviewed by NOBODY (OOPS!).
DRT sideeffect revealed by r71268. The Zoomfactor correctly reseted and retooled in the LayoutTests.
https://bugs.webkit.org/show_bug.cgi?id=48958
* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::WebPage::resetSettings):
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):
@Smith1123
Smith1123 / gist:944262
Created April 27, 2011 13:43
Bug 48958
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 348e841..36c147e 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2011-04-27 Zsolt Fehér <h490267@stud.u-szeged.hu>
+
+ Reviewed by NOBODY (OOPS!).
+
+ Retool the Zoomfactor svg/custom/text-zoom.xhtml and but for no reset this value.
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 348e841..f95e6cd 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,12 @@
+2011-04-27 Zsolt Fehér <h490267@stud.u-szeged.hu>
+
+ Reviewed by NOBODY (OOPS!).
+
+ DRT sideeffect revealed by r71268
diff --git a/Source/WebKit/qt/Api/qwebframe.cpp b/Source/WebKit/qt/Api/qwebframe.cpp
index 857ca63..770d18a 100644
--- a/Source/WebKit/qt/Api/qwebframe.cpp
+++ b/Source/WebKit/qt/Api/qwebframe.cpp
@@ -1296,6 +1296,16 @@ qreal QWebFrame::zoomFactor() const
return page()->settings()->testAttribute(QWebSettings::ZoomTextOnly) ? d->frame->textZoomFactor() : d->frame->pageZoomFactor();
}
+void QWebFrame::scalePage(qreal scalefactor, const QPoint& origin)
+{
@Smith1123
Smith1123 / gist:970301
Created May 13, 2011 10:15
testRepaint()
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 54b9ec8..b0c9691 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,15 @@
+2011-05-13 Zsolt Fehér <h490267@stud.u-szeged.hu>
+
+ Reviewed by NOBODY (OOPS!).
+
+ Implement testRepaint.
@Smith1123
Smith1123 / gist:976320
Created May 17, 2011 11:42
scalePageBy
diff --git a/Source/WebKit/qt/ChangeLog b/Source/WebKit/qt/ChangeLog
index 915f2f7..1f020f1 100644
--- a/Source/WebKit/qt/ChangeLog
+++ b/Source/WebKit/qt/ChangeLog
@@ -1,3 +1,14 @@
+2011-05-17 Zsolt Fehér <h490267@stud.u-szeged.hu>
+
+ Reviewed by NOBODY (OOPS!).
+
+ [Qt] Implement eventSender.scalePageBy
@Smith1123
Smith1123 / gist:994811
Created May 27, 2011 07:40
testRepaint()
diff --git a/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp b/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
index b8f7b41..b91096e 100644
--- a/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
+++ b/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
@@ -950,12 +950,36 @@ void DumpRenderTree::dump()
// FIXME: All other ports don't dump pixels, if generatePixelResults is false.
if (m_dumpPixels) {
- QImage image(m_page->viewportSize(), QImage::Format_ARGB32);
+ QImage image;
@Smith1123
Smith1123 / gist:1000201
Created May 31, 2011 08:58
testRepaint()
diff --git a/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp b/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
index 001d55b..6d907c3 100644
--- a/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
+++ b/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
@@ -951,12 +951,52 @@ void DumpRenderTree::dump()
// FIXME: All other ports don't dump pixels, if generatePixelResults is false.
if (m_dumpPixels) {
- QImage image(m_page->viewportSize(), QImage::Format_ARGB32);
+ QImage image;