OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |