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

Side by Side Diff: Source/web/WebKit.cpp

Issue 258953005: Renaming --enable-font-smoothing cmd line argument to --enable-font-antialiasing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Preparing for landing this as a 4 sided patch Created 6 years, 7 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
« no previous file with comments | « Source/platform/fonts/win/FontPlatformDataWin.cpp ('k') | public/web/WebKit.h » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 void setLayoutTestMode(bool value) 234 void setLayoutTestMode(bool value)
235 { 235 {
236 WebCore::setIsRunningLayoutTest(value); 236 WebCore::setIsRunningLayoutTest(value);
237 } 237 }
238 238
239 bool layoutTestMode() 239 bool layoutTestMode()
240 { 240 {
241 return WebCore::isRunningLayoutTest(); 241 return WebCore::isRunningLayoutTest();
242 } 242 }
243 243
244 void setFontAntialiasingEnabledForTest(bool value)
245 {
246 WebCore::setFontAntialiasingEnabledForTest(value);
247 }
248
249 bool fontAntialiasingEnabledForTest()
250 {
251 return WebCore::isFontAntialiasingEnabledForTest();
252 }
253
254 // FIXME(dro): Remove after Chromium side rename landed.
244 void setFontSmoothingEnabledForTest(bool value) 255 void setFontSmoothingEnabledForTest(bool value)
245 { 256 {
246 WebCore::setFontSmoothingEnabledForTest(value); 257 setFontAntialiasingEnabledForTest(value);
247 } 258 }
248 259
260 // FIXME(dro): Remove after Chromium side rename landed.
249 bool fontSmoothingEnabledForTest() 261 bool fontSmoothingEnabledForTest()
250 { 262 {
251 return WebCore::isFontSmoothingEnabledForTest(); 263 return fontAntialiasingEnabledForTest();
252 } 264 }
253 265
254 void enableLogChannel(const char* name) 266 void enableLogChannel(const char* name)
255 { 267 {
256 #if !LOG_DISABLED 268 #if !LOG_DISABLED
257 WTFLogChannel* channel = WebCore::getChannelFromName(name); 269 WTFLogChannel* channel = WebCore::getChannelFromName(name);
258 if (channel) 270 if (channel)
259 channel->state = WTFLogChannelOn; 271 channel->state = WTFLogChannelOn;
260 #endif // !LOG_DISABLED 272 #endif // !LOG_DISABLED
261 } 273 }
262 274
263 void resetPluginCache(bool reloadPages) 275 void resetPluginCache(bool reloadPages)
264 { 276 {
265 WebCore::Page::refreshPlugins(reloadPages); 277 WebCore::Page::refreshPlugins(reloadPages);
266 } 278 }
267 279
268 } // namespace blink 280 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/win/FontPlatformDataWin.cpp ('k') | public/web/WebKit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698