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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 CSSPropertyShapePadding, | 64 CSSPropertyShapePadding, |
65 CSSPropertyShapeImageThreshold, | 65 CSSPropertyShapeImageThreshold, |
66 CSSPropertyShapeInside, | 66 CSSPropertyShapeInside, |
67 CSSPropertyShapeOutside, | 67 CSSPropertyShapeOutside, |
68 }; | 68 }; |
69 setCSSPropertiesEnabled(shapeProperties, WTF_ARRAY_LENGTH(shapeProperties),
RuntimeEnabledFeatures::cssShapesEnabled()); | 69 setCSSPropertiesEnabled(shapeProperties, WTF_ARRAY_LENGTH(shapeProperties),
RuntimeEnabledFeatures::cssShapesEnabled()); |
70 CSSPropertyID css3TextDecorationProperties[] = { | 70 CSSPropertyID css3TextDecorationProperties[] = { |
71 CSSPropertyTextDecorationColor, | 71 CSSPropertyTextDecorationColor, |
72 CSSPropertyTextDecorationLine, | 72 CSSPropertyTextDecorationLine, |
73 CSSPropertyTextDecorationStyle, | 73 CSSPropertyTextDecorationStyle, |
| 74 CSSPropertyTextUnderlinePosition, |
74 }; | 75 }; |
75 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T
extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | 76 setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T
extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); |
76 CSSPropertyID css3TextProperties[] = { | 77 CSSPropertyID css3TextProperties[] = { |
77 CSSPropertyTextAlignLast, | 78 CSSPropertyTextAlignLast, |
78 CSSPropertyTextJustify, | 79 CSSPropertyTextJustify, |
79 }; | 80 }; |
80 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); | 81 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); |
81 CSSPropertyID cssGridLayoutProperties[] = { | 82 CSSPropertyID cssGridLayoutProperties[] = { |
82 CSSPropertyGridAutoColumns, | 83 CSSPropertyGridAutoColumns, |
83 CSSPropertyGridAutoRows, | 84 CSSPropertyGridAutoRows, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |