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

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

Issue 1394003004: Add flag to force complex text for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void setFontAntialiasingEnabledForTest(bool value) 258 void setFontAntialiasingEnabledForTest(bool value)
259 { 259 {
260 LayoutTestSupport::setFontAntialiasingEnabledForTest(value); 260 LayoutTestSupport::setFontAntialiasingEnabledForTest(value);
261 } 261 }
262 262
263 bool fontAntialiasingEnabledForTest() 263 bool fontAntialiasingEnabledForTest()
264 { 264 {
265 return LayoutTestSupport::isFontAntialiasingEnabledForTest(); 265 return LayoutTestSupport::isFontAntialiasingEnabledForTest();
266 } 266 }
267 267
268 void setAlwaysUseComplexTextForTest(bool value)
269 {
270 LayoutTestSupport::setAlwaysUseComplexTextForTest(value);
271 }
272
273 bool alwaysUseComplexTextForTest()
274 {
275 return LayoutTestSupport::alwaysUseComplexTextForTest();
276 }
277
268 void enableLogChannel(const char* name) 278 void enableLogChannel(const char* name)
269 { 279 {
270 #if !LOG_DISABLED 280 #if !LOG_DISABLED
271 WTFLogChannel* channel = getChannelFromName(name); 281 WTFLogChannel* channel = getChannelFromName(name);
272 if (channel) 282 if (channel)
273 channel->state = WTFLogChannelOn; 283 channel->state = WTFLogChannelOn;
274 #endif // !LOG_DISABLED 284 #endif // !LOG_DISABLED
275 } 285 }
276 286
277 void resetPluginCache(bool reloadPages) 287 void resetPluginCache(bool reloadPages)
278 { 288 {
279 ASSERT(!reloadPages); 289 ASSERT(!reloadPages);
280 Page::refreshPlugins(); 290 Page::refreshPlugins();
281 } 291 }
282 292
283 void decommitFreeableMemory() 293 void decommitFreeableMemory()
284 { 294 {
285 WTF::Partitions::decommitFreeableMemory(); 295 WTF::Partitions::decommitFreeableMemory();
286 } 296 }
287 297
288 } // namespace blink 298 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/Font.cpp ('k') | third_party/WebKit/public/web/WebKit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698