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:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95487
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2011-09-19 Adam Barth <abarth@webkit.org>
+ Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
+ https://bugs.webkit.org/show_bug.cgi?id=68292
+
+ Reviewed by Eric Seidel.
+
+ 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):
+
+2011-09-19 Adam Barth <abarth@webkit.org>
+
Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code
https://bugs.webkit.org/show_bug.cgi?id=68407
#include "WOFFFileFormat.h"
#include <zlib.h>
-#if !ENABLE(OPENTYPE_SANITIZER)
+#if !USE(OPENTYPE_SANITIZER)
#include "SharedBuffer.h"
} // namespace WebCore
-#endif // !ENABLE(OPENTYPE_SANITIZER)
+#endif // !USE(OPENTYPE_SANITIZER)
#ifndef WOFFFileFormat_h
#define WOFFFileFormat_h
-#if !ENABLE(OPENTYPE_SANITIZER)
+#if !USE(OPENTYPE_SANITIZER)
#include <wtf/Vector.h>
} // namespace WebCore
-#endif // !ENABLE(OPENTYPE_SANITIZER)
+#endif // !USE(OPENTYPE_SANITIZER)
#endif // WOFFFileFormat_h
{
ASSERT_ARG(buffer, buffer);
-#if ENABLE(OPENTYPE_SANITIZER)
+#if USE(OPENTYPE_SANITIZER)
OpenTypeSanitizer sanitizer(buffer);
RefPtr<SharedBuffer> transcodeBuffer = sanitizer.sanitize();
if (!transcodeBuffer)
*/
#include "config.h"
-#if ENABLE(OPENTYPE_SANITIZER)
+#if USE(OPENTYPE_SANITIZER)
#include "OpenTypeSanitizer.h"
#include "SharedBuffer.h"
} // namespace WebCore
-#endif // ENABLE(OPENTYPE_SANITIZER)
+#endif // USE(OPENTYPE_SANITIZER)
#ifndef OpenTypeSanitizer_h
#define OpenTypeSanitizer_h
-#if ENABLE(OPENTYPE_SANITIZER)
+#if USE(OPENTYPE_SANITIZER)
#include <wtf/Forward.h>
namespace WebCore {
} // namespace WebCore
-#endif // ENABLE(OPENTYPE_SANITIZER)
+#endif // USE(OPENTYPE_SANITIZER)
#endif // OpenTypeSanitizer_h
{
ASSERT_ARG(buffer, buffer);
-#if ENABLE(OPENTYPE_SANITIZER)
+#if USE(OPENTYPE_SANITIZER)
OpenTypeSanitizer sanitizer(buffer);
RefPtr<SharedBuffer> transcodeBuffer = sanitizer.sanitize();
if (!transcodeBuffer)
bool FontCustomPlatformData::supportsFormat(const String& format)
{
return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "opentype")
-#if ENABLE(OPENTYPE_SANITIZER)
+#if USE(OPENTYPE_SANITIZER)
|| equalIgnoringCase(format, "woff")
#endif
;
+2011-09-19 Adam Barth <abarth@webkit.org>
+
+ Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
+ https://bugs.webkit.org/show_bug.cgi?id=68292
+
+ Reviewed by Eric Seidel.
+
+ * features.gypi:
+
2011-09-19 Sheriff Bot <webkit.review.bot@gmail.com>
Unreviewed, rolling out r95385 and r95457.
'ENABLE_MHTML=1',
'ENABLE_NOTIFICATIONS=1',
'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
- 'ENABLE_OPENTYPE_SANITIZER=1',
'ENABLE_ORIENTATION_EVENTS=0',
'ENABLE_PAGE_VISIBILITY_API=1',
'ENABLE_PROGRESS_TAG=1',
# WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi
# We can't define it here because it should be present only
# in Debug or release_valgrind_build=1 builds.
+ 'WTF_USE_OPENTYPE_SANITIZER=1',
'WTF_USE_WEBP=1',
'WTF_USE_WEBKIT_IMAGE_DECODERS=1',
],