OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008, 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, 2012 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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include <windows.h> | 31 #include <windows.h> |
32 #include "config.h" | 32 #include "config.h" |
33 #include <vector> | 33 #include <vector> |
34 | 34 |
35 #include "core/platform/graphics/Font.h" | 35 #include "platform/fonts/Font.h" |
36 #include "core/platform/graphics/GlyphPageTreeNode.h" | 36 #include "platform/fonts/GlyphPageTreeNode.h" |
37 #include "core/platform/graphics/SimpleFontData.h" | 37 #include "platform/fonts/SimpleFontData.h" |
38 #include "core/platform/graphics/win/FontPlatformDataWin.h" | 38 #include "platform/fonts/win/FontPlatformDataWin.h" |
39 #include "core/platform/graphics/win/UniscribeHelperTextRun.h" | 39 #include "platform/fonts/win/UniscribeHelperTextRun.h" |
40 #include "platform/win/HWndDC.h" | 40 #include "platform/win/HWndDC.h" |
41 #include "platform/win/SystemInfo.h" | 41 #include "platform/win/SystemInfo.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 // Fills one page of font data pointers with 0 to indicate that there | 45 // Fills one page of font data pointers with 0 to indicate that there |
46 // are no glyphs for the characters. | 46 // are no glyphs for the characters. |
47 static void fillEmptyGlyphs(GlyphPage* page) | 47 static void fillEmptyGlyphs(GlyphPage* page) |
48 { | 48 { |
49 for (int i = 0; i < GlyphPage::size; ++i) | 49 for (int i = 0; i < GlyphPage::size; ++i) |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // because each character in the non-BMP input buffer will be | 251 // because each character in the non-BMP input buffer will be |
252 // represented by a surrogate pair (two UChar's). | 252 // represented by a surrogate pair (two UChar's). |
253 return fillNonBMPGlyphs(offset, length, characterBuffer, this, fontData)
; | 253 return fillNonBMPGlyphs(offset, length, characterBuffer, this, fontData)
; |
254 } | 254 } |
255 | 255 |
256 ASSERT_NOT_REACHED(); | 256 ASSERT_NOT_REACHED(); |
257 return false; | 257 return false; |
258 } | 258 } |
259 | 259 |
260 } // namespace WebCore | 260 } // namespace WebCore |
OLD | NEW |