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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 }; | 67 }; |
68 setCSSPropertiesEnabled(shapeProperties, WTF_ARRAY_LENGTH(shapeProperties),
RuntimeEnabledFeatures::cssShapesEnabled()); | 68 setCSSPropertiesEnabled(shapeProperties, WTF_ARRAY_LENGTH(shapeProperties),
RuntimeEnabledFeatures::cssShapesEnabled()); |
69 CSSPropertyID css3TextDecorationProperties[] = { | 69 CSSPropertyID css3TextDecorationProperties[] = { |
70 CSSPropertyTextDecorationColor, | 70 CSSPropertyTextDecorationColor, |
71 CSSPropertyTextDecorationLine, | 71 CSSPropertyTextDecorationLine, |
72 CSSPropertyTextDecorationStyle, | 72 CSSPropertyTextDecorationStyle, |
73 }; | 73 }; |
74 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T
extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | 74 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T
extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
75 CSSPropertyID css3TextProperties[] = { | 75 CSSPropertyID css3TextProperties[] = { |
76 CSSPropertyTextAlignLast, | 76 CSSPropertyTextAlignLast, |
| 77 CSSPropertyTextIndent, |
77 CSSPropertyTextJustify, | 78 CSSPropertyTextJustify, |
78 }; | 79 }; |
79 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); | 80 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); |
80 CSSPropertyID cssGridLayoutProperties[] = { | 81 CSSPropertyID cssGridLayoutProperties[] = { |
81 CSSPropertyGridAutoColumns, | 82 CSSPropertyGridAutoColumns, |
82 CSSPropertyGridAutoRows, | 83 CSSPropertyGridAutoRows, |
83 CSSPropertyGridDefinitionColumns, | 84 CSSPropertyGridDefinitionColumns, |
84 CSSPropertyGridDefinitionRows, | 85 CSSPropertyGridDefinitionRows, |
85 CSSPropertyGridColumnStart, | 86 CSSPropertyGridColumnStart, |
86 CSSPropertyGridColumnEnd, | 87 CSSPropertyGridColumnEnd, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 163 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
163 { | 164 { |
164 for (unsigned i = 0; i < propertyCount; i++) { | 165 for (unsigned i = 0; i < propertyCount; i++) { |
165 CSSPropertyID property = properties[i]; | 166 CSSPropertyID property = properties[i]; |
166 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 167 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
167 outVector.append(property); | 168 outVector.append(property); |
168 } | 169 } |
169 } | 170 } |
170 | 171 |
171 } // namespace WebCore | 172 } // namespace WebCore |
OLD | NEW |