Changeset 47974 in webkit
- Timestamp:
- Sep 2, 2009 9:32:55 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r47973 r47974 1 2009-09-02 Yong Li <yong.li@torchmobile.com> 2 3 Reviewed by Adam Barth. 4 5 WINCE PORT: font-related build fixes and minor bugfixes 6 https://bugs.webkit.org/show_bug.cgi?id=27734 7 8 * platform/graphics/FontCache.h: declare functions added in https://bugs.webkit.org/show_bug.cgi?id=27509 9 * platform/graphics/GlyphPageTreeNode.cpp: 10 (WebCore::GlyphPageTreeNode::initializePage): fix ambiguous overload error in min/max on Windows 11 * platform/graphics/SimpleFontData.cpp: 12 (WebCore::SimpleFontData::SimpleFontData): initialize member vars 13 * platform/graphics/SimpleFontData.h: disable unused members on Wince to save space 14 1 15 2009-09-02 Jeremy Orlow <jorlow@chromium.org> 2 16 -
trunk/WebCore/platform/graphics/FontCache.h
r44389 r47974 1 1 /* 2 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 64 65 void platformInit(); 65 66 66 #if PLATFORM(WIN) 67 #if PLATFORM(WINCE) 68 #if defined(IMLANG_FONT_LINK) && (IMLANG_FONT_LINK == 2) 69 IMLangFontLink2* getFontLinkInterface(); 70 #else 71 IMLangFontLink* getFontLinkInterface(); 72 #endif 73 static void comInitialize(); 74 static void comUninitialize(); 75 #elif PLATFORM(WIN) 67 76 IMLangFontLink2* getFontLinkInterface(); 68 77 #endif -
trunk/WebCore/platform/graphics/GlyphPageTreeNode.cpp
r46388 r47974 203 203 for (unsigned i = 0; i < numRanges; i++) { 204 204 const FontDataRange& range = segmentedFontData->rangeAt(i); 205 int from = max(0, range.from() - static_cast<int>(start)); 206 int to = 1 + min(range.to() - static_cast<int>(start), static_cast<int>(GlyphPage::size) - 1); 205 // all this casting is to ensure all the parameters to min and max have the same type, 206 // to avoid ambiguous template parameter errors on Windows 207 int from = max(0, static_cast<int>(range.from()) - static_cast<int>(start)); 208 int to = 1 + min(static_cast<int>(range.to()) - static_cast<int>(start), static_cast<int>(GlyphPage::size) - 1); 207 209 if (from < static_cast<int>(GlyphPage::size) && to > 0) { 208 210 if (haveGlyphs && !scratchPage) { -
trunk/WebCore/platform/graphics/SimpleFontData.cpp
r46388 r47974 58 58 , m_isLoading(loading) 59 59 , m_smallCapsFontData(0) 60 , m_avgCharWidth(-1) 61 , m_maxCharWidth(-1) 60 62 { 61 63 #if !ENABLE(SVG_FONTS) -
trunk/WebCore/platform/graphics/SimpleFontData.h
r47525 r47974 3 3 * 4 4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2007-2008 Torch Mobile, Inc. 5 6 * 6 7 * This library is free software; you can redistribute it and/or … … 34 35 #endif 35 36 36 #if PLATFORM(WIN) 37 #if PLATFORM(WIN) && !PLATFORM(WINCE) 37 38 #include <usp10.h> 38 39 #endif … … 139 140 #if PLATFORM(WIN) 140 141 bool isSystemFont() const { return m_isSystemFont; } 142 #if !PLATFORM(WINCE) // disable unused members to save space 141 143 SCRIPT_FONTPROPERTIES* scriptFontProperties() const; 142 144 SCRIPT_CACHE* scriptCache() const { return &m_scriptCache; } 143 145 #endif 144 146 static void setShouldApplyMacAscentHack(bool); 145 147 static bool shouldApplyMacAscentHack(); … … 160 162 void commonInit(); 161 163 162 #if PLATFORM(WIN) 164 #if PLATFORM(WIN) && !PLATFORM(WINCE) 163 165 void initGDIFont(); 164 166 void platformCommonDestroy(); … … 225 227 #if PLATFORM(WIN) 226 228 bool m_isSystemFont; 229 #if !PLATFORM(WINCE) // disable unused members to save space 227 230 mutable SCRIPT_CACHE m_scriptCache; 228 231 mutable SCRIPT_FONTPROPERTIES* m_scriptFontProperties; 232 #endif 229 233 #endif 230 234 };
Note: See TracChangeset
for help on using the changeset viewer.