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

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

Issue 27002004: CSSPropertyTextIndent should be a member of css3TextProperties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing 3 Created 7 years, 2 months 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
« no previous file with comments | « LayoutTests/webexposed/nonstable-css-properties-expected.txt ('k') | no next file » | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyTextIndent,
77 CSSPropertyTextJustify, 78 CSSPropertyTextJustify,
78 }; 79 };
79 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert ies), RuntimeEnabledFeatures::css3TextEnabled()); 80 setCSSPropertiesEnabled(css3TextProperties, WTF_ARRAY_LENGTH(css3TextPropert ies), RuntimeEnabledFeatures::css3TextEnabled());
80 CSSPropertyID cssGridLayoutProperties[] = { 81 CSSPropertyID cssGridLayoutProperties[] = {
81 CSSPropertyGridAutoColumns, 82 CSSPropertyGridAutoColumns,
82 CSSPropertyGridAutoRows, 83 CSSPropertyGridAutoRows,
83 CSSPropertyGridDefinitionColumns, 84 CSSPropertyGridDefinitionColumns,
84 CSSPropertyGridDefinitionRows, 85 CSSPropertyGridDefinitionRows,
85 CSSPropertyGridColumnStart, 86 CSSPropertyGridColumnStart,
86 CSSPropertyGridColumnEnd, 87 CSSPropertyGridColumnEnd,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) 163 void RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(const CSSPropertyID * properties, size_t propertyCount, Vector<CSSPropertyID>& outVector)
163 { 164 {
164 for (unsigned i = 0; i < propertyCount; i++) { 165 for (unsigned i = 0; i < propertyCount; i++) {
165 CSSPropertyID property = properties[i]; 166 CSSPropertyID property = properties[i];
166 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property)) 167 if (RuntimeCSSEnabled::isCSSPropertyEnabled(property))
167 outVector.append(property); 168 outVector.append(property);
168 } 169 }
169 } 170 }
170 171
171 } // namespace WebCore 172 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/nonstable-css-properties-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698