Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/core/page/RuntimeCSSEnabled.cpp

Issue 40733004: Replace compile flag with runtime check for text-underline-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's review #2 (rebased) Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698