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

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

Issue 891523002: ScrollTopLeftInterop should not be marked experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 , m_originalDisplayModeOverride(settings->displayModeOverride()) 69 , m_originalDisplayModeOverride(settings->displayModeOverride())
70 , m_originalMockScrollbarsEnabled(settings->mockScrollbarsEnabled()) 70 , m_originalMockScrollbarsEnabled(settings->mockScrollbarsEnabled())
71 , m_originalMockGestureTapHighlightsEnabled(settings->mockGestureTapHighligh tsEnabled()) 71 , m_originalMockGestureTapHighlightsEnabled(settings->mockGestureTapHighligh tsEnabled())
72 , m_langAttributeAwareFormControlUIEnabled(RuntimeEnabledFeatures::langAttri buteAwareFormControlUIEnabled()) 72 , m_langAttributeAwareFormControlUIEnabled(RuntimeEnabledFeatures::langAttri buteAwareFormControlUIEnabled())
73 , m_imagesEnabled(settings->imagesEnabled()) 73 , m_imagesEnabled(settings->imagesEnabled())
74 , m_defaultVideoPosterURL(settings->defaultVideoPosterURL()) 74 , m_defaultVideoPosterURL(settings->defaultVideoPosterURL())
75 , m_originalLayerSquashingEnabled(settings->layerSquashingEnabled()) 75 , m_originalLayerSquashingEnabled(settings->layerSquashingEnabled())
76 , m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(Runtim eEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled()) 76 , m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(Runtim eEnabledFeatures::pseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled())
77 , m_originalImageColorProfilesEnabled(RuntimeEnabledFeatures::imageColorProf ilesEnabled()) 77 , m_originalImageColorProfilesEnabled(RuntimeEnabledFeatures::imageColorProf ilesEnabled())
78 , m_originalImageAnimationPolicy(settings->imageAnimationPolicy()) 78 , m_originalImageAnimationPolicy(settings->imageAnimationPolicy())
79 , m_originalScrollTopLeftInteropEnabled(RuntimeEnabledFeatures::scrollTopLef tInteropEnabled())
79 { 80 {
80 } 81 }
81 82
82 void InternalSettings::Backup::restoreTo(Settings* settings) 83 void InternalSettings::Backup::restoreTo(Settings* settings)
83 { 84 {
84 RuntimeEnabledFeatures::setAuthorShadowDOMForAnyElementEnabled(m_originalAut horShadowDOMForAnyElementEnabled); 85 RuntimeEnabledFeatures::setAuthorShadowDOMForAnyElementEnabled(m_originalAut horShadowDOMForAnyElementEnabled);
85 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled( m_originalCSP); 86 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled( m_originalCSP);
86 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(m_originalOverlayScrollb arsEnabled); 87 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(m_originalOverlayScrollb arsEnabled);
87 settings->setEditingBehaviorType(m_originalEditingBehavior); 88 settings->setEditingBehaviorType(m_originalEditingBehavior);
88 settings->setTextAutosizingEnabled(m_originalTextAutosizingEnabled); 89 settings->setTextAutosizingEnabled(m_originalTextAutosizingEnabled);
89 settings->setTextAutosizingWindowSizeOverride(m_originalTextAutosizingWindow SizeOverride); 90 settings->setTextAutosizingWindowSizeOverride(m_originalTextAutosizingWindow SizeOverride);
90 settings->setAccessibilityFontScaleFactor(m_originalAccessibilityFontScaleFa ctor); 91 settings->setAccessibilityFontScaleFactor(m_originalAccessibilityFontScaleFa ctor);
91 settings->setMediaTypeOverride(m_originalMediaTypeOverride); 92 settings->setMediaTypeOverride(m_originalMediaTypeOverride);
92 settings->setDisplayModeOverride(m_originalDisplayModeOverride); 93 settings->setDisplayModeOverride(m_originalDisplayModeOverride);
93 settings->setMockScrollbarsEnabled(m_originalMockScrollbarsEnabled); 94 settings->setMockScrollbarsEnabled(m_originalMockScrollbarsEnabled);
94 settings->setMockGestureTapHighlightsEnabled(m_originalMockGestureTapHighlig htsEnabled); 95 settings->setMockGestureTapHighlightsEnabled(m_originalMockGestureTapHighlig htsEnabled);
95 RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(m_langAttr ibuteAwareFormControlUIEnabled); 96 RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(m_langAttr ibuteAwareFormControlUIEnabled);
96 settings->setImagesEnabled(m_imagesEnabled); 97 settings->setImagesEnabled(m_imagesEnabled);
97 settings->setDefaultVideoPosterURL(m_defaultVideoPosterURL); 98 settings->setDefaultVideoPosterURL(m_defaultVideoPosterURL);
98 settings->genericFontFamilySettings().reset(); 99 settings->genericFontFamilySettings().reset();
99 RuntimeEnabledFeatures::setPseudoClassesInMatchingCriteriaInAuthorShadowTree sEnabled(m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled); 100 RuntimeEnabledFeatures::setPseudoClassesInMatchingCriteriaInAuthorShadowTree sEnabled(m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled);
100 RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorPro filesEnabled); 101 RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorPro filesEnabled);
101 settings->setImageAnimationPolicy(m_originalImageAnimationPolicy); 102 settings->setImageAnimationPolicy(m_originalImageAnimationPolicy);
103 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(m_originalScrollTopLe ftInteropEnabled);
102 } 104 }
103 105
104 #if ENABLE(OILPAN) 106 #if ENABLE(OILPAN)
105 InternalSettings* InternalSettings::from(Page& page) 107 InternalSettings* InternalSettings::from(Page& page)
106 { 108 {
107 if (!HeapSupplement<Page>::from(page, supplementName())) 109 if (!HeapSupplement<Page>::from(page, supplementName()))
108 HeapSupplement<Page>::provideTo(page, supplementName(), new InternalSett ings(page)); 110 HeapSupplement<Page>::provideTo(page, supplementName(), new InternalSett ings(page));
109 return static_cast<InternalSettings*>(HeapSupplement<Page>::from(page, suppl ementName())); 111 return static_cast<InternalSettings*>(HeapSupplement<Page>::from(page, suppl ementName()));
110 } 112 }
111 #else 113 #else
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 InternalSettingsGuardForSettings(); 462 InternalSettingsGuardForSettings();
461 if (equalIgnoringCase(policy, "allowed")) 463 if (equalIgnoringCase(policy, "allowed"))
462 settings()->setImageAnimationPolicy(ImageAnimationPolicyAllowed); 464 settings()->setImageAnimationPolicy(ImageAnimationPolicyAllowed);
463 else if (equalIgnoringCase(policy, "once")) 465 else if (equalIgnoringCase(policy, "once"))
464 settings()->setImageAnimationPolicy(ImageAnimationPolicyAnimateOnce); 466 settings()->setImageAnimationPolicy(ImageAnimationPolicyAnimateOnce);
465 else if (equalIgnoringCase(policy, "none")) 467 else if (equalIgnoringCase(policy, "none"))
466 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation); 468 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation);
467 else 469 else
468 exceptionState.throwDOMException(SyntaxError, "The image animation polic y provided ('" + policy + "') is invalid."); 470 exceptionState.throwDOMException(SyntaxError, "The image animation polic y provided ('" + policy + "') is invalid.");
469 } 471 }
472
473 void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled)
474 {
475 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled);
470 } 476 }
477 }
OLDNEW
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698