| 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 }; | 64 }; |
| 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 css3TextProperties[] = { | 72 CSSPropertyID css3TextProperties[] = { |
| 73 CSSPropertyTextAlignLast, | 73 CSSPropertyTextAlignLast, |
| 74 CSSPropertyTextJustify, |
| 74 }; | 75 }; |
| 75 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); | 76 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert
ies), RuntimeEnabledFeatures::css3TextEnabled()); |
| 76 CSSPropertyID cssGridLayoutProperties[] = { | 77 CSSPropertyID cssGridLayoutProperties[] = { |
| 77 CSSPropertyGridAutoColumns, | 78 CSSPropertyGridAutoColumns, |
| 78 CSSPropertyGridAutoRows, | 79 CSSPropertyGridAutoRows, |
| 79 CSSPropertyGridDefinitionColumns, | 80 CSSPropertyGridDefinitionColumns, |
| 80 CSSPropertyGridDefinitionRows, | 81 CSSPropertyGridDefinitionRows, |
| 81 CSSPropertyGridColumnStart, | 82 CSSPropertyGridColumnStart, |
| 82 CSSPropertyGridColumnEnd, | 83 CSSPropertyGridColumnEnd, |
| 83 CSSPropertyGridRowStart, | 84 CSSPropertyGridRowStart, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 126 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
| 126 { | 127 { |
| 127 for (unsigned i = 0; i < propertyCount; i++) { | 128 for (unsigned i = 0; i < propertyCount; i++) { |
| 128 CSSPropertyID property = properties[i]; | 129 CSSPropertyID property = properties[i]; |
| 129 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 130 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) |
| 130 outVector.append(property); | 131 outVector.append(property); |
| 131 } | 132 } |
| 132 } | 133 } |
| 133 | 134 |
| 134 } // namespace WebCore | 135 } // namespace WebCore |
| OLD | NEW |