Changeset 84088 in webkit
- Timestamp:
- Apr 16, 2011 3:37:01 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r84081 r84088 1 2011-04-16 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Rename PLATFORM(CAIRO) to USE(CAIRO) 6 https://bugs.webkit.org/show_bug.cgi?id=55192 7 8 * wtf/Platform.h: 9 * wtf/gobject/GTypedefs.h: 10 1 11 2011-04-15 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/JavaScriptCore/wtf/Platform.h
r83997 r84088 566 566 567 567 #if PLATFORM(GTK) 568 #define WTF_ PLATFORM_CAIRO 1568 #define WTF_USE_CAIRO 1 569 569 #endif 570 570 -
trunk/Source/JavaScriptCore/wtf/gobject/GTypedefs.h
r77148 r84088 62 62 typedef union _GdkEvent GdkEvent; 63 63 64 #if PLATFORM(CAIRO)64 #if USE(CAIRO) 65 65 typedef struct _cairo_surface cairo_surface_t; 66 66 #endif -
trunk/Source/WebCore/CMakeListsEfl.txt
r83945 r84088 76 76 ) 77 77 78 IF (WTF_ PLATFORM_CAIRO)78 IF (WTF_USE_CAIRO) 79 79 LIST(APPEND WebCore_INCLUDE_DIRECTORIES 80 80 "${WEBCORE_DIR}/platform/graphics/cairo" -
trunk/Source/WebCore/ChangeLog
r84087 r84088 1 2011-04-16 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Rename PLATFORM(CAIRO) to USE(CAIRO) 6 https://bugs.webkit.org/show_bug.cgi?id=55192 7 8 * CMakeListsEfl.txt: 9 * config.h: 10 * platform/MIMETypeRegistry.cpp: 11 (WebCore::initializeSupportedImageMIMETypesForEncoding): 12 * platform/graphics/ContextShadow.h: 13 * platform/graphics/DashArray.h: 14 * platform/graphics/FloatRect.h: 15 * platform/graphics/FontPlatformData.h: 16 (WebCore::FontPlatformData::FontPlatformData): 17 (WebCore::FontPlatformData::hash): 18 (WebCore::FontPlatformData::isHashTableDeletedValue): 19 * platform/graphics/GlyphBuffer.h: 20 (WebCore::GlyphBuffer::glyphAt): 21 (WebCore::GlyphBuffer::add): 22 * platform/graphics/Gradient.cpp: 23 * platform/graphics/Gradient.h: 24 * platform/graphics/GraphicsContext.cpp: 25 * platform/graphics/GraphicsContext.h: 26 (WebCore::GraphicsContextState::GraphicsContextState): 27 * platform/graphics/GraphicsContext3D.h: 28 * platform/graphics/ImageBufferData.h: 29 * platform/graphics/ImageSource.h: 30 * platform/graphics/Path.h: 31 * platform/graphics/Pattern.h: 32 * platform/graphics/SimpleFontData.h: 33 * platform/graphics/cairo/DrawErrorUnderline.h: 34 * platform/graphics/cairo/GraphicsContextCairo.cpp: 35 * platform/graphics/cairo/ImageCairo.cpp: 36 * platform/graphics/gstreamer/ImageGStreamer.h: 37 * platform/graphics/transforms/AffineTransform.h: 38 * platform/graphics/transforms/TransformationMatrix.h: 39 * platform/graphics/win/FontCacheWin.cpp: 40 (WebCore::createGDIFont): 41 (WebCore::FontCache::createFontPlatformData): 42 * platform/graphics/win/FontPlatformDataWin.cpp: 43 (WebCore::FontPlatformData::FontPlatformData): 44 * platform/graphics/win/GraphicsContextWin.cpp: 45 * plugins/win/PluginViewWin.cpp: 46 (WebCore::PluginView::paintWindowedPluginIntoContext): 47 * rendering/RenderObject.h: 48 1 49 2011-04-16 Patrick Gansterer <paroga@webkit.org> 2 50 -
trunk/Source/WebCore/config.h
r83121 r84088 179 179 #if defined(WIN_CAIRO) 180 180 #undef WTF_PLATFORM_CG 181 #define WTF_ PLATFORM_CAIRO 1181 #define WTF_USE_CAIRO 1 182 182 #define WTF_USE_CURL 1 183 183 #ifndef _WINSOCKAPI_ … … 186 186 #elif !OS(WINCE) 187 187 #define WTF_PLATFORM_CG 1 188 #undef WTF_ PLATFORM_CAIRO188 #undef WTF_USE_CAIRO 189 189 #undef WTF_USE_CURL 190 190 #endif -
trunk/Source/WebCore/platform/MIMETypeRegistry.cpp
r82492 r84088 165 165 supportedImageMIMETypesForEncoding->add("image/bmp"); 166 166 supportedImageMIMETypesForEncoding->add("image/ico"); 167 #elif PLATFORM(CAIRO)167 #elif USE(CAIRO) 168 168 supportedImageMIMETypesForEncoding->add("image/png"); 169 169 #endif -
trunk/Source/WebCore/platform/graphics/ContextShadow.h
r81230 r84088 35 35 #include <wtf/RefCounted.h> 36 36 37 #if PLATFORM(CAIRO)37 #if USE(CAIRO) 38 38 typedef struct _cairo cairo_t; 39 39 typedef struct _cairo_surface cairo_surface_t; … … 50 50 class GraphicsContext; 51 51 52 #if PLATFORM(CAIRO)52 #if USE(CAIRO) 53 53 typedef cairo_surface_t* PlatformImage; 54 54 typedef cairo_t* PlatformContext; … … 117 117 void setShadowsIgnoreTransforms(bool enable) { m_shadowsIgnoreTransforms = enable; } 118 118 bool shadowsIgnoreTransforms() const { return m_shadowsIgnoreTransforms; } 119 #if PLATFORM(CAIRO)119 #if USE(CAIRO) 120 120 void drawRectShadow(GraphicsContext* context, const IntRect& rect, const IntSize& topLeftRadius = IntSize(), const IntSize& topRightRadius = IntSize(), const IntSize& bottomLeftRadius = IntSize(), const IntSize& bottomRightRadius = IntSize()); 121 121 #endif … … 136 136 IntRect calculateLayerBoundingRect(GraphicsContext*, const FloatRect& layerArea, const IntRect& clipRect); 137 137 138 #if PLATFORM(CAIRO)138 #if USE(CAIRO) 139 139 void drawRectShadowWithoutTiling(GraphicsContext*, const IntRect& shadowRect, const IntSize& topLeftRadius, const IntSize& topRightRadius, const IntSize& bottomLeftRadius, const IntSize& bottomRightRadius, float alpha); 140 140 #endif -
trunk/Source/WebCore/platform/graphics/DashArray.h
r36734 r84088 31 31 #if PLATFORM(CG) 32 32 typedef Vector<CGFloat> DashArray; 33 #elif PLATFORM(CAIRO)33 #elif USE(CAIRO) 34 34 typedef Vector<double> DashArray; 35 35 #else -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r83818 r84088 60 60 #endif 61 61 62 #if PLATFORM(CAIRO)62 #if USE(CAIRO) 63 63 typedef struct _cairo_rectangle cairo_rectangle_t; 64 64 #endif … … 174 174 #endif 175 175 176 #if PLATFORM(CAIRO)176 #if USE(CAIRO) 177 177 FloatRect(const cairo_rectangle_t&); 178 178 operator cairo_rectangle_t() const; -
trunk/Source/WebCore/platform/graphics/FontPlatformData.h
r83805 r84088 50 50 #endif 51 51 52 #if PLATFORM(CAIRO)52 #if USE(CAIRO) 53 53 #include "HashFunctions.h" 54 54 #include <cairo.h> … … 120 120 #if PLATFORM(CG) && (defined(BUILDING_ON_TIGER) || PLATFORM(WIN)) 121 121 , m_cgFont(0) 122 #elif PLATFORM(CAIRO)122 #elif USE(CAIRO) 123 123 , m_scaledFont(hashTableDeletedFontValue()) 124 124 #endif … … 142 142 #if PLATFORM(CG) && (defined(BUILDING_ON_TIGER) || PLATFORM(WIN)) 143 143 , m_cgFont(0) 144 #elif PLATFORM(CAIRO)144 #elif USE(CAIRO) 145 145 , m_scaledFont(0) 146 146 #endif … … 167 167 #if PLATFORM(CG) && (defined(BUILDING_ON_TIGER) || PLATFORM(WIN)) 168 168 , m_cgFont(0) 169 #elif PLATFORM(CAIRO)169 #elif USE(CAIRO) 170 170 , m_scaledFont(0) 171 171 #endif … … 202 202 #endif 203 203 #endif 204 #if PLATFORM(CAIRO)204 #if USE(CAIRO) 205 205 FontPlatformData(cairo_font_face_t*, float size, bool bold, bool italic); 206 206 #endif … … 244 244 void setOrientation(FontOrientation orientation) { m_orientation = orientation; } 245 245 246 #if PLATFORM(CAIRO)246 #if USE(CAIRO) 247 247 cairo_scaled_font_t* scaledFont() const { return m_scaledFont; } 248 248 #endif … … 250 250 unsigned hash() const 251 251 { 252 #if PLATFORM(WIN) && ! PLATFORM(CAIRO)252 #if PLATFORM(WIN) && !USE(CAIRO) 253 253 return m_font ? m_font->hash() : 0; 254 254 #elif OS(DARWIN) … … 258 258 uintptr_t hashCodes[3] = { (uintptr_t)m_font, m_widthVariant, m_textOrientation << 3 | m_orientation << 2 | m_syntheticBold << 1 | m_syntheticOblique }; 259 259 return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes); 260 #elif PLATFORM(CAIRO)260 #elif USE(CAIRO) 261 261 return PtrHash<cairo_scaled_font_t*>::hash(m_scaledFont); 262 262 #endif … … 279 279 bool isHashTableDeletedValue() const 280 280 { 281 #if PLATFORM(WIN) && ! PLATFORM(CAIRO)281 #if PLATFORM(WIN) && !USE(CAIRO) 282 282 return m_font.isHashTableDeletedValue(); 283 283 #elif OS(DARWIN) 284 284 return m_font == hashTableDeletedFontValue(); 285 #elif PLATFORM(CAIRO)285 #elif USE(CAIRO) 286 286 return m_scaledFont == hashTableDeletedFontValue(); 287 287 #endif … … 310 310 #endif 311 311 312 #if PLATFORM(CAIRO)312 #if USE(CAIRO) 313 313 static cairo_scaled_font_t* hashTableDeletedFontValue() { return reinterpret_cast<cairo_scaled_font_t*>(-1); } 314 314 #endif … … 342 342 #endif 343 343 344 #if PLATFORM(CAIRO)344 #if USE(CAIRO) 345 345 cairo_scaled_font_t* m_scaledFont; 346 346 #endif -
trunk/Source/WebCore/platform/graphics/GlyphBuffer.h
r83805 r84088 39 39 #endif 40 40 41 #if PLATFORM(CAIRO) || (PLATFORM(WX) && defined(__WXGTK__))41 #if USE(CAIRO) || (PLATFORM(WX) && defined(__WXGTK__)) 42 42 #include <cairo.h> 43 43 #endif … … 48 48 class SimpleFontData; 49 49 50 #if PLATFORM(CAIRO)50 #if USE(CAIRO) 51 51 // FIXME: Why does Cairo use such a huge struct instead of just an offset into an array? 52 52 typedef cairo_glyph_t GlyphBufferGlyph; … … 114 114 Glyph glyphAt(int index) const 115 115 { 116 #if PLATFORM(CAIRO)116 #if USE(CAIRO) 117 117 return m_glyphs[index].index; 118 118 #else … … 146 146 m_fontData.append(font); 147 147 148 #if PLATFORM(CAIRO)148 #if USE(CAIRO) 149 149 cairo_glyph_t cairoGlyph; 150 150 cairoGlyph.index = glyph; … … 177 177 { 178 178 m_fontData.append(font); 179 #if PLATFORM(CAIRO)179 #if USE(CAIRO) 180 180 cairo_glyph_t cairoGlyph; 181 181 cairoGlyph.index = glyph; -
trunk/Source/WebCore/platform/graphics/Gradient.cpp
r79578 r84088 222 222 } 223 223 224 #if !USE(SKIA) && ! PLATFORM(CAIRO)224 #if !USE(SKIA) && !USE(CAIRO) 225 225 void Gradient::setPlatformGradientSpaceTransform(const AffineTransform&) 226 226 { -
trunk/Source/WebCore/platform/graphics/Gradient.h
r79578 r84088 55 55 QT_END_NAMESPACE 56 56 typedef QGradient* PlatformGradient; 57 #elif PLATFORM(CAIRO)57 #elif USE(CAIRO) 58 58 typedef struct _cairo_pattern cairo_pattern_t; 59 59 typedef cairo_pattern_t* PlatformGradient; -
trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp
r83240 r84088 687 687 #endif 688 688 689 #if !PLATFORM(QT) && ! PLATFORM(CAIRO) && !USE(SKIA) && !PLATFORM(HAIKU) && !PLATFORM(OPENVG)689 #if !PLATFORM(QT) && !USE(CAIRO) && !USE(SKIA) && !PLATFORM(HAIKU) && !PLATFORM(OPENVG) 690 690 void GraphicsContext::setPlatformStrokeStyle(StrokeStyle) 691 691 { -
trunk/Source/WebCore/platform/graphics/GraphicsContext.h
r83216 r84088 40 40 #if PLATFORM(CG) 41 41 typedef struct CGContext PlatformGraphicsContext; 42 #elif PLATFORM(CAIRO)42 #elif USE(CAIRO) 43 43 namespace WebCore { 44 44 class ContextShadow; … … 155 155 : strokeThickness(0) 156 156 , shadowBlur(0) 157 #if PLATFORM(CAIRO)157 #if USE(CAIRO) 158 158 , globalAlpha(1) 159 159 #endif … … 190 190 float shadowBlur; 191 191 192 #if PLATFORM(CAIRO)192 #if USE(CAIRO) 193 193 float globalAlpha; 194 194 #endif … … 391 391 392 392 void setAlpha(float); 393 #if PLATFORM(CAIRO)393 #if USE(CAIRO) 394 394 float getAlpha(); 395 395 #endif … … 491 491 #endif 492 492 493 #if PLATFORM(QT) || PLATFORM(CAIRO)493 #if PLATFORM(QT) || USE(CAIRO) 494 494 ContextShadow* contextShadow(); 495 495 #endif 496 496 497 #if PLATFORM(CAIRO)497 #if USE(CAIRO) 498 498 GraphicsContext(cairo_t*); 499 499 #endif -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h
r83745 r84088 91 91 class Image; 92 92 class ImageData; 93 #if PLATFORM(CAIRO)93 #if USE(CAIRO) 94 94 class PlatformContextCairo; 95 95 #endif -
trunk/Source/WebCore/platform/graphics/ImageBufferData.h
r83786 r84088 26 26 #if PLATFORM(CG) 27 27 #include "ImageBufferDataCG.h" 28 #elif PLATFORM(CAIRO)28 #elif USE(CAIRO) 29 29 #include "ImageBufferDataCairo.h" 30 30 #elif PLATFORM(QT) -
trunk/Source/WebCore/platform/graphics/ImageSource.h
r79578 r84088 44 44 class QPixmap; 45 45 QT_END_NAMESPACE 46 #elif PLATFORM(CAIRO)46 #elif USE(CAIRO) 47 47 struct _cairo_surface; 48 48 typedef struct _cairo_surface cairo_surface_t; … … 89 89 typedef wxBitmap* NativeImagePtr; 90 90 #endif 91 #elif PLATFORM(CAIRO)91 #elif USE(CAIRO) 92 92 typedef cairo_surface_t* NativeImagePtr; 93 93 #elif USE(SKIA) -
trunk/Source/WebCore/platform/graphics/Path.h
r80557 r84088 45 45 class wxGraphicsPath; 46 46 typedef wxGraphicsPath PlatformPath; 47 #elif PLATFORM(CAIRO)47 #elif USE(CAIRO) 48 48 namespace WebCore { 49 49 class CairoPath; -
trunk/Source/WebCore/platform/graphics/Pattern.h
r79578 r84088 39 39 typedef struct CGPattern* CGPatternRef; 40 40 typedef CGPatternRef PlatformPatternPtr; 41 #elif PLATFORM(CAIRO)41 #elif USE(CAIRO) 42 42 #include <cairo.h> 43 43 typedef cairo_pattern_t* PlatformPatternPtr; -
trunk/Source/WebCore/platform/graphics/SimpleFontData.h
r83805 r84088 49 49 #endif 50 50 51 #if PLATFORM(CAIRO)51 #if USE(CAIRO) 52 52 #include <cairo.h> 53 53 #endif … … 116 116 float spaceWidth() const { return m_spaceWidth; } 117 117 118 #if PLATFORM(CG) || PLATFORM(CAIRO) || PLATFORM(WX) || USE(SKIA_ON_MAC_CHROME)118 #if PLATFORM(CG) || USE(CAIRO) || PLATFORM(WX) || USE(SKIA_ON_MAC_CHROME) 119 119 float syntheticBoldOffset() const { return m_syntheticBoldOffset; } 120 120 #endif … … 253 253 mutable OwnPtr<DerivedFontData> m_derivedFontData; 254 254 255 #if PLATFORM(CG) || PLATFORM(CAIRO) || PLATFORM(WX) || USE(SKIA_ON_MAC_CHROME)255 #if PLATFORM(CG) || USE(CAIRO) || PLATFORM(WX) || USE(SKIA_ON_MAC_CHROME) 256 256 float m_syntheticBoldOffset; 257 257 #endif -
trunk/Source/WebCore/platform/graphics/cairo/DrawErrorUnderline.h
r75971 r84088 22 22 */ 23 23 24 #if PLATFORM(CAIRO)24 #if USE(CAIRO) 25 25 26 26 #ifndef DrawErrorUnderline_h -
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
r83945 r84088 33 33 #include "GraphicsContext.h" 34 34 35 #if PLATFORM(CAIRO)35 #if USE(CAIRO) 36 36 37 37 #include "AffineTransform.h" … … 1183 1183 } // namespace WebCore 1184 1184 1185 #endif // PLATFORM(CAIRO)1185 #endif // USE(CAIRO) -
trunk/Source/WebCore/platform/graphics/cairo/ImageCairo.cpp
r82962 r84088 29 29 #include "BitmapImage.h" 30 30 31 #if PLATFORM(CAIRO)31 #if USE(CAIRO) 32 32 33 33 #include "AffineTransform.h" … … 206 206 } 207 207 208 #endif // PLATFORM(CAIRO)208 #endif // USE(CAIRO) -
trunk/Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h
r72184 r84088 28 28 #include <wtf/PassRefPtr.h> 29 29 30 #if PLATFORM(CAIRO)30 #if USE(CAIRO) 31 31 #include <cairo.h> 32 32 #endif … … 49 49 RefPtr<BitmapImage> m_image; 50 50 51 #if PLATFORM(CAIRO)51 #if USE(CAIRO) 52 52 ImageGStreamer(GstBuffer*&, IntSize, cairo_format_t&); 53 53 #endif -
trunk/Source/WebCore/platform/graphics/transforms/AffineTransform.h
r79578 r84088 35 35 #if PLATFORM(CG) 36 36 #include <CoreGraphics/CGAffineTransform.h> 37 #elif PLATFORM(CAIRO)37 #elif USE(CAIRO) 38 38 #include <cairo.h> 39 39 #elif PLATFORM(OPENVG) … … 160 160 #if PLATFORM(CG) 161 161 operator CGAffineTransform() const; 162 #elif PLATFORM(CAIRO)162 #elif USE(CAIRO) 163 163 operator cairo_matrix_t() const; 164 164 #elif PLATFORM(OPENVG) -
trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h
r80260 r84088 37 37 #if PLATFORM(CG) 38 38 typedef struct CGAffineTransform CGAffineTransform; 39 #elif PLATFORM(CAIRO)39 #elif USE(CAIRO) 40 40 #include <cairo.h> 41 41 #elif PLATFORM(OPENVG) … … 316 316 TransformationMatrix(const CGAffineTransform&); 317 317 operator CGAffineTransform() const; 318 #elif PLATFORM(CAIRO)318 #elif USE(CAIRO) 319 319 operator cairo_matrix_t() const; 320 320 #elif PLATFORM(OPENVG) -
trunk/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
r82314 r84088 472 472 matchData.m_chosen.lfStrikeOut = false; 473 473 matchData.m_chosen.lfCharSet = DEFAULT_CHARSET; 474 #if PLATFORM(CG) || PLATFORM(CAIRO)474 #if PLATFORM(CG) || USE(CAIRO) 475 475 matchData.m_chosen.lfOutPrecision = OUT_TT_ONLY_PRECIS; 476 476 #else … … 584 584 #if PLATFORM(CG) 585 585 bool fontCreationFailed = !result->cgFont(); 586 #elif PLATFORM(CAIRO)586 #elif USE(CAIRO) 587 587 bool fontCreationFailed = !result->scaledFont(); 588 588 #endif -
trunk/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
r82314 r84088 44 44 #if PLATFORM(CG) 45 45 , m_cgFont(0) 46 #elif PLATFORM(CAIRO)46 #elif USE(CAIRO) 47 47 , m_scaledFont(0) 48 48 #endif -
trunk/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp
r82640 r84088 29 29 #if PLATFORM(CG) 30 30 #include "GraphicsContextPlatformPrivateCG.h" 31 #elif PLATFORM(CAIRO)31 #elif USE(CAIRO) 32 32 #include "GraphicsContextPlatformPrivateCairo.h" 33 33 #endif -
trunk/Source/WebCore/plugins/win/PluginViewWin.cpp
r82962 r84088 83 83 #endif 84 84 85 #if PLATFORM(CAIRO)85 #if USE(CAIRO) 86 86 #include "PlatformContextCairo.h" 87 87 #include <cairo-win32.h> … … 570 570 LocalWindowsContext windowsContext(context, frameRect(), false); 571 571 572 #if PLATFORM(CAIRO)572 #if USE(CAIRO) 573 573 // Must flush drawings up to this point to the backing metafile, otherwise the 574 574 // plugin region will be overwritten with any clear regions specified in the -
trunk/Source/WebCore/rendering/RenderObject.h
r83221 r84088 38 38 #include <wtf/UnusedParam.h> 39 39 40 #if PLATFORM(CG) || PLATFORM(CAIRO) || PLATFORM(QT)40 #if PLATFORM(CG) || USE(CAIRO) || PLATFORM(QT) 41 41 #define HAVE_PATH_BASED_BORDER_RADIUS_DRAWING 1 42 42 #endif -
trunk/Source/WebKit/win/ChangeLog
r83852 r84088 1 2011-04-16 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Rename PLATFORM(CAIRO) to USE(CAIRO) 6 https://bugs.webkit.org/show_bug.cgi?id=55192 7 8 * WebFrame.cpp: 9 (WebFrame::spoolPages): 10 * WebFrame.h: 11 1 12 2011-04-14 Adam Roben <aroben@apple.com> 2 13 -
trunk/Source/WebKit/win/WebFrame.cpp
r82962 r84088 107 107 #if PLATFORM(CG) 108 108 #include <CoreGraphics/CoreGraphics.h> 109 #elif PLATFORM(CAIRO)109 #elif USE(CAIRO) 110 110 #include "PlatformContextCairo.h" 111 111 #include <cairo-win32.h> … … 2168 2168 CGContextRestoreGState(pctx); 2169 2169 } 2170 #elif PLATFORM(CAIRO)2170 #elif USE(CAIRO) 2171 2171 static float scaleFactor(HDC printDC, const IntRect& marginRect, const IntRect& pageRect) 2172 2172 { … … 2326 2326 return E_POINTER; 2327 2327 } 2328 #elif PLATFORM(CAIRO)2328 #elif USE(CAIRO) 2329 2329 if (!printDC) { 2330 2330 ASSERT_NOT_REACHED(); … … 2397 2397 spoolPage(pctx, &spoolCtx, printDC, ui.get(), headerHeight, footerHeight, ii, pageCount); 2398 2398 2399 #if PLATFORM(CAIRO)2399 #if USE(CAIRO) 2400 2400 cairo_surface_finish(printSurface); 2401 2401 ASSERT(!cairo_surface_status(printSurface)); -
trunk/Source/WebKit/win/WebFrame.h
r82962 r84088 62 62 #if PLATFORM(CG) 63 63 typedef struct CGContext PlatformGraphicsContext; 64 #elif PLATFORM(CAIRO)64 #elif USE(CAIRO) 65 65 namespace WebCore { 66 66 class PlatformContextCairo; -
trunk/Tools/ChangeLog
r84086 r84088 1 2011-04-16 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Rename PLATFORM(CAIRO) to USE(CAIRO) 6 https://bugs.webkit.org/show_bug.cgi?id=55192 7 8 * DumpRenderTree/PixelDumpSupport.cpp: 9 * DumpRenderTree/config.h: 10 * DumpRenderTree/win/PixelDumpSupportWin.cpp: 11 (createBitmapContextFromWebView): 12 * WebKitTestRunner/config.h: 13 1 14 2011-04-16 Ojan Vafai <ojan@chromium.org> 2 15 -
trunk/Tools/DumpRenderTree/PixelDumpSupport.cpp
r83461 r84088 40 40 #if PLATFORM(CG) 41 41 #include "PixelDumpSupportCG.h" 42 #elif PLATFORM(CAIRO)42 #elif USE(CAIRO) 43 43 #include "PixelDumpSupportCairo.h" 44 44 #endif -
trunk/Tools/DumpRenderTree/config.h
r83121 r84088 75 75 #define WTF_USE_CF 1 76 76 #if defined(WIN_CAIRO) 77 #define WTF_ PLATFORM_CAIRO 177 #define WTF_USE_CAIRO 1 78 78 #define WTF_USE_CURL 1 79 79 #else -
trunk/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
r71516 r84088 31 31 #if PLATFORM(CG) 32 32 #include "PixelDumpSupportCG.h" 33 #elif PLATFORM(CAIRO)33 #elif USE(CAIRO) 34 34 #include "PixelDumpSupportCairo.h" 35 35 #endif … … 75 75 CGContextRef context = CGBitmapContextCreate(info.bmBits, info.bmWidth, info.bmHeight, 8, 76 76 info.bmWidthBytes, colorSpace.get(), kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedFirst); 77 #elif PLATFORM(CAIRO)77 #elif USE(CAIRO) 78 78 cairo_surface_t* image = cairo_image_surface_create_for_data((unsigned char*)info.bmBits, CAIRO_FORMAT_ARGB32, 79 79 info.bmWidth, info.bmHeight, info.bmWidthBytes); -
trunk/Tools/WebKitTestRunner/config.h
r83121 r84088 58 58 #define WTF_USE_CF 1 59 59 #if defined(WIN_CAIRO) 60 #define WTF_ PLATFORM_CAIRO 160 #define WTF_USE_CAIRO 1 61 61 #define WTF_USE_CURL 1 62 62 #else
Note: See TracChangeset
for help on using the changeset viewer.