| 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 "FontPlatformDataChromiumWin.h" | |
| 36 #include "HWndDC.h" | 35 #include "HWndDC.h" |
| 37 #include "SystemInfo.h" | 36 #include "SystemInfo.h" |
| 38 #include "UniscribeHelperTextRun.h" | |
| 39 #include "core/platform/graphics/Font.h" | 37 #include "core/platform/graphics/Font.h" |
| 40 #include "core/platform/graphics/GlyphPageTreeNode.h" | 38 #include "core/platform/graphics/GlyphPageTreeNode.h" |
| 41 #include "core/platform/graphics/SimpleFontData.h" | 39 #include "core/platform/graphics/SimpleFontData.h" |
| 40 #include "core/platform/graphics/chromium/FontPlatformDataChromiumWin.h" |
| 41 #include "core/platform/graphics/chromium/UniscribeHelperTextRun.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) |
| 50 page->setGlyphDataForIndex(i, 0, 0); | 50 page->setGlyphDataForIndex(i, 0, 0); |
| 51 } | 51 } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // because each character in the non-BMP input buffer will be | 249 // because each character in the non-BMP input buffer will be |
| 250 // represented by a surrogate pair (two UChar's). | 250 // represented by a surrogate pair (two UChar's). |
| 251 return fillNonBMPGlyphs(offset, length, characterBuffer, this, fontData)
; | 251 return fillNonBMPGlyphs(offset, length, characterBuffer, this, fontData)
; |
| 252 } | 252 } |
| 253 | 253 |
| 254 ASSERT_NOT_REACHED(); | 254 ASSERT_NOT_REACHED(); |
| 255 return false; | 255 return false; |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace WebCore | 258 } // namespace WebCore |
| OLD | NEW |