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

Side by Side Diff: webkit/port/platform/graphics/FontWin.cpp

Issue 11588: Remove base versions of the graphics headers, which previously just forwarded... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webwidget_impl.cc ('k') | webkit/port/platform/graphics/GraphicsContextSkia.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/glue/webwidget_impl.cc ('k') | webkit/port/platform/graphics/GraphicsContextSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698