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

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

Issue 16959008: [CSS Grid Layout] Rename grid-{rows|columns} to grid-definition-{rows|columns} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 7 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
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 setCSSPropertiesEnabled(exclusionProperties, WTF_ARRAY_LENGTH(exclusionPrope rties), RuntimeEnabledFeatures::cssExclusionsEnabled()); 65 setCSSPropertiesEnabled(exclusionProperties, WTF_ARRAY_LENGTH(exclusionPrope rties), RuntimeEnabledFeatures::cssExclusionsEnabled());
66 CSSPropertyID css3TextDecorationProperties[] = { 66 CSSPropertyID css3TextDecorationProperties[] = {
67 CSSPropertyTextDecorationColor, 67 CSSPropertyTextDecorationColor,
68 CSSPropertyTextDecorationLine, 68 CSSPropertyTextDecorationLine,
69 CSSPropertyTextDecorationStyle, 69 CSSPropertyTextDecorationStyle,
70 }; 70 };
71 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); 71 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled());
72 CSSPropertyID cssGridLayoutProperties[] = { 72 CSSPropertyID cssGridLayoutProperties[] = {
73 CSSPropertyGridAutoColumns, 73 CSSPropertyGridAutoColumns,
74 CSSPropertyGridAutoRows, 74 CSSPropertyGridAutoRows,
75 CSSPropertyGridColumns, 75 CSSPropertyGridDefinitionColumns,
76 CSSPropertyGridRows, 76 CSSPropertyGridDefinitionRows,
77 CSSPropertyGridStart, 77 CSSPropertyGridStart,
78 CSSPropertyGridEnd, 78 CSSPropertyGridEnd,
79 CSSPropertyGridBefore, 79 CSSPropertyGridBefore,
80 CSSPropertyGridAfter, 80 CSSPropertyGridAfter,
81 CSSPropertyGridColumn, 81 CSSPropertyGridColumn,
82 CSSPropertyGridRow, 82 CSSPropertyGridRow,
83 CSSPropertyGridArea, 83 CSSPropertyGridArea,
84 CSSPropertyGridAutoFlow 84 CSSPropertyGridAutoFlow
85 }; 85 };
86 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled()); 86 setCSSPropertiesEnabled(cssGridLayoutProperties, WTF_ARRAY_LENGTH(cssGridLay outProperties), RuntimeEnabledFeatures::cssGridLayoutEnabled());
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 121 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
122 { 122 {
123 for (unsigned i = 0; i < propertyCount; i++) { 123 for (unsigned i = 0; i < propertyCount; i++) {
124 CSSPropertyID property = properties[i]; 124 CSSPropertyID property = properties[i];
125 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 125 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
126 outVector.append(property); 126 outVector.append(property);
127 } 127 }
128 } 128 }
129 129
130 } // namespace WebCore 130 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698