Commit baf40fdf authored by seangies's avatar seangies
Browse files

Removed #if's.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cdacf131
2006-09-26 Sean Gies <seangies@apple.com>
Reviewed by Brady Eidson.
* platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2006-09-26 Justin Garcia <justin.garcia@apple.com>
 
Reviewed by john
......@@ -33,10 +33,7 @@
#include "PDFDocumentImage.h"
#include "PlatformString.h"
#include <ApplicationServices/ApplicationServices.h>
#if PLATFORM(MAC)
#include "WebCoreSystemInterface.h"
#endif
namespace WebCore {
......@@ -252,10 +249,8 @@ void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const Fl
ctxt->save();
#if PLATFORM(MAC)
// FIXME: Really want a public API for this.
wkSetPatternPhaseInUserSpace(context, CGPointMake(oneTileRect.origin.x, oneTileRect.origin.y));
#endif
CGColorSpaceRef patternSpace = CGColorSpaceCreatePattern(NULL);
CGContextSetFillColorSpace(context, patternSpace);
......@@ -346,10 +341,8 @@ void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const Flo
if (vRule == Image::RepeatTile)
vPhase -= fmodf(ir.size.height, scaleY * tileSize.height) / 2.0f;
#if PLATFORM(MAC)
// FIXME: Really want a public API for this.
wkSetPatternPhaseInUserSpace(context, CGPointMake(ir.origin.x - hPhase, ir.origin.y - vPhase));
#endif
CGColorSpaceRef patternSpace = CGColorSpaceCreatePattern(NULL);
CGContextSetFillColorSpace(context, patternSpace);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment