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

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

Issue 317143002: Revert of Remove scoped styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/html/HTMLStyleElement.idl ('k') | Source/core/testing/InternalSettings.cpp » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class InternalSettings FINAL : public InternalSettingsGenerated { 50 class InternalSettings FINAL : public InternalSettingsGenerated {
51 #endif 51 #endif
52 public: 52 public:
53 class Backup { 53 class Backup {
54 public: 54 public:
55 explicit Backup(Settings*); 55 explicit Backup(Settings*);
56 void restoreTo(Settings*); 56 void restoreTo(Settings*);
57 57
58 bool m_originalCSSExclusionsEnabled; 58 bool m_originalCSSExclusionsEnabled;
59 bool m_originalAuthorShadowDOMForAnyElementEnabled; 59 bool m_originalAuthorShadowDOMForAnyElementEnabled;
60 bool m_originalStyleScoped;
60 bool m_originalCSP; 61 bool m_originalCSP;
61 bool m_originalOverlayScrollbarsEnabled; 62 bool m_originalOverlayScrollbarsEnabled;
62 EditingBehaviorType m_originalEditingBehavior; 63 EditingBehaviorType m_originalEditingBehavior;
63 bool m_originalTextAutosizingEnabled; 64 bool m_originalTextAutosizingEnabled;
64 IntSize m_originalTextAutosizingWindowSizeOverride; 65 IntSize m_originalTextAutosizingWindowSizeOverride;
65 float m_originalAccessibilityFontScaleFactor; 66 float m_originalAccessibilityFontScaleFactor;
66 String m_originalMediaTypeOverride; 67 String m_originalMediaTypeOverride;
67 bool m_originalMockScrollbarsEnabled; 68 bool m_originalMockScrollbarsEnabled;
68 bool m_langAttributeAwareFormControlUIEnabled; 69 bool m_langAttributeAwareFormControlUIEnabled;
69 bool m_imagesEnabled; 70 bool m_imagesEnabled;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // ready (crbug.com/261605). 108 // ready (crbug.com/261605).
108 void setLayerSquashingEnabled(bool, ExceptionState&); 109 void setLayerSquashingEnabled(bool, ExceptionState&);
109 110
110 // FIXME: The following are RuntimeEnabledFeatures and likely 111 // FIXME: The following are RuntimeEnabledFeatures and likely
111 // cannot be changed after process start. These setters should 112 // cannot be changed after process start. These setters should
112 // be removed or moved onto internals.runtimeFlags: 113 // be removed or moved onto internals.runtimeFlags:
113 void setAuthorShadowDOMForAnyElementEnabled(bool); 114 void setAuthorShadowDOMForAnyElementEnabled(bool);
114 void setCSSExclusionsEnabled(bool); 115 void setCSSExclusionsEnabled(bool);
115 void setLangAttributeAwareFormControlUIEnabled(bool); 116 void setLangAttributeAwareFormControlUIEnabled(bool);
116 void setOverlayScrollbarsEnabled(bool); 117 void setOverlayScrollbarsEnabled(bool);
118 void setStyleScopedEnabled(bool);
117 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 119 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
118 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); 120 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool);
119 121
120 virtual void trace(Visitor*) OVERRIDE; 122 virtual void trace(Visitor*) OVERRIDE;
121 123
122 private: 124 private:
123 explicit InternalSettings(Page&); 125 explicit InternalSettings(Page&);
124 126
125 Settings* settings() const; 127 Settings* settings() const;
126 Page* page() const { return m_page; } 128 Page* page() const { return m_page; }
127 static const char* supplementName(); 129 static const char* supplementName();
128 130
129 RawPtrWillBeWeakMember<Page> m_page; 131 RawPtrWillBeWeakMember<Page> m_page;
130 Backup m_backup; 132 Backup m_backup;
131 }; 133 };
132 134
133 } // namespace WebCore 135 } // namespace WebCore
134 136
135 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLStyleElement.idl ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698