OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include <windows.h> | 27 #include <windows.h> |
28 | 28 |
29 #include "ChromiumBridge.h" | 29 #include "ChromiumBridge.h" |
30 #include "Font.h" | 30 #include "Font.h" |
31 #include "FontFallbackList.h" | 31 #include "FontFallbackList.h" |
32 #include "GlyphBuffer.h" | 32 #include "GlyphBuffer.h" |
33 #include "PlatformContextSkia.h" | 33 #include "PlatformContextSkia.h" |
34 #include "SimpleFontData.h" | 34 #include "SimpleFontData.h" |
| 35 #include "SkiaUtils.h" |
35 #include "UniscribeHelperTextRun.h" | 36 #include "UniscribeHelperTextRun.h" |
36 | 37 |
37 #include "base/gfx/platform_canvas_win.h" | 38 #include "base/gfx/skia_utils.h" // TODO(brettw) remove this dependency. |
38 #include "base/gfx/skia_utils.h" | 39 #include "skia/ext/platform_canvas_win.h" |
39 #include "graphics/SkiaUtils.h" | |
40 | |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
44 void Font::drawGlyphs(GraphicsContext* graphicsContext, | 43 void Font::drawGlyphs(GraphicsContext* graphicsContext, |
45 const SimpleFontData* font, | 44 const SimpleFontData* font, |
46 const GlyphBuffer& glyphBuffer, | 45 const GlyphBuffer& glyphBuffer, |
47 int from, | 46 int from, |
48 int numGlyphs, | 47 int numGlyphs, |
49 const FloatPoint& point) const | 48 const FloatPoint& point) const |
50 { | 49 { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 int char_index = state.XToCharacter(x); | 196 int char_index = state.XToCharacter(x); |
198 | 197 |
199 // XToCharacter will return -1 if the position is before the first | 198 // XToCharacter will return -1 if the position is before the first |
200 // character (we get called like this sometimes). | 199 // character (we get called like this sometimes). |
201 if (char_index < 0) | 200 if (char_index < 0) |
202 char_index = 0; | 201 char_index = 0; |
203 return char_index; | 202 return char_index; |
204 } | 203 } |
205 | 204 |
206 } // namespace WebCore | 205 } // namespace WebCore |
OLD | NEW |