OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 static long long seekFile(PlatformFileHandle, long long offset, FileSeekOrig
in); | 144 static long long seekFile(PlatformFileHandle, long long offset, FileSeekOrig
in); |
145 static bool truncateFile(PlatformFileHandle, long long offset); | 145 static bool truncateFile(PlatformFileHandle, long long offset); |
146 static int readFromFile(PlatformFileHandle, char* data, int length); | 146 static int readFromFile(PlatformFileHandle, char* data, int length); |
147 static int writeToFile(PlatformFileHandle, const char* data, int length); | 147 static int writeToFile(PlatformFileHandle, const char* data, int length); |
148 | 148 |
149 // Font --------------------------------------------------------------- | 149 // Font --------------------------------------------------------------- |
150 #if OS(WINDOWS) | 150 #if OS(WINDOWS) |
151 static bool ensureFontLoaded(HFONT); | 151 static bool ensureFontLoaded(HFONT); |
152 #endif | 152 #endif |
153 #if OS(DARWIN) | 153 #if OS(DARWIN) |
154 static bool loadFont(NSFont* srcFont, ATSFontContainerRef* out); | 154 static bool loadFont(NSFont* srcFont, ATSFontContainerRef*, uint32_t* fontID
); |
155 #elif OS(UNIX) | 155 #elif OS(UNIX) |
156 static void getRenderStyleForStrike(const char* family, int sizeAndStyle, Fo
ntRenderStyle* result); | 156 static void getRenderStyleForStrike(const char* family, int sizeAndStyle, Fo
ntRenderStyle* result); |
157 static String getFontFamilyForCharacters(const UChar*, size_t numCharacters,
const char* preferredLocale); | 157 static String getFontFamilyForCharacters(const UChar*, size_t numCharacters,
const char* preferredLocale); |
158 #endif | 158 #endif |
159 | 159 |
160 // Forms -------------------------------------------------------------- | 160 // Forms -------------------------------------------------------------- |
161 static void notifyFormStateChanged(const Document*); | 161 static void notifyFormStateChanged(const Document*); |
162 | 162 |
163 // Databases ---------------------------------------------------------- | 163 // Databases ---------------------------------------------------------- |
164 // Returns a handle to the DB file and ooptionally a handle to its containin
g directory | 164 // Returns a handle to the DB file and ooptionally a handle to its containin
g directory |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 404 |
405 // Visited links ------------------------------------------------------ | 405 // Visited links ------------------------------------------------------ |
406 static LinkHash visitedLinkHash(const UChar* url, unsigned length); | 406 static LinkHash visitedLinkHash(const UChar* url, unsigned length); |
407 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib
uteURL); | 407 static LinkHash visitedLinkHash(const KURL& base, const AtomicString& attrib
uteURL); |
408 static bool isLinkVisited(LinkHash); | 408 static bool isLinkVisited(LinkHash); |
409 }; | 409 }; |
410 | 410 |
411 } // namespace WebCore | 411 } // namespace WebCore |
412 | 412 |
413 #endif | 413 #endif |
OLD | NEW |