Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: Source/WebCore/platform/graphics/SimpleFontData.h

Issue 13905007: Remove the last remaining PLATFORM() bits from WebCore. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fffffffffff Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/graphics/SimpleFontData.h
diff --git a/Source/WebCore/platform/graphics/SimpleFontData.h b/Source/WebCore/platform/graphics/SimpleFontData.h
index fc1839eab35e758bddea2f84b80e8d0fdedf60e4..967781de982b5e18ee8c6c426417ddf779856870 100644
--- a/Source/WebCore/platform/graphics/SimpleFontData.h
+++ b/Source/WebCore/platform/graphics/SimpleFontData.h
@@ -41,14 +41,10 @@
#include <wtf/UnusedParam.h>
#include <wtf/text/StringHash.h>
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
+#if OS(DARWIN)
#include <wtf/RetainPtr.h>
#endif
-#if PLATFORM(WIN) && !OS(WINCE)
-#include <usp10.h>
-#endif
-
namespace WebCore {
class FontDescription;
@@ -172,16 +168,16 @@ public:
virtual String description() const;
#endif
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
+#if OS(DARWIN)
const SimpleFontData* getCompositeFontReferenceFontData(NSFont *key) const;
NSFont* getNSFont() const { return m_platformData.font(); }
#endif
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
+#if OS(DARWIN)
CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation) const;
#endif
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) || USE(HARFBUZZ)
+#if OS(DARWIN) || USE(HARFBUZZ)
bool canRenderCombiningCharacterSequence(const UChar*, size_t) const;
#endif
@@ -209,13 +205,6 @@ private:
PassRefPtr<SimpleFontData> createScaledFontData(const FontDescription&, float scaleFactor) const;
PassRefPtr<SimpleFontData> platformCreateScaledFontData(const FontDescription&, float scaleFactor) const;
-#if PLATFORM(WIN) && !OS(WINCE)
- void initGDIFont();
- void platformCommonDestroy();
- FloatRect boundsForGDIGlyph(Glyph glyph) const;
- float widthForGDIGlyph(Glyph glyph) const;
-#endif
-
FontMetrics m_fontMetrics;
float m_maxCharWidth;
float m_avgCharWidth;
@@ -256,7 +245,7 @@ private:
RefPtr<SimpleFontData> brokenIdeograph;
RefPtr<SimpleFontData> verticalRightOrientation;
RefPtr<SimpleFontData> uprightOrientation;
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
+#if OS(DARWIN)
mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences;
#endif
@@ -273,11 +262,11 @@ private:
float m_syntheticBoldOffset;
#endif
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
+#if OS(DARWIN)
mutable HashMap<unsigned, RetainPtr<CFDictionaryRef> > m_CFStringAttributes;
#endif
-#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) || USE(HARFBUZZ)
+#if OS(DARWIN) || USE(HARFBUZZ)
mutable OwnPtr<HashMap<String, bool> > m_combiningCharacterSequenceSupport;
#endif
};
« no previous file with comments | « Source/WebCore/platform/graphics/GlyphBuffer.h ('k') | Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698