Changeset 95487 in webkit


Ignore:
Timestamp:
Sep 19, 2011 3:54:53 PM (13 years ago)
Author:
abarth@webkit.org
Message:

Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
https://bugs.webkit.org/show_bug.cgi?id=68292

Reviewed by Eric Seidel.

Source/WebCore:

OpenType Sanitizer is a library for sanitizing type and not a feature.
Therefore this macro should say that we USE the library.

  • platform/graphics/WOFFFileFormat.cpp:
  • platform/graphics/WOFFFileFormat.h:
  • platform/graphics/mac/FontCustomPlatformData.cpp:

(WebCore::createFontCustomPlatformData):

  • platform/graphics/opentype/OpenTypeSanitizer.cpp:
  • platform/graphics/opentype/OpenTypeSanitizer.h:
  • platform/graphics/skia/FontCustomPlatformData.cpp:

(WebCore::createFontCustomPlatformData):
(WebCore::FontCustomPlatformData::supportsFormat):

Source/WebKit/chromium:

  • features.gypi:
Location:
trunk/Source
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95486 r95487  
     12011-09-19  Adam Barth  <abarth@webkit.org>
     2
     3        Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
     4        https://bugs.webkit.org/show_bug.cgi?id=68292
     5
     6        Reviewed by Eric Seidel.
     7
     8        OpenType Sanitizer is a library for sanitizing type and not a feature.
     9        Therefore this macro should say that we USE the library.
     10
     11        * platform/graphics/WOFFFileFormat.cpp:
     12        * platform/graphics/WOFFFileFormat.h:
     13        * platform/graphics/mac/FontCustomPlatformData.cpp:
     14        (WebCore::createFontCustomPlatformData):
     15        * platform/graphics/opentype/OpenTypeSanitizer.cpp:
     16        * platform/graphics/opentype/OpenTypeSanitizer.h:
     17        * platform/graphics/skia/FontCustomPlatformData.cpp:
     18        (WebCore::createFontCustomPlatformData):
     19        (WebCore::FontCustomPlatformData::supportsFormat):
     20
    1212011-09-19  Adam Barth  <abarth@webkit.org>
    222
  • trunk/Source/WebCore/platform/graphics/WOFFFileFormat.cpp

    r84061 r95487  
    2828#include <zlib.h>
    2929
    30 #if !ENABLE(OPENTYPE_SANITIZER)
     30#if !USE(OPENTYPE_SANITIZER)
    3131
    3232#include "SharedBuffer.h"
     
    252252} // namespace WebCore
    253253
    254 #endif // !ENABLE(OPENTYPE_SANITIZER)
     254#endif // !USE(OPENTYPE_SANITIZER)
  • trunk/Source/WebCore/platform/graphics/WOFFFileFormat.h

    r64434 r95487  
    2727#define WOFFFileFormat_h
    2828
    29 #if !ENABLE(OPENTYPE_SANITIZER)
     29#if !USE(OPENTYPE_SANITIZER)
    3030
    3131#include <wtf/Vector.h>
     
    4444} // namespace WebCore
    4545
    46 #endif // !ENABLE(OPENTYPE_SANITIZER)
     46#endif // !USE(OPENTYPE_SANITIZER)
    4747
    4848#endif // WOFFFileFormat_h
  • trunk/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp

    r94838 r95487  
    9898    ASSERT_ARG(buffer, buffer);
    9999
    100 #if ENABLE(OPENTYPE_SANITIZER)
     100#if USE(OPENTYPE_SANITIZER)
    101101    OpenTypeSanitizer sanitizer(buffer);
    102102    RefPtr<SharedBuffer> transcodeBuffer = sanitizer.sanitize();
  • trunk/Source/WebCore/platform/graphics/opentype/OpenTypeSanitizer.cpp

    r58517 r95487  
    3030
    3131#include "config.h"
    32 #if ENABLE(OPENTYPE_SANITIZER)
     32#if USE(OPENTYPE_SANITIZER)
    3333#include "OpenTypeSanitizer.h"
    3434
     
    6767} // namespace WebCore
    6868
    69 #endif // ENABLE(OPENTYPE_SANITIZER)
     69#endif // USE(OPENTYPE_SANITIZER)
  • trunk/Source/WebCore/platform/graphics/opentype/OpenTypeSanitizer.h

    r51623 r95487  
    3232#define OpenTypeSanitizer_h
    3333
    34 #if ENABLE(OPENTYPE_SANITIZER)
     34#if USE(OPENTYPE_SANITIZER)
    3535#include <wtf/Forward.h>
    3636
     
    5454} // namespace WebCore
    5555
    56 #endif // ENABLE(OPENTYPE_SANITIZER)
     56#endif // USE(OPENTYPE_SANITIZER)
    5757#endif // OpenTypeSanitizer_h
  • trunk/Source/WebCore/platform/graphics/skia/FontCustomPlatformData.cpp

    r94838 r95487  
    171171    ASSERT_ARG(buffer, buffer);
    172172
    173 #if ENABLE(OPENTYPE_SANITIZER)
     173#if USE(OPENTYPE_SANITIZER)
    174174    OpenTypeSanitizer sanitizer(buffer);
    175175    RefPtr<SharedBuffer> transcodeBuffer = sanitizer.sanitize();
     
    204204{
    205205    return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "opentype")
    206 #if ENABLE(OPENTYPE_SANITIZER)
     206#if USE(OPENTYPE_SANITIZER)
    207207        || equalIgnoringCase(format, "woff")
    208208#endif
  • trunk/Source/WebKit/chromium/ChangeLog

    r95483 r95487  
     12011-09-19  Adam Barth  <abarth@webkit.org>
     2
     3        Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
     4        https://bugs.webkit.org/show_bug.cgi?id=68292
     5
     6        Reviewed by Eric Seidel.
     7
     8        * features.gypi:
     9
    1102011-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
    211
  • trunk/Source/WebKit/chromium/features.gypi

    r95373 r95487  
    6565      'ENABLE_NOTIFICATIONS=1',
    6666      'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
    67       'ENABLE_OPENTYPE_SANITIZER=1',
    6867      'ENABLE_ORIENTATION_EVENTS=0',
    6968      'ENABLE_PAGE_VISIBILITY_API=1',
     
    9594      # We can't define it here because it should be present only
    9695      # in Debug or release_valgrind_build=1 builds.
     96      'WTF_USE_OPENTYPE_SANITIZER=1',
    9797      'WTF_USE_WEBP=1',
    9898      'WTF_USE_WEBKIT_IMAGE_DECODERS=1',
Note: See TracChangeset for help on using the changeset viewer.