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

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

Issue 333423005: [CSS Grid Layout] Implement 'justify-items' parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch rebased. Created 6 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 CSSPropertyGridColumnEnd, 72 CSSPropertyGridColumnEnd,
73 CSSPropertyGridRowStart, 73 CSSPropertyGridRowStart,
74 CSSPropertyGridRowEnd, 74 CSSPropertyGridRowEnd,
75 CSSPropertyGridColumn, 75 CSSPropertyGridColumn,
76 CSSPropertyGridRow, 76 CSSPropertyGridRow,
77 CSSPropertyGridArea, 77 CSSPropertyGridArea,
78 CSSPropertyGridAutoFlow, 78 CSSPropertyGridAutoFlow,
79 CSSPropertyGridTemplateAreas, 79 CSSPropertyGridTemplateAreas,
80 CSSPropertyGridTemplate, 80 CSSPropertyGridTemplate,
81 CSSPropertyGrid, 81 CSSPropertyGrid,
82 CSSPropertyJustifySelf 82 CSSPropertyJustifySelf,
83 CSSPropertyJustifyItems
83 }; 84 };
84 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); 85 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled());
85 CSSPropertyID cssObjectFitPositionProperties[] = { 86 CSSPropertyID cssObjectFitPositionProperties[] = {
86 CSSPropertyObjectFit, 87 CSSPropertyObjectFit,
87 CSSPropertyObjectPosition 88 CSSPropertyObjectPosition
88 }; 89 };
89 setCSSPropertiesEnabled(cssObjectFitPositionProperties, WTF_ARRAY_LENGTH(css ObjectFitPositionProperties), RuntimeEnabledFeatures::objectFitPositionEnabled() ); 90 setCSSPropertiesEnabled(cssObjectFitPositionProperties, WTF_ARRAY_LENGTH(css ObjectFitPositionProperties), RuntimeEnabledFeatures::objectFitPositionEnabled() );
90 91
91 CSSPropertyID animationProperties[] = { 92 CSSPropertyID animationProperties[] = {
92 CSSPropertyAnimation, 93 CSSPropertyAnimation,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 164 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
164 { 165 {
165 for (unsigned i = 0; i < propertyCount; i++) { 166 for (unsigned i = 0; i < propertyCount; i++) {
166 CSSPropertyID property = properties[i]; 167 CSSPropertyID property = properties[i];
167 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 168 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
168 outVector.append(property); 169 outVector.append(property);
169 } 170 }
170 } 171 }
171 172
172 } // namespace WebCore 173 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698