[wx] Build fixes for wxWebKit.
authorkevino@webkit.org <kevino@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Feb 2011 19:34:38 +0000 (19:34 +0000)
committerkevino@webkit.org <kevino@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Feb 2011 19:34:38 +0000 (19:34 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77392 268f45cc-cd09-0410-ab3c-d52691b4dbfc

21 files changed:
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/wx/StringWx.cpp
Source/WebCore/ChangeLog
Source/WebCore/bindings/cpp/WebDOMHTMLDocumentCustom.cpp
Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm
Source/WebCore/page/wx/DragControllerWx.cpp
Source/WebCore/platform/graphics/wx/FontCustomPlatformData.h
Source/WebCore/platform/graphics/wx/FontPlatformData.h
Source/WebCore/platform/graphics/wx/FontPlatformDataWx.cpp
Source/WebCore/platform/graphics/wx/FontWx.cpp
Source/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
Source/WebCore/platform/wx/RenderThemeWx.cpp
Source/WebKit/wx/ChangeLog
Source/WebKit/wx/bindings/python/wscript
Tools/ChangeLog
Tools/DumpRenderTree/wx/LayoutTestControllerWx.cpp
Tools/wx/browser/wscript
Tools/wx/build/build_utils.py
Tools/wx/build/settings.py
wscript

index 21354b322793e3b7eb12012ce2d8531b1bc7aa89..95148a5a3085f263667e5dc751def2b823174f13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-02  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Build fixes for wxWebKit.
+
+        * wscript:
+
 2010-01-28  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed.  Test commit for commit-queue@webkit.org.
index 56763bf89abca3b7e94f8b814fcecfa19797dda5..8747b5c68e45d83d827a5571557646a3dcc8f6db 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-02  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Build fixes for wxWebKit.
+
+        * wtf/wx/StringWx.cpp:
+        (WTF::String::String):
+
 2011-02-01  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Sam Weinig.
index 59d500b798cfd1f2f8b1b5c7e7687dd56181ecda..fe0fd890a19c5403df94ebcedaed2300410933da 100644 (file)
  */
 
 #include "config.h"
-#include "PlatformString.h"
 
-#include <unicode/ustring.h>
 #include <wtf/text/CString.h>
+#include <wtf/text/WTFString.h>
+
 #include <wx/defs.h>
 #include <wx/string.h>
 
@@ -39,7 +39,7 @@ String::String(const wxString& wxstr)
     #error "This code only works in Unicode build of wxWidgets"
 #endif
 
-#if SIZEOF_WCHAR_T == sizeof(UChar)
+#if SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
 
     m_impl = StringImpl::create(wxstr.wc_str(), wxstr.length());
 
@@ -61,8 +61,8 @@ String::String(const wxString& wxstr)
     UChar* data;
     wxMBConvUTF16 conv;
     unsigned utf16Length = conv.FromWChar(0, 0, wideString, wideLength);
-    m_impl = StringImpl::createUninitialized(utf16Length, data)
-    conv.FromWChar(data, utf16Length, wideString, wideLength);
+    m_impl = StringImpl::createUninitialized(utf16Length, data);
+    conv.FromWChar((char*)data, utf16Length, wideString, wideLength);
 
 #endif // SIZEOF_WCHAR_T == 4
 }
index 89356bfb42b119215774cf0bb528daad5d149f1d..410eeeb5eb29cb8174aac9e4b608471d2b262980 100644 (file)
@@ -1,3 +1,23 @@
+2011-02-02  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Build fixes for wxWebKit.
+
+        * bindings/cpp/WebDOMHTMLDocumentCustom.cpp:
+        (documentWrite):
+        * bindings/scripts/CodeGeneratorCPP.pm:
+        * page/wx/DragControllerWx.cpp:
+        (WebCore::DragController::dragOperation):
+        * platform/graphics/wx/FontCustomPlatformData.h:
+        * platform/graphics/wx/FontPlatformData.h:
+        (WebCore::FontPlatformData::widthVariant):
+        * platform/graphics/wx/FontPlatformDataWx.cpp:
+        (WebCore::FontPlatformData::computeHash):
+        * platform/graphics/wx/FontWx.cpp:
+        * platform/graphics/wx/GraphicsContextWx.cpp:
+        (WebCore::GraphicsContext::fillPath):
+        (WebCore::GraphicsContext::strokePath):
+        * platform/wx/RenderThemeWx.cpp:
+
 2011-02-02  David Hyatt  <hyatt@apple.com>
 
         Reviewed by Darin Adler.
index 5d035718abd524161fb68195630f7536237eb9ac..d12f8248f6e63837ff17fcfb6e20eb212aeb6a3d 100644 (file)
@@ -30,7 +30,7 @@ static inline void documentWrite(const WebDOMString& text, WebCore::HTMLDocument
 {
     WebCore::SegmentedString segmentedString = WTF::String(text);
     if (addNewline)
-        segmentedString.append(WebCore::SegmentedString(WTF::String(&WebCore::newlineCharacter)));
+        segmentedString.append(WebCore::SegmentedString(WTF::String(&WTF::Unicode::newlineCharacter)));
     document->write(segmentedString);
 }
 
index 9b3f21eb916d85dd88e59ca38cf7f07a277be98c..7d3d61307e675308518b2beb8a3d3e9e4a6c72e8 100644 (file)
@@ -233,6 +233,7 @@ sub GetCPPType
     return "int" if $type eq "long";
     return "unsigned" if $name eq "unsigned long";
     return "unsigned short" if $type eq "CompareHow";
+    return "double" if $name eq "Date";
 
     if ($codeGenerator->IsStringType($type)) {
         if ($useConstReference) {
index 4a4d0642bf945ba84d219f7c50202d111e27d153..5c19c47fd40a672092bbdd4cc6fc9b2a49711043 100644 (file)
@@ -52,7 +52,7 @@ bool DragController::isCopyKeyDown(DragData*)
 DragOperation DragController::dragOperation(DragData* dragData)
 {
     //FIXME: This logic is incomplete
-    if (dragData->containsURL())
+    if (dragData->containsURL(0))
         return DragOperationCopy;
         
     return DragOperationNone;
index 7ffe89acc81830be7b5e8b5c1fe0714ad5b83aa3..c97529651b3d22bee5357c04bf143efad8e1419f 100644 (file)
@@ -25,6 +25,7 @@
 #include "FontRenderingMode.h"
 #include "FontWidthVariant.h"
 #include <wtf/Forward.h>
+#include <wtf/Noncopyable.h>
 
 namespace WebCore {
 
index 9ae8b54290b4f31f8e59306c0e4910fe0bb6e33f..3ef01798fb33d8a601fab8378cb4cd54e3bfc948 100644 (file)
@@ -30,6 +30,7 @@
 #define FontPlatformData_h
 
 #include "FontDescription.h"
+#include "FontWidthVariant.h"
 #include "FontOrientation.h"
 #include "StringImpl.h"
 #include <wtf/Forward.h>
@@ -150,6 +151,9 @@ public:
     
     FontOrientation orientation() const { return Horizontal; } // FIXME: Implement.
 
+    // We don't support this yet, so just return the default value for now.
+    FontWidthVariant widthVariant() const { return RegularWidth; }
+
 #if OS(WINDOWS)
     bool useGDI() const;
     HFONT hfont() const;
index d144a2c07def3bd2439ebf87fb5f67ae9090a347..c125b7c48e93b0ba01644495346d31b0ed64693b 100644 (file)
@@ -126,7 +126,7 @@ unsigned FontPlatformData::computeHash() const
         thisFont->GetStyle(),
         thisFont->GetWeight(),
         thisFont->GetUnderlined(), 
-        WTF::StringHasher::createHash(thisFont->GetFaceName().utf8_str())
+        WTF::StringHasher::createHash(thisFont->GetFaceName().utf8_str().data())
     };
 
     return WTF::StringHasher::createBlobHash<sizeof(hashCodes)>(hashCodes);
index 5233d43b7fa613a1bd49521e68539ccb99578c12..c48f3c795fcdd4a1c7103d0b1c30dfea2f0140ab 100644 (file)
@@ -32,6 +32,7 @@
 #include "IntRect.h"
 #include "NotImplemented.h"
 #include "SimpleFontData.h"
+#include "TextRun.h"
 
 #if OS(WINDOWS)
 #include "UniscribeController.h"
index f1c09c5f2f3178867c787805c115a4fa48496811..991be79edf417c172905e5077322638f6387b90f 100644 (file)
@@ -515,7 +515,7 @@ void GraphicsContext::fillPath(const Path& path)
 #if USE(WXGC)
     wxGraphicsContext* gc = m_data->context->GetGraphicsContext();
     if (gc)
-        gc->FillPath(path.platformPath());
+        gc->FillPath(*path.platformPath());
 #endif
 }
 
@@ -524,7 +524,7 @@ void GraphicsContext::strokePath(const Path& path)
 #if USE(WXGC)
     wxGraphicsContext* gc = m_data->context->GetGraphicsContext();
     if (gc)
-        gc->StrokePath(path.platformPath());
+        gc->StrokePath(*path.platformPath());
 #endif
 }
 
index c68bde95e20f8200880d94f9f18701411c73b98b..a34e2d423f9b5f8099f73eccc448b4b737f9fc3e 100644 (file)
@@ -31,6 +31,7 @@
 #include "GraphicsContext.h"
 #include "HostWindow.h"
 #include "NotImplemented.h"
+#include "PaintInfo.h"
 #include "RenderView.h"
 
 #include <wx/defs.h>
index e39a6867ea8532df40f4655b9aa191b32f01e398..b38d0505d1c7091aa1e7c59e796ea74fff227125 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-02  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Build fixes for wxWebKit.
+
+        * bindings/python/wscript:
+
 2011-01-28  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Sam Weinig.
index 0a1df313a037ad73a63274c7ab83a98f79893656..5e1dfc1eb782afede3f98a9123cf001ded662537 100644 (file)
@@ -33,7 +33,7 @@ include_paths = [
             os.path.join(wk_root, 'Source', 'JavaScriptCore'),
             os.path.join(wk_root, 'Source', 'WebCore', 'bindings', 'cpp'),
             os.path.join(wk_root, 'Source', 'WebCore', 'DerivedSources'),
-            os.path.join(wk_root, 'WebKit', 'wx'),
+            os.path.join(wk_root, 'Source', 'WebKit', 'wx'),
             os.path.join(wx_root, 'wxPython', 'include'),
             os.path.join(wx_root, '..', 'wxPython', 'include'),
             ]
index eec8d950b9c1f3e7025fe66f57cd74c32e6a0408..21d91afd217bd9116fac159574a990f512fae586 100644 (file)
@@ -1,3 +1,13 @@
+2011-02-02  Kevin Ollivier  <kevino@theolliviers.com>
+
+        [wx] Build fixes for wxWebKit.
+
+        * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
+        (LayoutTestController::setSerializeHTTPLoads):
+        * wx/browser/wscript:
+        * wx/build/build_utils.py:
+        * wx/build/settings.py:
+
 2011-02-01  Dirk Pranke  <dpranke@chromium.org>
 
         Reviewed by Mihai Parparita.
index 32b5f7e2e5848b553f958f5dc861d702c199ad22..1befb772736ad9326ae72d94699d7b5c3e68c802 100644 (file)
@@ -544,3 +544,8 @@ bool LayoutTestController::findString(JSContextRef context, JSStringRef target,
     // FIXME: Implement
     return false;
 }
+
+void LayoutTestController::setSerializeHTTPLoads(bool)
+{
+    // FIXME: Implement.
+}
index 4fb00b405bc01d2512b5280a0988138fbd101895..7c5aeee9562fa913629452a3995f194cb300c1cd 100644 (file)
@@ -30,7 +30,7 @@ import sys
 from settings import *
 
 include_paths = [os.path.join(wk_root, 'Source', 'WebCore', 'bindings', 'wx'),
-                os.path.join(wk_root, 'WebKit', 'wx')]
+                os.path.join(wk_root, 'Source', 'WebKit', 'wx')]
 
 def set_options(opt):
     common_set_options(opt)
index bf440a6f0c4cf8da9db35cc80b6ec2befbf3582f..569703d3b8f9e9cb37b55e100fab700b750b4e0c 100644 (file)
@@ -120,7 +120,7 @@ def update_wx_deps(conf, wk_root, msvc_version='msvc2008'):
         sys.exit(1)
 
     # since this module is still experimental
-    wxpy_dir = os.path.join(wk_root, 'WebKit', 'wx', 'bindings', 'python')
+    wxpy_dir = os.path.join(wk_root, 'Source', 'WebKit', 'wx', 'bindings', 'python')
     swig_module = download_if_newer('http://wxwebkit.wxcommunity.com/downloads/deps/swig.py.txt', wxpy_dir)
     if swig_module:
         shutil.copy(os.path.join(wxpy_dir, 'swig.py.txt'), os.path.join(wxpy_dir, 'swig.py'))
index 64c26939fdaa1289f48139ca3607875e37b5530b..aa26401209b870b4868b6cc50a98315cb1cf4e0a 100644 (file)
@@ -102,7 +102,6 @@ webcore_dirs = [
     'Source/WebCore/bindings/cpp',
     'Source/WebCore/bindings/generic',
     'Source/WebCore/bindings/js',
-    'Source/WebCore/bindings/js/specialization',
     'Source/WebCore/bridge',
     'Source/WebCore/bridge/c',
     'Source/WebCore/bridge/jsc',
@@ -116,6 +115,7 @@ webcore_dirs = [
     'Source/WebCore/html',
     'Source/WebCore/html/canvas',
     'Source/WebCore/html/parser',
+    'Source/WebCore/html/shadow',
     'Source/WebCore/inspector',
     'Source/WebCore/loader',
     'Source/WebCore/loader/appcache',
diff --git a/wscript b/wscript
index d0c1faef46db04a9cb6254c287383cc316219d95..efd1e643864f387a1f425c371dd79c811d0b55bf 100644 (file)
--- a/wscript
+++ b/wscript
@@ -61,8 +61,11 @@ windows_deps = [
 webcore_sources = {}
 
 if build_port == "wx":
-    webcore_sources['wx'] = ['Source/WebCore/platform/KillRingNone.cpp',
-                             'Source/WebCore/bindings/cpp/WebDOMEventTarget.cpp']  
+    webcore_sources['wx'] = [
+        'Source/WebCore/bindings/cpp/WebDOMEventTarget.cpp',
+        'Source/WebCore/platform/KillRingNone.cpp',                     
+        'Source/WebCore/platform/text/LocalizedNumberNone.cpp'
+    ]  
 
     if building_on_win32:
         # make sure platform/wx comes after this so we get the right
@@ -195,7 +198,7 @@ def build(bld):
     global wk_includes
 
     # FIXME: Does this need to be Source/JavaScriptCore?
-    bld.add_subdirs('JavaScriptCore')
+    bld.add_subdirs('Source/JavaScriptCore')
 
     if sys.platform.startswith('darwin'):
         TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cxx']
@@ -223,6 +226,7 @@ def build(bld):
         if os.path.isdir(fullpath) and not item == "os-win32" and not item == 'icu':
             wk_includes.append(fullpath)
 
+    wk_includes.append('Source')
     wk_includes.append(os.path.join(jscore_dir, 'wtf', 'unicode'))
     wk_includes.append(os.path.join(jscore_dir, 'wtf', 'unicode', 'icu'))
     wk_includes += common_includes + full_dirs