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

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

Issue 176853007: [CSS Grid Layout] Implementation of the grid shorthand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed compilation error in debug. Created 6 years, 8 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/css/CSSShorthands.in ('k') | Source/core/css/parser/CSSPropertyParser.h » ('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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 CSSPropertyGridColumnStart, 76 CSSPropertyGridColumnStart,
77 CSSPropertyGridColumnEnd, 77 CSSPropertyGridColumnEnd,
78 CSSPropertyGridRowStart, 78 CSSPropertyGridRowStart,
79 CSSPropertyGridRowEnd, 79 CSSPropertyGridRowEnd,
80 CSSPropertyGridColumn, 80 CSSPropertyGridColumn,
81 CSSPropertyGridRow, 81 CSSPropertyGridRow,
82 CSSPropertyGridArea, 82 CSSPropertyGridArea,
83 CSSPropertyGridAutoFlow, 83 CSSPropertyGridAutoFlow,
84 CSSPropertyGridTemplateAreas, 84 CSSPropertyGridTemplateAreas,
85 CSSPropertyGridTemplate, 85 CSSPropertyGridTemplate,
86 CSSPropertyGrid,
86 CSSPropertyJustifySelf 87 CSSPropertyJustifySelf
87 }; 88 };
88 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); 89 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled());
89 CSSPropertyID cssObjectFitPositionProperties[] = { 90 CSSPropertyID cssObjectFitPositionProperties[] = {
90 CSSPropertyObjectFit, 91 CSSPropertyObjectFit,
91 CSSPropertyObjectPosition 92 CSSPropertyObjectPosition
92 }; 93 };
93 setCSSPropertiesEnabled(cssObjectFitPositionProperties, WTF_ARRAY_LENGTH(css ObjectFitPositionProperties), RuntimeEnabledFeatures::objectFitPositionEnabled() ); 94 setCSSPropertiesEnabled(cssObjectFitPositionProperties, WTF_ARRAY_LENGTH(css ObjectFitPositionProperties), RuntimeEnabledFeatures::objectFitPositionEnabled() );
94 95
95 CSSPropertyID animationProperties[] = { 96 CSSPropertyID animationProperties[] = {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 166 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
166 { 167 {
167 for (unsigned i = 0; i < propertyCount; i++) { 168 for (unsigned i = 0; i < propertyCount; i++) {
168 CSSPropertyID property = properties[i]; 169 CSSPropertyID property = properties[i];
169 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 170 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
170 outVector.append(property); 171 outVector.append(property);
171 } 172 }
172 } 173 }
173 174
174 } // namespace WebCore 175 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSShorthands.in ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698