2007-05-18 Holger Hans Peter Freyther <zecke@selfish.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 08:29:58 +0000 (08:29 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2007 08:29:58 +0000 (08:29 +0000)
        Reviewed by Mark Rowe.

        No test added as this is hard to time.

        * platform/gdk/FrameGdk.cpp: Use needsLayout() to decide if layout()
        is needed.

        (WebCore::FrameGdk::dumpRenderTree):
        (WebCore::FrameGdk::handleGdkEvent):

2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Mark Rowe.

        * kjs/testkjs.pro: Make the Gdk port link to icu

2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Mark Rowe.

        * WebKit.pro: Build testkjs for Gdk and Qt

2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Mark Rowe.

        * GdkLauncher/main.cpp:
        (main): Call Frame::init to catch up with Maciej's changes.
        * Scripts/run-javascriptcore-tests: Remove --gdk from the command line
        passed to the helper scripts.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21557 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/testkjs.pro
WebCore/ChangeLog
WebCore/platform/gdk/FrameGdk.cpp
WebKit.pro
WebKitTools/ChangeLog
WebKitTools/GdkLauncher/main.cpp
WebKitTools/Scripts/run-javascriptcore-tests

index 159ddda599fb18f0757560da5c4ec2c05800486b..d0cdea39ad94090a073d897e72c533473d821138 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Reviewed by Mark Rowe.
+
+        * WebKit.pro: Build testkjs for Gdk and Qt
+
 2007-05-11  Holger Freyther <freyther@kde.org>
 
         Reviewed by Mark Rowe.
index ee82fb30b9bfe6706be98def288d00f57306a7b8..3e5fac5b83d1f43dd70686813422c44aec7267e7 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Reviewed by Mark Rowe.
+
+        * kjs/testkjs.pro: Make the Gdk port link to icu
+
 2007-05-15  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Adele Peterson.
index 59081c197e2b76ca570922be52bd1d9b1c44c08d..035956b7e883d5826f16585d46e91f4eb98c20dc 100644 (file)
@@ -7,6 +7,10 @@ DEFINES -= KJS_IDENTIFIER_HIDE_GLOBALS
 INCLUDEPATH += $$PWD/.. $$PWD $$PWD/../bindings $$PWD/../bindings/c $$PWD/../wtf
 qt-port:DEFINES += BUILDING_QT__
 qt-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitQt
+gdk-port {
+    QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
+    LIBS += $$system(icu-config --ldflags)
+}
 QMAKE_RPATHDIR += $$OUTPUT_DIR/lib
 
 isEmpty(OUTPUT_DIR):OUTPUT_DIR=$$PWD/../..
index 367177069fa8f9f11712a4b23a1b0a92a171eab0..7f616bcd58e0eedd56350d900b7fbbd3bc969938 100644 (file)
@@ -1,3 +1,15 @@
+2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Reviewed by Mark Rowe.
+
+        No test added as this is hard to time.
+
+        * platform/gdk/FrameGdk.cpp: Use needsLayout() to decide if layout()
+        is needed.
+
+        (WebCore::FrameGdk::dumpRenderTree):
+        (WebCore::FrameGdk::handleGdkEvent):
+
 2007-05-18  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.
index 5c6bd31f5ee11d1839b787a449e6784569601cf5..506eb31211066c4f9c6184b9affefa1a40164a34 100644 (file)
@@ -129,7 +129,7 @@ void FrameGdk::onDidFinishLoad()
 
 void FrameGdk::dumpRenderTree() const
 {
-    if (view()->layoutPending())
+    if (view()->needsLayout())
         view()->layout();
     
     String txt = externalRepresentation(renderer());
@@ -206,7 +206,7 @@ void FrameGdk::handleGdkEvent(GdkEvent* event)
             cairo_t* cr = gdk_cairo_create(event->any.window);
             GraphicsContext ctx(cr);
             if (renderer()) {
-                if (view()->layoutPending())
+                if (view()->needsLayout())
                     view()->layout();
                 IntRect rect(clip.x, clip.y, clip.width, clip.height);
                 paint(&ctx, rect);
index 45c35a3cfc11baad071b1d17c01dcabfce017e28..eae6a4618004d43ad7c955afdcb24540596fb6be 100644 (file)
@@ -2,11 +2,11 @@ TEMPLATE = subdirs
 CONFIG += ordered
 !gdk-port:CONFIG += qt-port
 SUBDIRS = \
-        WebCore
+        WebCore \
+        JavaScriptCore/kjs/testkjs.pro
 
 qt-port:SUBDIRS += \
         WebKitQt/QtLauncher \
-        WebKitTools/DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.pro \
-        JavaScriptCore/kjs/testkjs.pro
+        WebKitTools/DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.pro
 gdk-port:SUBDIRS += \
         WebKitTools/GdkLauncher
index fed6465d645191f7552bcf96cbd6fe16fed98318..5707bb4a15cfcf18d17595c7ac7288baddf18cd5 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-18  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Reviewed by Mark Rowe.
+
+        * GdkLauncher/main.cpp:
+        (main): Call Frame::init to catch up with Maciej's changes.
+        * Scripts/run-javascriptcore-tests: Remove --gdk from the command line
+        passed to the helper scripts.
+
 2007-05-16  Brady Eidson  <beidson@apple.com>
 
         Build fix for some dev configurations
index fb14e10662c9f244d5acc52f5f5be814171dc6c7..3179811a60e3e9ae75578739e5b2ad53aad87a3b 100644 (file)
@@ -213,6 +213,7 @@ int main(int argc, char* argv[])
     gFrame->setView(frameView);
     frameView->ScrollView::setDrawable(frameWindow->window);
 
+    gFrame->init();
     gFrame->loader()->load(ResourceRequest(url));
     gtk_main();
 #if 0 // FIXME: this crashes at the moment. needs to provide DragClient
index d12344e5b51c87ee3399b47d0a9b4b37c9989e12..37ddf081ae99f88606134ac4ebfdaeddbf5a9cd4 100755 (executable)
@@ -45,7 +45,8 @@ my @xcodeArgs;
 # pre-evaluate arguments.  jsDriver args have - preceding, xcode args do not.
 foreach my $arg(@ARGV) {
     print $arg."\n";
-    if( $arg =~ /^-/ ){
+    if( $arg =~ /^--gdk$/i ){
+    } elsif( $arg =~ /^-/ ){
         push( @jsArgs, $arg );
     } else {
         push( @xcodeArgs, $arg );
@@ -70,7 +71,7 @@ exit WEXITSTATUS($result) if WEXITSTATUS($result);
 my $productDir = productDir();
 chdir "tests/mozilla" or die;
 
-$productDir .= "/JavaScriptCore" if (isQt());
+$productDir .= "/JavaScriptCore" if (isQt() or isGdk());
 $ENV{DYLD_FRAMEWORK_PATH} = $productDir;
 
 my $testkjsName;