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
+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
-<?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
RelativePath="..\platform\win\WebCoreHistory.h"\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
#include "PDFDocumentImage.h"
#include "PlatformString.h"
#include <ApplicationServices/ApplicationServices.h>
+
+#if PLATFORM(MAC)
#include "WebCoreSystemInterface.h"
+#endif
#if PLATFORM(WIN)
#include <WebKitSystemInterface/WebKitSystemInterface.h>
#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;
+++ /dev/null
-/*
- * 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));
-}
+++ /dev/null
-/*
- * 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);
+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.
#define WebKitSystemInterface_h
struct CGAffineTransform;
+struct CGPoint;
struct CGSize;
typedef const struct __CFData* CFDataRef;
CFDataRef wkCreateFontsPlistRepresentation();
void wkSetPatternBaseCTM(CGContextRef, CGAffineTransform);
+void wkSetPatternPhaseInUserSpace(CGContextRef, CGPoint phasePoint);
void wkDrawFocusRing(CGContextRef, CGColorRef, float radius);