| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57     CSSPropertyID exclusionProperties[] = { | 57     CSSPropertyID exclusionProperties[] = { | 
| 58         CSSPropertyWebkitWrap, | 58         CSSPropertyWebkitWrap, | 
| 59         CSSPropertyWebkitWrapFlow, | 59         CSSPropertyWebkitWrapFlow, | 
| 60         CSSPropertyWebkitShapeMargin, | 60         CSSPropertyWebkitShapeMargin, | 
| 61         CSSPropertyWebkitShapePadding, | 61         CSSPropertyWebkitShapePadding, | 
| 62         CSSPropertyWebkitWrapThrough, | 62         CSSPropertyWebkitWrapThrough, | 
| 63         CSSPropertyWebkitShapeInside, | 63         CSSPropertyWebkitShapeInside, | 
| 64         CSSPropertyWebkitShapeOutside, | 64         CSSPropertyWebkitShapeOutside, | 
| 65     }; | 65     }; | 
| 66     setCSSPropertiesEnabled(exclusionProperties, WTF_ARRAY_LENGTH(exclusionPrope
     rties), RuntimeEnabledFeatures::cssExclusionsEnabled()); | 66     setCSSPropertiesEnabled(exclusionProperties, WTF_ARRAY_LENGTH(exclusionPrope
     rties), RuntimeEnabledFeatures::cssExclusionsEnabled()); | 
|  | 67     CSSPropertyID css3TextDecorationProperties[] = { | 
|  | 68         CSSPropertyTextDecorationColor, | 
|  | 69         CSSPropertyTextDecorationLine, | 
|  | 70         CSSPropertyTextDecorationStyle, | 
|  | 71     }; | 
|  | 72     setCSSPropertiesEnabled(css3TextDecorationProperties, WTF_ARRAY_LENGTH(css3T
     extDecorationProperties), RuntimeEnabledFeatures::css3TextDecorationsEnabled()); | 
| 67 | 73 | 
| 68     RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
     timeEnabledFeatures::cssCompositingEnabled()); | 74     RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyBackgroundBlendMode, Run
     timeEnabledFeatures::cssCompositingEnabled()); | 
| 69     RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
     bledFeatures::cssCompositingEnabled()); | 75     RuntimeCSSEnabled::setCSSPropertyEnabled(CSSPropertyMixBlendMode, RuntimeEna
     bledFeatures::cssCompositingEnabled()); | 
| 70 } | 76 } | 
| 71 | 77 | 
| 72 static BoolVector& propertySwitches() | 78 static BoolVector& propertySwitches() | 
| 73 { | 79 { | 
| 74     static BoolVector* switches = 0; | 80     static BoolVector* switches = 0; | 
| 75     if (!switches) { | 81     if (!switches) { | 
| 76         switches = new BoolVector; | 82         switches = new BoolVector; | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 100 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
     * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 106 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID
     * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 
| 101 { | 107 { | 
| 102     for (unsigned i = 0; i < propertyCount; i++) { | 108     for (unsigned i = 0; i < propertyCount; i++) { | 
| 103         CSSPropertyID property = properties[i]; | 109         CSSPropertyID property = properties[i]; | 
| 104         if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 110         if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) | 
| 105             outVector.append(property); | 111             outVector.append(property); | 
| 106     } | 112     } | 
| 107 } | 113 } | 
| 108 | 114 | 
| 109 } // namespace WebCore | 115 } // namespace WebCore | 
| OLD | NEW | 
|---|