Get rid of WebCoreSystemInterface on Windows
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Nov 2007 23:43:22 +0000 (23:43 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Nov 2007 23:43:22 +0000 (23:43 +0000)
 WebCore:

         Get rid of WebCoreSystemInterface on Windows

         The one function defined in that file is now in WebKitSystemInterface.

         Reviewed by Tim.

         * WebCore.vcproj/WebCore.vcproj: Removed
         WebCoreSystemInterface.{cpp,h}.
         * platform/graphics/cg/ImageCG.cpp: Made #include of
         WebCoreSystemInterface.h Mac-only.
         * platform/win/GraphicsContextWin.cpp: Ditto.
         * platform/win/WebCoreSystemInterface.cpp: Removed.
         * platform/win/WebCoreSystemInterface.h: Removed.

 WebKitLibraries:

         Add wkSetPatternPhaseInUserSpace to WebKitSystemInterface on Windows

         Reviewed by Tim.

         * win/include/WebKitSystemInterface/WebKitSystemInterface.h: Added
         declaration.
         * win/lib/WebKitSystemInterface.lib: Updated.
         * win/lib/WebKitSystemInterface_debug.lib: Updated.

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

WebCore/ChangeLog
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/platform/graphics/cg/ImageCG.cpp
WebCore/platform/win/GraphicsContextWin.cpp
WebCore/platform/win/WebCoreSystemInterface.cpp [deleted file]
WebCore/platform/win/WebCoreSystemInterface.h [deleted file]
WebKitLibraries/ChangeLog
WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
WebKitLibraries/win/lib/WebKitSystemInterface.lib
WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib

index 41dce0c..1920c40 100644 (file)
@@ -1,3 +1,19 @@
+2007-11-23  Adam Roben  <aroben@apple.com>
+
+        Get rid of WebCoreSystemInterface on Windows
+
+        The one function defined in that file is now in WebKitSystemInterface.
+
+        Reviewed by Tim.
+
+        * WebCore.vcproj/WebCore.vcproj: Removed
+        WebCoreSystemInterface.{cpp,h}.
+        * platform/graphics/cg/ImageCG.cpp: Made #include of
+        WebCoreSystemInterface.h Mac-only.
+        * platform/win/GraphicsContextWin.cpp: Ditto.
+        * platform/win/WebCoreSystemInterface.cpp: Removed.
+        * platform/win/WebCoreSystemInterface.h: Removed.
+
 2007-11-24  Adam Roben  <aroben@apple.com>
 
         Replace uses of %@ with %s in the inspector
index cc72219..f692f96 100644 (file)
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="windows-1251"?>\r
+<?xml version="1.0" encoding="Windows-1252"?>\r
 <VisualStudioProject\r
        ProjectType="Visual C++"\r
-       Version="8,00"\r
+       Version="8.00"\r
        Name="WebCore"\r
        ProjectGUID="{1C16337B-ACF3-4D03-AA90-851C5B5EADA6}"\r
        RootNamespace="WebCore"\r
                                        >\r
                                </File>\r
                                <File\r
-                                       RelativePath="..\platform\win\WebCoreSystemInterface.cpp"\r
-                                       >\r
-                               </File>\r
-                               <File\r
-                                       RelativePath="..\platform\win\WebCoreSystemInterface.h"\r
-                                       >\r
-                               </File>\r
-                               <File\r
                                        RelativePath="..\platform\win\WebCoreTextRenderer.cpp"\r
                                        >\r
                                </File>\r
index 8bfb1a6..5958d86 100644 (file)
 #include "PDFDocumentImage.h"
 #include "PlatformString.h"
 #include <ApplicationServices/ApplicationServices.h>
+
+#if PLATFORM(MAC)
 #include "WebCoreSystemInterface.h"
+#endif
 
 #if PLATFORM(WIN)
 #include <WebKitSystemInterface/WebKitSystemInterface.h>
index 180138c..076e18d 100644 (file)
 #include "AffineTransform.h"
 #include "NotImplemented.h"
 #include "Path.h"
+#include <CoreGraphics/CGBitmapContext.h>
 #include <WebKitSystemInterface/WebKitSystemInterface.h>
 #include <wtf/MathExtras.h>
 
 #include "GraphicsContextPlatformPrivate.h"
-#include "WebCoreSystemInterface.h"
 
 using namespace std;
 
diff --git a/WebCore/platform/win/WebCoreSystemInterface.cpp b/WebCore/platform/win/WebCoreSystemInterface.cpp
deleted file mode 100644 (file)
index 6a938bc..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include "config.h"
-#include "WebCoreSystemInterface.h"
-
-extern "C" CGAffineTransform CGContextGetBaseCTM(CGContextRef c);
-
-void wkSetPatternPhaseInUserSpace(CGContextRef context, CGPoint phasePoint)
-{
-    CGAffineTransform userToBase = CGAffineTransformConcat(CGContextGetCTM(context),
-        CGAffineTransformInvert(CGContextGetBaseCTM(context)));
-    CGPoint phase = CGPointApplyAffineTransform(phasePoint, userToBase);
-            
-    CGContextSetPatternPhase(context, CGSizeMake(phase.x, phase.y));
-}
diff --git a/WebCore/platform/win/WebCoreSystemInterface.h b/WebCore/platform/win/WebCoreSystemInterface.h
deleted file mode 100644 (file)
index 8fbf16c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include <ApplicationServices/ApplicationServices.h>
-
-void wkSetPatternPhaseInUserSpace(CGContextRef context, CGPoint phasePoint);
index 24fcc59..e5ac49c 100644 (file)
@@ -1,3 +1,14 @@
+2007-11-23  Adam Roben  <aroben@apple.com>
+
+        Add wkSetPatternPhaseInUserSpace to WebKitSystemInterface on Windows
+
+        Reviewed by Tim.
+
+        * win/include/WebKitSystemInterface/WebKitSystemInterface.h: Added
+        declaration.
+        * win/lib/WebKitSystemInterface.lib: Updated.
+        * win/lib/WebKitSystemInterface_debug.lib: Updated.
+
 2007-11-16  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Adam.
index 932d8ae..377f45b 100644 (file)
@@ -27,6 +27,7 @@
 #define WebKitSystemInterface_h
 
 struct CGAffineTransform;
+struct CGPoint;
 struct CGSize;
 
 typedef const struct __CFData* CFDataRef;
@@ -54,6 +55,7 @@ void wkAddFontsFromPlistRepresentation(CFDataRef);
 CFDataRef wkCreateFontsPlistRepresentation();
 
 void wkSetPatternBaseCTM(CGContextRef, CGAffineTransform);
+void wkSetPatternPhaseInUserSpace(CGContextRef, CGPoint phasePoint);
 
 void wkDrawFocusRing(CGContextRef, CGColorRef, float radius);
 
index 839b090..33bda61 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface.lib differ
index 76e1cb9..a292706 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib differ