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

Side by Side Diff: Source/WebKit/chromium/src/WebSettingsImpl.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) 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 449 }
450 450
451 void WebSettingsImpl::setAcceleratedCompositingForVideoEnabled(bool enabled) 451 void WebSettingsImpl::setAcceleratedCompositingForVideoEnabled(bool enabled)
452 { 452 {
453 m_settings->setAcceleratedCompositingForVideoEnabled(enabled); 453 m_settings->setAcceleratedCompositingForVideoEnabled(enabled);
454 } 454 }
455 455
456 void WebSettingsImpl::setAcceleratedCompositingForOverflowScrollEnabled( 456 void WebSettingsImpl::setAcceleratedCompositingForOverflowScrollEnabled(
457 bool enabled) 457 bool enabled)
458 { 458 {
459 m_settings->setAcceleratedCompositingForOverflowScrollEnabled(enabled); 459 // FIXME: we may want to plumb a tri state all the way to the browser so
460 // we can expose it via about:flags.
461 AcceleratedCompositingForOverflowScrollEnabledMode mode = enabled
462 ? AcceleratedCompositingForOverflowScrollEnabled
463 : AcceleratedCompositingForOverflowScrollDisabled;
464
465 m_settings->setAcceleratedCompositingForOverflowScrollEnabled(mode);
460 } 466 }
461 467
462 void WebSettingsImpl::setAcceleratedCompositingForPluginsEnabled(bool enabled) 468 void WebSettingsImpl::setAcceleratedCompositingForPluginsEnabled(bool enabled)
463 { 469 {
464 m_settings->setAcceleratedCompositingForPluginsEnabled(enabled); 470 m_settings->setAcceleratedCompositingForPluginsEnabled(enabled);
465 } 471 }
466 472
467 void WebSettingsImpl::setAcceleratedCompositingForCanvasEnabled(bool enabled) 473 void WebSettingsImpl::setAcceleratedCompositingForCanvasEnabled(bool enabled)
468 { 474 {
469 m_settings->setAcceleratedCompositingForCanvasEnabled(enabled); 475 m_settings->setAcceleratedCompositingForCanvasEnabled(enabled);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 { 689 {
684 m_settings->setSelectionIncludesAltImageText(enabled); 690 m_settings->setSelectionIncludesAltImageText(enabled);
685 } 691 }
686 692
687 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) 693 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
688 { 694 {
689 m_settings->setSmartInsertDeleteEnabled(enabled); 695 m_settings->setSmartInsertDeleteEnabled(enabled);
690 } 696 }
691 697
692 } // namespace WebKit 698 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698