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

Side by Side Diff: Source/core/page/RuntimeCSSEnabled.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test for watching dynamic attribute changes Created 7 years, 4 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/loader/FrameLoaderClient.h ('k') | Source/core/page/UseCounter.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) 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 CSSPropertyGridRow, 86 CSSPropertyGridRow,
87 CSSPropertyGridArea, 87 CSSPropertyGridArea,
88 CSSPropertyGridAutoFlow 88 CSSPropertyGridAutoFlow
89 }; 89 };
90 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); 90 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled());
91 91
92 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run timeEnabledFeatures::cssCompositingEnabled()); 92 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run timeEnabledFeatures::cssCompositingEnabled());
93 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna bledFeatures::cssCompositingEnabled()); 93 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna bledFeatures::cssCompositingEnabled());
94 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab ledFeatures::cssTouchActionEnabled()); 94 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab ledFeatures::cssTouchActionEnabled());
95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled Features::cssVariablesEnabled()); 95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled Features::cssVariablesEnabled());
96
97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyInternalCallback, false) ;
96 } 98 }
97 99
98 static BoolVector& propertySwitches() 100 static BoolVector& propertySwitches()
99 { 101 {
100 static BoolVector* switches = 0; 102 static BoolVector* switches = 0;
101 if (!switches) { 103 if (!switches) {
102 switches = new BoolVector; 104 switches = new BoolVector;
103 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las tCSSProperty range (eg. CSSPropertyVariable). 105 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las tCSSProperty range (eg. CSSPropertyVariable).
104 switches->fill(true, lastCSSProperty + 1); 106 switches->fill(true, lastCSSProperty + 1);
105 setPropertySwitchesFromRuntimeFeatures(); 107 setPropertySwitchesFromRuntimeFeatures();
(...skipping 21 matching lines...) Expand all
127 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 129 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
128 { 130 {
129 for (unsigned i = 0; i < propertyCount; i++) { 131 for (unsigned i = 0; i < propertyCount; i++) {
130 CSSPropertyID property = properties[i]; 132 CSSPropertyID property = properties[i];
131 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 133 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
132 outVector.append(property); 134 outVector.append(property);
133 } 135 }
134 } 136 }
135 137
136 } // namespace WebCore 138 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698