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

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

Issue 22482004: Add support for the object-fit CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase for landing 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 CSSPropertyGridColumn, 88 CSSPropertyGridColumn,
89 CSSPropertyGridRow, 89 CSSPropertyGridRow,
90 CSSPropertyGridArea, 90 CSSPropertyGridArea,
91 CSSPropertyGridAutoFlow 91 CSSPropertyGridAutoFlow
92 }; 92 };
93 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); 93 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled());
94 94
95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run timeEnabledFeatures::cssCompositingEnabled()); 95 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run timeEnabledFeatures::cssCompositingEnabled());
96 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna bledFeatures::cssCompositingEnabled()); 96 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna bledFeatures::cssCompositingEnabled());
97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab ledFeatures::cssTouchActionEnabled()); 97 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyTouchAction, RuntimeEnab ledFeatures::cssTouchActionEnabled());
98 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyPaintOrder, RuntimeEnabl edFeatures::svgPaintOrderEnabled());
98 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled Features::cssVariablesEnabled()); 99 RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyVariable, RuntimeEnabled Features::cssVariablesEnabled());
99 } 100 }
100 101
101 static BoolVector& propertySwitches() 102 static BoolVector& propertySwitches()
102 { 103 {
103 static BoolVector* switches = 0; 104 static BoolVector* switches = 0;
104 if (!switches) { 105 if (!switches) {
105 switches = new BoolVector; 106 switches = new BoolVector;
106 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las tCSSProperty range (eg. CSSPropertyVariable). 107 // Accomodate CSSPropertyIDs that fall outside the firstCSSProperty, las tCSSProperty range (eg. CSSPropertyVariable).
107 switches->fill(true, lastCSSProperty + 1); 108 switches->fill(true, lastCSSProperty + 1);
(...skipping 27 matching lines...) Expand all
135 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 136 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
136 { 137 {
137 for (unsigned i = 0; i < propertyCount; i++) { 138 for (unsigned i = 0; i < propertyCount; i++) {
138 CSSPropertyID property = properties[i]; 139 CSSPropertyID property = properties[i];
139 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 140 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
140 outVector.append(property); 141 outVector.append(property);
141 } 142 }
142 } 143 }
143 144
144 } // namespace WebCore 145 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698