| 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 CSSPropertyTextJustify, |
| 77 }; | 78 }; |
| 78 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); | 79 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); |
| 79 CSSPropertyID cssGridLayoutProperties[] = { | 80 CSSPropertyID cssGridLayoutProperties[] = { |
| 80 CSSPropertyGridAutoColumns, | 81 CSSPropertyGridAutoColumns, |
| 81 CSSPropertyGridAutoRows, | 82 CSSPropertyGridAutoRows, |
| 82 CSSPropertyGridDefinitionColumns, | 83 CSSPropertyGridDefinitionColumns, |
| 83 CSSPropertyGridDefinitionRows, | 84 CSSPropertyGridDefinitionRows, |
| 84 CSSPropertyGridColumnStart, | 85 CSSPropertyGridColumnStart, |
| 85 CSSPropertyGridColumnEnd, | 86 CSSPropertyGridColumnEnd, |
| 86 CSSPropertyGridRowStart, | 87 CSSPropertyGridRowStart, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 162 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
| 162 { | 163 { |
| 163 for (unsigned i = 0; i < propertyCount; i++) { | 164 for (unsigned i = 0; i < propertyCount; i++) { |
| 164 CSSPropertyID property = properties[i]; | 165 CSSPropertyID property = properties[i]; |
| 165 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 166 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
| 166 outVector.append(property); | 167 outVector.append(property); |
| 167 } | 168 } |
| 168 } | 169 } |
| 169 | 170 |
| 170 } // namespace WebCore | 171 } // namespace WebCore |
| OLD | NEW |