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

Side by Side Diff: Source/platform/fonts/linux/FontPlatformDataLinuxHarfBuzz.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006, 2007, 2008, 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 21 matching lines...) Expand all
32 #include "public/platform/Platform.h" 32 #include "public/platform/Platform.h"
33 33
34 #include "SkTypeface.h" 34 #include "SkTypeface.h"
35 #include "platform/LayoutTestSupport.h" 35 #include "platform/LayoutTestSupport.h"
36 #include "platform/RuntimeEnabledFeatures.h" 36 #include "platform/RuntimeEnabledFeatures.h"
37 #include "platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.h" 37 #include "platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.h"
38 #include "public/platform/linux/WebFontInfo.h" 38 #include "public/platform/linux/WebFontInfo.h"
39 #include "public/platform/linux/WebFontRenderStyle.h" 39 #include "public/platform/linux/WebFontRenderStyle.h"
40 #include "public/platform/linux/WebSandboxSupport.h" 40 #include "public/platform/linux/WebSandboxSupport.h"
41 41
42 namespace WebCore { 42 namespace blink {
43 43
44 static SkPaint::Hinting skiaHinting = SkPaint::kNormal_Hinting; 44 static SkPaint::Hinting skiaHinting = SkPaint::kNormal_Hinting;
45 static bool useSkiaAutoHint = true; 45 static bool useSkiaAutoHint = true;
46 static bool useSkiaBitmaps = true; 46 static bool useSkiaBitmaps = true;
47 static bool useSkiaAntiAlias = true; 47 static bool useSkiaAntiAlias = true;
48 static bool useSkiaSubpixelRendering = false; 48 static bool useSkiaSubpixelRendering = false;
49 49
50 void FontPlatformData::setHinting(SkPaint::Hinting hinting) 50 void FontPlatformData::setHinting(SkPaint::Hinting hinting)
51 { 51 {
52 skiaHinting = hinting; 52 skiaHinting = hinting;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 if (m_style.useSubpixelPositioning == FontRenderStyle::NoPreference 141 if (m_style.useSubpixelPositioning == FontRenderStyle::NoPreference
142 || LayoutTestSupport::isRunningLayoutTest()) 142 || LayoutTestSupport::isRunningLayoutTest())
143 m_style.useSubpixelPositioning = useSkiaSubpixelPositioning; 143 m_style.useSubpixelPositioning = useSkiaSubpixelPositioning;
144 } 144 }
145 145
146 bool FontPlatformData::defaultUseSubpixelPositioning() 146 bool FontPlatformData::defaultUseSubpixelPositioning()
147 { 147 {
148 return FontDescription::subpixelPositioning(); 148 return FontDescription::subpixelPositioning();
149 } 149 }
150 150
151 } // namespace WebCore 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/linux/FontCacheLinux.cpp ('k') | Source/platform/fonts/mac/ComplexTextController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698