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

Unified Diff: Source/core/platform/graphics/opentype/OpenTypeUtilities.cpp

Issue 13901012: Remove OS(WINCE) as blink and chromium does not support WinCe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/core/platform/graphics/opentype/OpenTypeUtilities.cpp
diff --git a/Source/core/platform/graphics/opentype/OpenTypeUtilities.cpp b/Source/core/platform/graphics/opentype/OpenTypeUtilities.cpp
index b3f7bde6833287d7e6175c2122e7f14bf6a6807e..291d9c101db3c658c984c73d322432dedfb2cb28 100644
--- a/Source/core/platform/graphics/opentype/OpenTypeUtilities.cpp
+++ b/Source/core/platform/graphics/opentype/OpenTypeUtilities.cpp
@@ -399,29 +399,6 @@ static size_t renameFontInternal(SharedBuffer* fontData, const String& fontName,
return nameTableSize;
}
-#if OS(WINCE)
-// AddFontMemResourceEx does not exist on WinCE, so we must handle the font data manually
-// This function just renames the font and overwrites the old font data with the new
-bool renameFont(SharedBuffer* fontData, const String& fontName)
-{
- // abort if the data is too small to be a font header with a "tables" entry
- if (fontData->size() < offsetof(sfntHeader, tables))
- return false;
-
- // abort if the data is too small to hold all the tables specified in the header
- const sfntHeader* header = reinterpret_cast<const sfntHeader*>(fontData->data());
- if (fontData->size() < offsetof(sfntHeader, tables) + header->numTables * sizeof(TableDirectoryEntry))
- return false;
-
- Vector<char> rewrittenFontData;
- if (!renameFontInternal(fontData, fontName, rewrittenFontData))
- return false;
-
- fontData->clear();
- fontData->append(rewrittenFontData.data(), rewrittenFontData.size());
- return true;
-}
-#else
// Rename the font and install the new font data into the system
HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName)
{
@@ -440,6 +417,5 @@ HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName)
return fontHandle;
}
-#endif
}

Powered by Google App Engine
This is Rietveld 408576698