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

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

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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
« no previous file with comments | « Source/core/style/ComputedStyleConstants.h ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #endif 54 #endif
55 DEFINE_WRAPPERTYPEINFO(); 55 DEFINE_WRAPPERTYPEINFO();
56 public: 56 public:
57 class Backup { 57 class Backup {
58 public: 58 public:
59 explicit Backup(Settings*); 59 explicit Backup(Settings*);
60 void restoreTo(Settings*); 60 void restoreTo(Settings*);
61 61
62 bool m_originalAuthorShadowDOMForAnyElementEnabled; 62 bool m_originalAuthorShadowDOMForAnyElementEnabled;
63 bool m_originalCSP; 63 bool m_originalCSP;
64 bool m_originalCSSStickyPositionEnabled;
64 bool m_originalOverlayScrollbarsEnabled; 65 bool m_originalOverlayScrollbarsEnabled;
65 EditingBehaviorType m_originalEditingBehavior; 66 EditingBehaviorType m_originalEditingBehavior;
66 bool m_originalTextAutosizingEnabled; 67 bool m_originalTextAutosizingEnabled;
67 IntSize m_originalTextAutosizingWindowSizeOverride; 68 IntSize m_originalTextAutosizingWindowSizeOverride;
68 float m_originalAccessibilityFontScaleFactor; 69 float m_originalAccessibilityFontScaleFactor;
69 String m_originalMediaTypeOverride; 70 String m_originalMediaTypeOverride;
70 WebDisplayMode m_originalDisplayModeOverride; 71 WebDisplayMode m_originalDisplayModeOverride;
71 bool m_originalMockScrollbarsEnabled; 72 bool m_originalMockScrollbarsEnabled;
72 bool m_originalMockGestureTapHighlightsEnabled; 73 bool m_originalMockGestureTapHighlightsEnabled;
73 bool m_langAttributeAwareFormControlUIEnabled; 74 bool m_langAttributeAwareFormControlUIEnabled;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void setTextTrackKindUserPreference(const String& preference, ExceptionState &); 112 void setTextTrackKindUserPreference(const String& preference, ExceptionState &);
112 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ; 113 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ;
113 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); 114 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&);
114 void setViewportEnabled(bool, ExceptionState&); 115 void setViewportEnabled(bool, ExceptionState&);
115 void setViewportMetaEnabled(bool, ExceptionState&); 116 void setViewportMetaEnabled(bool, ExceptionState&);
116 117
117 // FIXME: The following are RuntimeEnabledFeatures and likely 118 // FIXME: The following are RuntimeEnabledFeatures and likely
118 // cannot be changed after process start. These setters should 119 // cannot be changed after process start. These setters should
119 // be removed or moved onto internals.runtimeFlags: 120 // be removed or moved onto internals.runtimeFlags:
120 void setAuthorShadowDOMForAnyElementEnabled(bool); 121 void setAuthorShadowDOMForAnyElementEnabled(bool);
122 void setCSSStickyPositionEnabled(bool);
121 void setLangAttributeAwareFormControlUIEnabled(bool); 123 void setLangAttributeAwareFormControlUIEnabled(bool);
122 void setOverlayScrollbarsEnabled(bool); 124 void setOverlayScrollbarsEnabled(bool);
123 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 125 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
124 void setImageColorProfilesEnabled(bool); 126 void setImageColorProfilesEnabled(bool);
125 void setImageAnimationPolicy(const String&, ExceptionState&); 127 void setImageAnimationPolicy(const String&, ExceptionState&);
126 void setScrollTopLeftInteropEnabled(bool); 128 void setScrollTopLeftInteropEnabled(bool);
127 void setLinkHeaderEnabled(bool); 129 void setLinkHeaderEnabled(bool);
128 130
129 DECLARE_VIRTUAL_TRACE(); 131 DECLARE_VIRTUAL_TRACE();
130 132
(...skipping 11 matching lines...) Expand all
142 Page* page() const { return m_page; } 144 Page* page() const { return m_page; }
143 static const char* supplementName(); 145 static const char* supplementName();
144 146
145 RawPtrWillBeWeakMember<Page> m_page; 147 RawPtrWillBeWeakMember<Page> m_page;
146 Backup m_backup; 148 Backup m_backup;
147 }; 149 };
148 150
149 } // namespace blink 151 } // namespace blink
150 152
151 #endif // InternalSettings_h 153 #endif // InternalSettings_h
OLDNEW
« no previous file with comments | « Source/core/style/ComputedStyleConstants.h ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698