in .mm and .cpp files. inline function code needs to reside in the
header file for the linker to find the code.
http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
Reviewed by Darin, landed by Timothy.
* platform/Font.cpp:
(WebCore::isSpace):
* platform/mac/FontData.mm:
(WebCore::widthForGlyph):
(WebCore::isRoundingHackCharacter):
(WebCore::glyphForCharacter):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14286
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-05-10 David Carson <dacarson@gmail.com>
+
+ - Fix for bug 8833. Removed inline keyword from functions declared
+ in .mm and .cpp files. inline function code needs to reside in the
+ header file for the linker to find the code.
+ http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
+
+ Reviewed by Darin, landed by Timothy.
+
+ * platform/Font.cpp:
+ (WebCore::isSpace):
+ * platform/mac/FontData.mm:
+ (WebCore::widthForGlyph):
+ (WebCore::isRoundingHackCharacter):
+ (WebCore::glyphForCharacter):
+
2006-05-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed and landed by Anders.
// According to http://www.unicode.org/Public/UNIDATA/UCD.html#Canonical_Combining_Class_Values
#define HIRAGANA_KATAKANA_VOICING_MARKS 8
-inline bool isSpace(unsigned c)
+ bool isSpace(unsigned c)
{
return c == SPACE || c == '\t' || c == '\n' || c == NO_BREAK_SPACE;
}
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-inline bool isRoundingHackCharacter(UChar32 c)
+ bool isRoundingHackCharacter(UChar32 c)
{
return (((c & ~0xFF) == 0 && isRoundingHackCharacterTable[c]));
}
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-inline bool isRoundingHackCharacter(UChar c)
+bool isRoundingHackCharacter(UChar c)
{
return (((c & ~0xFF) == 0 && isRoundingHackCharacterTable[c]));
}
// Map utility functions
-inline float FontData::widthForGlyph(Glyph glyph) const
+float FontData::widthForGlyph(Glyph glyph) const
{
WidthMap *map;
for (map = m_glyphToWidthMap; 1; map = map->next) {
}
}
-inline Glyph FontData::glyphForCharacter(const FontData **renderer, unsigned c) const
+Glyph FontData::glyphForCharacter(const FontData **renderer, unsigned c) const
{
// this loop is hot, so it is written to avoid LSU stalls
GlyphMap *map;