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

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

Issue 2655373003: Squash deceased layer squashing flag (Closed)
Patch Set: Created 3 years, 10 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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 settings->getAccessibilityFontScaleFactor()), 72 settings->getAccessibilityFontScaleFactor()),
73 m_originalMediaTypeOverride(settings->getMediaTypeOverride()), 73 m_originalMediaTypeOverride(settings->getMediaTypeOverride()),
74 m_originalDisplayModeOverride(settings->getDisplayModeOverride()), 74 m_originalDisplayModeOverride(settings->getDisplayModeOverride()),
75 m_originalMockScrollbarsEnabled(settings->mockScrollbarsEnabled()), 75 m_originalMockScrollbarsEnabled(settings->mockScrollbarsEnabled()),
76 m_originalMockGestureTapHighlightsEnabled( 76 m_originalMockGestureTapHighlightsEnabled(
77 settings->getMockGestureTapHighlightsEnabled()), 77 settings->getMockGestureTapHighlightsEnabled()),
78 m_langAttributeAwareFormControlUIEnabled( 78 m_langAttributeAwareFormControlUIEnabled(
79 RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled()), 79 RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled()),
80 m_imagesEnabled(settings->getImagesEnabled()), 80 m_imagesEnabled(settings->getImagesEnabled()),
81 m_defaultVideoPosterURL(settings->getDefaultVideoPosterURL()), 81 m_defaultVideoPosterURL(settings->getDefaultVideoPosterURL()),
82 m_originalLayerSquashingEnabled(settings->getLayerSquashingEnabled()),
83 m_originalImageAnimationPolicy(settings->getImageAnimationPolicy()), 82 m_originalImageAnimationPolicy(settings->getImageAnimationPolicy()),
84 m_originalScrollTopLeftInteropEnabled( 83 m_originalScrollTopLeftInteropEnabled(
85 RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()), 84 RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()),
86 m_originalCompositorWorkerEnabled( 85 m_originalCompositorWorkerEnabled(
87 RuntimeEnabledFeatures::compositorWorkerEnabled()) {} 86 RuntimeEnabledFeatures::compositorWorkerEnabled()) {}
88 87
89 void InternalSettings::Backup::restoreTo(Settings* settings) { 88 void InternalSettings::Backup::restoreTo(Settings* settings) {
90 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled( 89 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(
91 m_originalCSP); 90 m_originalCSP);
92 RuntimeEnabledFeatures::setCSSStickyPositionEnabled( 91 RuntimeEnabledFeatures::setCSSStickyPositionEnabled(
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); 526 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled);
528 } 527 }
529 528
530 void InternalSettings::setPresentationReceiver(bool enabled, 529 void InternalSettings::setPresentationReceiver(bool enabled,
531 ExceptionState& exceptionState) { 530 ExceptionState& exceptionState) {
532 InternalSettingsGuardForSettings(); 531 InternalSettingsGuardForSettings();
533 settings()->setPresentationReceiver(enabled); 532 settings()->setPresentationReceiver(enabled);
534 } 533 }
535 534
536 } // namespace blink 535 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/InternalSettings.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698