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

Side by Side Diff: Source/WebCore/platform/graphics/SimpleFontData.cpp

Issue 11348334: Merge 134871 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Alexey Proskuryakov 3 * Copyright (C) 2006 Alexey Proskuryakov
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 , m_verticalData(0) 54 , m_verticalData(0)
55 #endif 55 #endif
56 , m_hasVerticalGlyphs(false) 56 , m_hasVerticalGlyphs(false)
57 { 57 {
58 platformInit(); 58 platformInit();
59 platformGlyphInit(); 59 platformGlyphInit();
60 platformCharWidthInit(); 60 platformCharWidthInit();
61 #if ENABLE(OPENTYPE_VERTICAL) 61 #if ENABLE(OPENTYPE_VERTICAL)
62 if (platformData.orientation() == Vertical && !isTextOrientationFallback) { 62 if (platformData.orientation() == Vertical && !isTextOrientationFallback) {
63 m_verticalData = platformData.verticalData(); 63 m_verticalData = platformData.verticalData();
64 m_hasVerticalGlyphs = m_verticalData && m_verticalData->hasVerticalMetri cs(); 64 m_hasVerticalGlyphs = m_verticalData.get() && m_verticalData->hasVertica lMetrics();
65 } 65 }
66 #endif 66 #endif
67 } 67 }
68 68
69 SimpleFontData::SimpleFontData(PassOwnPtr<AdditionalFontData> fontData, float fo ntSize, bool syntheticBold, bool syntheticItalic) 69 SimpleFontData::SimpleFontData(PassOwnPtr<AdditionalFontData> fontData, float fo ntSize, bool syntheticBold, bool syntheticItalic)
70 : m_platformData(FontPlatformData(fontSize, syntheticBold, syntheticItalic)) 70 : m_platformData(FontPlatformData(fontSize, syntheticBold, syntheticItalic))
71 , m_fontData(fontData) 71 , m_fontData(fontData)
72 , m_treatAsFixedPitch(false) 72 , m_treatAsFixedPitch(false)
73 , m_isCustomFont(true) 73 , m_isCustomFont(true)
74 , m_isLoading(false) 74 , m_isLoading(false)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 while (count-- > 0 && *fonts) { 247 while (count-- > 0 && *fonts) {
248 OwnPtr<SimpleFontData> afont = adoptPtr(*fonts++); 248 OwnPtr<SimpleFontData> afont = adoptPtr(*fonts++);
249 GlyphPageTreeNode::pruneTreeCustomFontData(afont.get()); 249 GlyphPageTreeNode::pruneTreeCustomFontData(afont.get());
250 } 250 }
251 } 251 }
252 } 252 }
253 #endif 253 #endif
254 } 254 }
255 255
256 } // namespace WebCore 256 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698