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

Side by Side Diff: Source/core/testing/InternalSettings.cpp

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 InternalSettingsGuardForSettings(); 288 InternalSettingsGuardForSettings();
289 settings()->setCSSVariablesEnabled(enabled); 289 settings()->setCSSVariablesEnabled(enabled);
290 } 290 }
291 291
292 bool InternalSettings::cssVariablesEnabled(ExceptionCode& ec) 292 bool InternalSettings::cssVariablesEnabled(ExceptionCode& ec)
293 { 293 {
294 InternalSettingsGuardForSettingsReturn(false); 294 InternalSettingsGuardForSettingsReturn(false);
295 return settings()->cssVariablesEnabled(); 295 return settings()->cssVariablesEnabled();
296 } 296 }
297 297
298 void InternalSettings::setAcceleratedCompositingForOverflowScrollEnabledMode(uns igned enabled, ExceptionCode& ec)
299 {
300 InternalSettingsGuardForSettings();
301 settings()->setAcceleratedCompositingForOverflowScrollEnabled(static_cast<Ac celeratedCompositingForOverflowScrollEnabledMode>(enabled));
302 }
303
298 void InternalSettings::setEditingBehavior(const String& editingBehavior, Excepti onCode& ec) 304 void InternalSettings::setEditingBehavior(const String& editingBehavior, Excepti onCode& ec)
299 { 305 {
300 InternalSettingsGuardForSettings(); 306 InternalSettingsGuardForSettings();
301 if (equalIgnoringCase(editingBehavior, "win")) 307 if (equalIgnoringCase(editingBehavior, "win"))
302 settings()->setEditingBehaviorType(EditingWindowsBehavior); 308 settings()->setEditingBehaviorType(EditingWindowsBehavior);
303 else if (equalIgnoringCase(editingBehavior, "mac")) 309 else if (equalIgnoringCase(editingBehavior, "mac"))
304 settings()->setEditingBehaviorType(EditingMacBehavior); 310 settings()->setEditingBehaviorType(EditingMacBehavior);
305 else if (equalIgnoringCase(editingBehavior, "unix")) 311 else if (equalIgnoringCase(editingBehavior, "unix"))
306 settings()->setEditingBehaviorType(EditingUnixBehavior); 312 settings()->setEditingBehaviorType(EditingUnixBehavior);
307 else if (equalIgnoringCase(editingBehavior, "android")) 313 else if (equalIgnoringCase(editingBehavior, "android"))
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 settings()->setImagesEnabled(enabled); 374 settings()->setImagesEnabled(enabled);
369 } 375 }
370 376
371 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode & ec) 377 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode & ec)
372 { 378 {
373 InternalSettingsGuardForSettings(); 379 InternalSettingsGuardForSettings();
374 settings()->setDefaultVideoPosterURL(url); 380 settings()->setDefaultVideoPosterURL(url);
375 } 381 }
376 382
377 } 383 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698