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

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

Issue 279763002: Support a negation pseudo-class, :not(), in <content select> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update Created 6 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
« no previous file with comments | « Source/core/html/HTMLContentElement.cpp ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 EditingBehaviorType m_originalEditingBehavior; 63 EditingBehaviorType m_originalEditingBehavior;
64 bool m_originalTextAutosizingEnabled; 64 bool m_originalTextAutosizingEnabled;
65 IntSize m_originalTextAutosizingWindowSizeOverride; 65 IntSize m_originalTextAutosizingWindowSizeOverride;
66 float m_originalAccessibilityFontScaleFactor; 66 float m_originalAccessibilityFontScaleFactor;
67 String m_originalMediaTypeOverride; 67 String m_originalMediaTypeOverride;
68 bool m_originalMockScrollbarsEnabled; 68 bool m_originalMockScrollbarsEnabled;
69 bool m_langAttributeAwareFormControlUIEnabled; 69 bool m_langAttributeAwareFormControlUIEnabled;
70 bool m_imagesEnabled; 70 bool m_imagesEnabled;
71 String m_defaultVideoPosterURL; 71 String m_defaultVideoPosterURL;
72 bool m_originalLayerSquashingEnabled; 72 bool m_originalLayerSquashingEnabled;
73 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ;
73 }; 74 };
74 75
75 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) 76 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page)
76 { 77 {
77 return adoptRefWillBeNoop(new InternalSettings(page)); 78 return adoptRefWillBeNoop(new InternalSettings(page));
78 } 79 }
79 static InternalSettings* from(Page&); 80 static InternalSettings* from(Page&);
80 81
81 #if !ENABLE(OILPAN) 82 #if !ENABLE(OILPAN)
82 void hostDestroyed() { m_page = nullptr; } 83 void hostDestroyed() { m_page = nullptr; }
(...skipping 26 matching lines...) Expand all
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);
117 void setStyleScopedEnabled(bool); 118 void setStyleScopedEnabled(bool);
118 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 119 void setExperimentalContentSecurityPolicyFeaturesEnabled(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/HTMLContentElement.cpp ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698