Changeset 147862 in webkit


Ignore:
Timestamp:
Apr 6, 2013 6:30:21 PM (11 years ago)
Author:
benjamin@webkit.org
Message:

Clean platform/graphics/cg of the chromium bits
https://bugs.webkit.org/show_bug.cgi?id=114106

Reviewed by Anders Carlsson.

  • platform/graphics/cg/BitmapImageCG.cpp:
  • platform/graphics/cg/GraphicsContextCG.cpp:

(WebCore::GraphicsContext::roundToDevicePixels):

  • platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:

(GraphicsContextPlatformPrivate):

  • platform/graphics/cg/ImageBufferCG.cpp:
  • platform/graphics/cg/ImageCG.cpp:
  • platform/graphics/cg/PathCG.cpp:
  • platform/graphics/cg/PatternCG.cpp:
Location:
trunk/Source/WebCore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147861 r147862  
     12013-04-06  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        Clean platform/graphics/cg of the chromium bits
     4        https://bugs.webkit.org/show_bug.cgi?id=114106
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/graphics/cg/BitmapImageCG.cpp:
     9        * platform/graphics/cg/GraphicsContextCG.cpp:
     10        (WebCore::GraphicsContext::roundToDevicePixels):
     11        * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
     12        (GraphicsContextPlatformPrivate):
     13        * platform/graphics/cg/ImageBufferCG.cpp:
     14        * platform/graphics/cg/ImageCG.cpp:
     15        * platform/graphics/cg/PathCG.cpp:
     16        * platform/graphics/cg/PatternCG.cpp:
     17
    1182013-04-06  Timothy Hatcher  <timothy@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp

    r147265 r147862  
    3636#include <wtf/RetainPtr.h>
    3737
    38 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     38#if PLATFORM(MAC)
    3939#include "WebCoreSystemInterface.h"
    4040#endif
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r147750 r147862  
    4646#include <wtf/UnusedParam.h>
    4747
    48 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     48#if PLATFORM(MAC)
    4949#include "WebCoreSystemInterface.h"
    5050#endif
     
    5454#endif
    5555
    56 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
     56#if PLATFORM(MAC)
    5757
    5858#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
     
    12981298FloatRect GraphicsContext::roundToDevicePixels(const FloatRect& rect, RoundingMode roundingMode)
    12991299{
    1300 #if PLATFORM(CHROMIUM)
    1301     return rect;
    1302 #else
    13031300    // It is not enough just to round to pixels in device space. The rotation part of the
    13041301    // affine transform matrix to device space can mess with this conversion if we have a
     
    13411338    FloatPoint roundedLowerRight = FloatPoint(deviceLowerRight.x / deviceScaleX, deviceLowerRight.y / deviceScaleY);
    13421339    return FloatRect(roundedOrigin, roundedLowerRight - roundedOrigin);
    1343 #endif
    13441340}
    13451341
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextPlatformPrivateCG.h

    r94897 r147862  
    5252    }
    5353
    54 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     54#if PLATFORM(MAC)
    5555    // These methods do nothing on Mac.
    5656    void save() {}
  • trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp

    r147622 r147862  
    4545#include <wtf/text/WTFString.h>
    4646
    47 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     47#if PLATFORM(MAC)
    4848#include "WebCoreSystemInterface.h"
    4949#endif
  • trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp

    r147710 r147862  
    3636#include <wtf/RetainPtr.h>
    3737
    38 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     38#if PLATFORM(MAC)
    3939#include "WebCoreSystemInterface.h"
    4040#endif
  • trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp

    r147710 r147862  
    4040#include <wtf/text/WTFString.h>
    4141
    42 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     42#if PLATFORM(MAC)
    4343#include "WebCoreSystemInterface.h"
    4444#endif
  • trunk/Source/WebCore/platform/graphics/cg/PatternCG.cpp

    r111143 r147862  
    3333#include <wtf/MainThread.h>
    3434
    35 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
     35#if PLATFORM(MAC)
    3636#include "WebCoreSystemInterface.h"
    3737#endif
Note: See TracChangeset for help on using the changeset viewer.