OLD | NEW |
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 Loading... |
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 |
OLD | NEW |