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

Side by Side Diff: sky/engine/core/css/CSSComputedStyleDeclaration.cpp

Issue 892903002: Remove -webkit-mask-*. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix goofups Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 CSSPropertyFlexShrink, 213 CSSPropertyFlexShrink,
214 CSSPropertyFlexDirection, 214 CSSPropertyFlexDirection,
215 CSSPropertyFlexWrap, 215 CSSPropertyFlexWrap,
216 CSSPropertyJustifyContent, 216 CSSPropertyJustifyContent,
217 CSSPropertyWebkitFontSmoothing, 217 CSSPropertyWebkitFontSmoothing,
218 CSSPropertyWebkitHighlight, 218 CSSPropertyWebkitHighlight,
219 CSSPropertyWebkitHyphenateCharacter, 219 CSSPropertyWebkitHyphenateCharacter,
220 CSSPropertyWebkitLineBoxContain, 220 CSSPropertyWebkitLineBoxContain,
221 CSSPropertyWebkitLineBreak, 221 CSSPropertyWebkitLineBreak,
222 CSSPropertyWebkitLocale, 222 CSSPropertyWebkitLocale,
223 CSSPropertyWebkitMaskBoxImage,
224 CSSPropertyWebkitMaskBoxImageOutset,
225 CSSPropertyWebkitMaskBoxImageRepeat,
226 CSSPropertyWebkitMaskBoxImageSlice,
227 CSSPropertyWebkitMaskBoxImageSource,
228 CSSPropertyWebkitMaskBoxImageWidth,
229 CSSPropertyWebkitMaskClip,
230 CSSPropertyWebkitMaskComposite,
231 CSSPropertyWebkitMaskImage,
232 CSSPropertyWebkitMaskOrigin,
233 CSSPropertyWebkitMaskPosition,
234 CSSPropertyWebkitMaskRepeat,
235 CSSPropertyWebkitMaskSize,
236 CSSPropertyOrder, 223 CSSPropertyOrder,
237 CSSPropertyPerspective, 224 CSSPropertyPerspective,
238 CSSPropertyWebkitPerspective, 225 CSSPropertyWebkitPerspective,
239 CSSPropertyPerspectiveOrigin, 226 CSSPropertyPerspectiveOrigin,
240 CSSPropertyWebkitPerspectiveOrigin, 227 CSSPropertyWebkitPerspectiveOrigin,
241 CSSPropertyWebkitRtlOrdering, 228 CSSPropertyWebkitRtlOrdering,
242 CSSPropertyWebkitTapHighlightColor, 229 CSSPropertyWebkitTapHighlightColor,
243 CSSPropertyWebkitTextDecorationsInEffect, 230 CSSPropertyWebkitTextDecorationsInEffect,
244 CSSPropertyWebkitTextEmphasisColor, 231 CSSPropertyWebkitTextEmphasisColor,
245 CSSPropertyWebkitTextEmphasisPosition, 232 CSSPropertyWebkitTextEmphasisPosition,
246 CSSPropertyWebkitTextEmphasisStyle, 233 CSSPropertyWebkitTextEmphasisStyle,
247 CSSPropertyWebkitTextFillColor, 234 CSSPropertyWebkitTextFillColor,
248 CSSPropertyWebkitTextOrientation, 235 CSSPropertyWebkitTextOrientation,
249 CSSPropertyWebkitTextStrokeColor, 236 CSSPropertyWebkitTextStrokeColor,
250 CSSPropertyWebkitTextStrokeWidth, 237 CSSPropertyWebkitTextStrokeWidth,
251 CSSPropertyTransform, 238 CSSPropertyTransform,
252 CSSPropertyWebkitTransform, 239 CSSPropertyWebkitTransform,
253 CSSPropertyTransformOrigin, 240 CSSPropertyTransformOrigin,
254 CSSPropertyWebkitTransformOrigin, 241 CSSPropertyWebkitTransformOrigin,
255 CSSPropertyTransformStyle, 242 CSSPropertyTransformStyle,
256 CSSPropertyWebkitTransformStyle, 243 CSSPropertyWebkitTransformStyle,
257 CSSPropertyWebkitUserDrag, 244 CSSPropertyWebkitUserDrag,
258 CSSPropertyWebkitUserModify, 245 CSSPropertyWebkitUserModify,
259 CSSPropertyWebkitUserSelect, 246 CSSPropertyWebkitUserSelect,
260 CSSPropertyMaskSourceType,
261 }; 247 };
262 248
263 static const Vector<CSSPropertyID>& computableProperties() 249 static const Vector<CSSPropertyID>& computableProperties()
264 { 250 {
265 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); 251 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
266 if (properties.isEmpty()) 252 if (properties.isEmpty())
267 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); 253 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties);
268 return properties; 254 return properties;
269 } 255 }
270 256
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 { 425 {
440 if (length.isFixed()) 426 if (length.isFixed())
441 return pixelValue(length.value(), style); 427 return pixelValue(length.value(), style);
442 return cssValuePool().createValue(length, style); 428 return cssValuePool().createValue(length, style);
443 } 429 }
444 430
445 static PassRefPtr<CSSValueList> createPositionListForLayer(CSSPropertyID propert yID, const FillLayer& layer, const RenderStyle& style) 431 static PassRefPtr<CSSValueList> createPositionListForLayer(CSSPropertyID propert yID, const FillLayer& layer, const RenderStyle& style)
446 { 432 {
447 RefPtr<CSSValueList> positionList = CSSValueList::createSpaceSeparated(); 433 RefPtr<CSSValueList> positionList = CSSValueList::createSpaceSeparated();
448 if (layer.isBackgroundXOriginSet()) { 434 if (layer.isBackgroundXOriginSet()) {
449 ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition || propertyID == CSSPropertyWebkitMaskPosition); 435 ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition);
450 positionList->append(cssValuePool().createValue(layer.backgroundXOrigin( ))); 436 positionList->append(cssValuePool().createValue(layer.backgroundXOrigin( )));
451 } 437 }
452 positionList->append(pixelValueForLength(layer.xPosition(), style)); 438 positionList->append(pixelValueForLength(layer.xPosition(), style));
453 if (layer.isBackgroundYOriginSet()) { 439 if (layer.isBackgroundYOriginSet()) {
454 ASSERT(propertyID == CSSPropertyBackgroundPosition || propertyID == CSSP ropertyWebkitMaskPosition); 440 ASSERT(propertyID == CSSPropertyBackgroundPosition);
455 positionList->append(cssValuePool().createValue(layer.backgroundYOrigin( ))); 441 positionList->append(cssValuePool().createValue(layer.backgroundYOrigin( )));
456 } 442 }
457 positionList->append(pixelValueForLength(layer.yPosition(), style)); 443 positionList->append(pixelValueForLength(layer.yPosition(), style));
458 return positionList.release(); 444 return positionList.release();
459 } 445 }
460 446
461 static PassRefPtr<CSSValue> valueForPositionOffset(RenderStyle& style, CSSProper tyID propertyID, const RenderObject* renderer) 447 static PassRefPtr<CSSValue> valueForPositionOffset(RenderStyle& style, CSSProper tyID propertyID, const RenderObject* renderer)
462 { 448 {
463 Length l; 449 Length l;
464 switch (propertyID) { 450 switch (propertyID) {
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 return cssValuePool().createIdentifierValue(CSSValueRepeatX); 1051 return cssValuePool().createIdentifierValue(CSSValueRepeatX);
1066 if (xRepeat == NoRepeatFill && yRepeat == RepeatFill) 1052 if (xRepeat == NoRepeatFill && yRepeat == RepeatFill)
1067 return cssValuePool().createIdentifierValue(CSSValueRepeatY); 1053 return cssValuePool().createIdentifierValue(CSSValueRepeatY);
1068 1054
1069 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); 1055 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
1070 list->append(cssValuePool().createValue(xRepeat)); 1056 list->append(cssValuePool().createValue(xRepeat));
1071 list->append(cssValuePool().createValue(yRepeat)); 1057 list->append(cssValuePool().createValue(yRepeat));
1072 return list.release(); 1058 return list.release();
1073 } 1059 }
1074 1060
1075 static PassRefPtr<CSSValue> valueForFillSourceType(EMaskSourceType type)
1076 {
1077 switch (type) {
1078 case MaskAlpha:
1079 return cssValuePool().createValue(CSSValueAlpha);
1080 case MaskLuminance:
1081 return cssValuePool().createValue(CSSValueLuminance);
1082 }
1083
1084 ASSERT_NOT_REACHED();
1085
1086 return nullptr;
1087 }
1088
1089 static PassRefPtr<CSSValue> valueForFillSize(const FillSize& fillSize, const Ren derStyle& style) 1061 static PassRefPtr<CSSValue> valueForFillSize(const FillSize& fillSize, const Ren derStyle& style)
1090 { 1062 {
1091 if (fillSize.type == Contain) 1063 if (fillSize.type == Contain)
1092 return cssValuePool().createIdentifierValue(CSSValueContain); 1064 return cssValuePool().createIdentifierValue(CSSValueContain);
1093 1065
1094 if (fillSize.type == Cover) 1066 if (fillSize.type == Cover)
1095 return cssValuePool().createIdentifierValue(CSSValueCover); 1067 return cssValuePool().createIdentifierValue(CSSValueCover);
1096 1068
1097 if (fillSize.size.height().isAuto()) 1069 if (fillSize.size.height().isAuto())
1098 return pixelValueForLength(fillSize.size.width(), style); 1070 return pixelValueForLength(fillSize.size.width(), style);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 return nullptr; 1253 return nullptr;
1282 1254
1283 propertyID = CSSProperty::resolveDirectionAwareProperty(propertyID, style->d irection()); 1255 propertyID = CSSProperty::resolveDirectionAwareProperty(propertyID, style->d irection());
1284 1256
1285 switch (propertyID) { 1257 switch (propertyID) {
1286 case CSSPropertyInvalid: 1258 case CSSPropertyInvalid:
1287 break; 1259 break;
1288 1260
1289 case CSSPropertyBackgroundColor: 1261 case CSSPropertyBackgroundColor:
1290 return m_allowVisitedStyle ? cssValuePool().createColorValue(style-> colorIncludingFallback(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidC olor(*style, style->backgroundColor()); 1262 return m_allowVisitedStyle ? cssValuePool().createColorValue(style-> colorIncludingFallback(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidC olor(*style, style->backgroundColor());
1291 case CSSPropertyBackgroundImage: 1263 case CSSPropertyBackgroundImage: {
1292 case CSSPropertyWebkitMaskImage: {
1293 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1264 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1294 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskImag e ? &style->maskLayers() : &style->backgroundLayers(); 1265 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next()) {
1295 for (; currLayer; currLayer = currLayer->next()) {
1296 if (currLayer->image()) 1266 if (currLayer->image())
1297 list->append(currLayer->image()->cssValue()); 1267 list->append(currLayer->image()->cssValue());
1298 else 1268 else
1299 list->append(cssValuePool().createIdentifierValue(CSSValueNo ne)); 1269 list->append(cssValuePool().createIdentifierValue(CSSValueNo ne));
1300 } 1270 }
1301 return list.release(); 1271 return list.release();
1302 } 1272 }
1303 case CSSPropertyBackgroundSize: 1273 case CSSPropertyBackgroundSize:
1304 case CSSPropertyWebkitBackgroundSize: 1274 case CSSPropertyWebkitBackgroundSize: {
1305 case CSSPropertyWebkitMaskSize: {
1306 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1275 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1307 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskSize ? &style->maskLayers() : &style->backgroundLayers(); 1276 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1308 for (; currLayer; currLayer = currLayer->next())
1309 list->append(valueForFillSize(currLayer->size(), *style)); 1277 list->append(valueForFillSize(currLayer->size(), *style));
1310 return list.release(); 1278 return list.release();
1311 } 1279 }
1312 case CSSPropertyBackgroundRepeat: 1280 case CSSPropertyBackgroundRepeat: {
1313 case CSSPropertyWebkitMaskRepeat: {
1314 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1281 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1315 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskRepe at ? &style->maskLayers() : &style->backgroundLayers(); 1282 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1316 for (; currLayer; currLayer = currLayer->next())
1317 list->append(valueForFillRepeat(currLayer->repeatX(), currLayer- >repeatY())); 1283 list->append(valueForFillRepeat(currLayer->repeatX(), currLayer- >repeatY()));
1318 return list.release(); 1284 return list.release();
1319 } 1285 }
1320 case CSSPropertyMaskSourceType: { 1286 case CSSPropertyWebkitBackgroundComposite: {
1321 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1287 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1322 for (const FillLayer* currLayer = &style->maskLayers(); currLayer; c urrLayer = currLayer->next()) 1288 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1323 list->append(valueForFillSourceType(currLayer->maskSourceType()) );
1324 return list.release();
1325 }
1326 case CSSPropertyWebkitBackgroundComposite:
1327 case CSSPropertyWebkitMaskComposite: {
1328 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1329 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskComp osite ? &style->maskLayers() : &style->backgroundLayers();
1330 for (; currLayer; currLayer = currLayer->next())
1331 list->append(cssValuePool().createValue(currLayer->composite())) ; 1289 list->append(cssValuePool().createValue(currLayer->composite())) ;
1332 return list.release(); 1290 return list.release();
1333 } 1291 }
1334 case CSSPropertyBackgroundAttachment: { 1292 case CSSPropertyBackgroundAttachment: {
1335 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1293 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1336 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next()) 1294 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1337 list->append(cssValuePool().createValue(currLayer->attachment()) ); 1295 list->append(cssValuePool().createValue(currLayer->attachment()) );
1338 return list.release(); 1296 return list.release();
1339 } 1297 }
1340 case CSSPropertyBackgroundClip: 1298 case CSSPropertyBackgroundClip:
1341 case CSSPropertyBackgroundOrigin: 1299 case CSSPropertyBackgroundOrigin:
1342 case CSSPropertyWebkitBackgroundClip: 1300 case CSSPropertyWebkitBackgroundClip:
1343 case CSSPropertyWebkitBackgroundOrigin: 1301 case CSSPropertyWebkitBackgroundOrigin: {
1344 case CSSPropertyWebkitMaskClip: 1302 bool isClip = propertyID == CSSPropertyBackgroundClip || propertyID == CSSPropertyWebkitBackgroundClip;
1345 case CSSPropertyWebkitMaskOrigin: {
1346 bool isClip = propertyID == CSSPropertyBackgroundClip || propertyID == CSSPropertyWebkitBackgroundClip || propertyID == CSSPropertyWebkitMaskClip;
1347 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1303 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1348 const FillLayer* currLayer = (propertyID == CSSPropertyWebkitMaskCli p || propertyID == CSSPropertyWebkitMaskOrigin) ? &style->maskLayers() : &style- >backgroundLayers(); 1304 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next()) {
1349 for (; currLayer; currLayer = currLayer->next()) {
1350 EFillBox box = isClip ? currLayer->clip() : currLayer->origin(); 1305 EFillBox box = isClip ? currLayer->clip() : currLayer->origin();
1351 list->append(cssValuePool().createValue(box)); 1306 list->append(cssValuePool().createValue(box));
1352 } 1307 }
1353 return list.release(); 1308 return list.release();
1354 } 1309 }
1355 case CSSPropertyBackgroundPosition: 1310 case CSSPropertyBackgroundPosition: {
1356 case CSSPropertyWebkitMaskPosition: {
1357 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1311 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1358 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskPosi tion ? &style->maskLayers() : &style->backgroundLayers(); 1312 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1359 for (; currLayer; currLayer = currLayer->next())
1360 list->append(createPositionListForLayer(propertyID, *currLayer, *style)); 1313 list->append(createPositionListForLayer(propertyID, *currLayer, *style));
1361 return list.release(); 1314 return list.release();
1362 } 1315 }
1363 case CSSPropertyBackgroundPositionX: 1316 case CSSPropertyBackgroundPositionX: {
1364 case CSSPropertyWebkitMaskPositionX: {
1365 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1317 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1366 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskPosi tionX ? &style->maskLayers() : &style->backgroundLayers(); 1318 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1367 for (; currLayer; currLayer = currLayer->next())
1368 list->append(pixelValueForLength(currLayer->xPosition(), *style) ); 1319 list->append(pixelValueForLength(currLayer->xPosition(), *style) );
1369 return list.release(); 1320 return list.release();
1370 } 1321 }
1371 case CSSPropertyBackgroundPositionY: 1322 case CSSPropertyBackgroundPositionY: {
1372 case CSSPropertyWebkitMaskPositionY: {
1373 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated(); 1323 RefPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
1374 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskPosi tionY ? &style->maskLayers() : &style->backgroundLayers(); 1324 for (const FillLayer* currLayer = &style->backgroundLayers(); currLa yer; currLayer = currLayer->next())
1375 for (; currLayer; currLayer = currLayer->next())
1376 list->append(pixelValueForLength(currLayer->yPosition(), *style) ); 1325 list->append(pixelValueForLength(currLayer->yPosition(), *style) );
1377 return list.release(); 1326 return list.release();
1378 } 1327 }
1379 case CSSPropertyBorderSpacing: { 1328 case CSSPropertyBorderSpacing: {
1380 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); 1329 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
1381 list->append(pixelValue(style->horizontalBorderSpacing(), *style)); 1330 list->append(pixelValue(style->horizontalBorderSpacing(), *style));
1382 list->append(pixelValue(style->verticalBorderSpacing(), *style)); 1331 list->append(pixelValue(style->verticalBorderSpacing(), *style));
1383 return list.release(); 1332 return list.release();
1384 } 1333 }
1385 case CSSPropertyWebkitBorderHorizontalSpacing: 1334 case CSSPropertyWebkitBorderHorizontalSpacing:
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 case CSSPropertyWebkitBorderImage: 1903 case CSSPropertyWebkitBorderImage:
1955 return valueForNinePieceImage(style->borderImage(), *style); 1904 return valueForNinePieceImage(style->borderImage(), *style);
1956 case CSSPropertyBorderImageOutset: 1905 case CSSPropertyBorderImageOutset:
1957 return valueForNinePieceImageQuad(style->borderImage().outset(), *st yle); 1906 return valueForNinePieceImageQuad(style->borderImage().outset(), *st yle);
1958 case CSSPropertyBorderImageRepeat: 1907 case CSSPropertyBorderImageRepeat:
1959 return valueForNinePieceImageRepeat(style->borderImage()); 1908 return valueForNinePieceImageRepeat(style->borderImage());
1960 case CSSPropertyBorderImageSlice: 1909 case CSSPropertyBorderImageSlice:
1961 return valueForNinePieceImageSlice(style->borderImage()); 1910 return valueForNinePieceImageSlice(style->borderImage());
1962 case CSSPropertyBorderImageWidth: 1911 case CSSPropertyBorderImageWidth:
1963 return valueForNinePieceImageQuad(style->borderImage().borderSlices( ), *style); 1912 return valueForNinePieceImageQuad(style->borderImage().borderSlices( ), *style);
1964 case CSSPropertyWebkitMaskBoxImage:
1965 return valueForNinePieceImage(style->maskBoxImage(), *style);
1966 case CSSPropertyWebkitMaskBoxImageOutset:
1967 return valueForNinePieceImageQuad(style->maskBoxImage().outset(), *s tyle);
1968 case CSSPropertyWebkitMaskBoxImageRepeat:
1969 return valueForNinePieceImageRepeat(style->maskBoxImage());
1970 case CSSPropertyWebkitMaskBoxImageSlice:
1971 return valueForNinePieceImageSlice(style->maskBoxImage());
1972 case CSSPropertyWebkitMaskBoxImageWidth:
1973 return valueForNinePieceImageQuad(style->maskBoxImage().borderSlices (), *style);
1974 case CSSPropertyWebkitMaskBoxImageSource:
1975 if (style->maskBoxImageSource())
1976 return style->maskBoxImageSource()->cssValue();
1977 return cssValuePool().createIdentifierValue(CSSValueNone);
1978 case CSSPropertyWebkitFontSizeDelta: 1913 case CSSPropertyWebkitFontSizeDelta:
1979 // Not a real style property -- used by the editing engine -- so has no computed value. 1914 // Not a real style property -- used by the editing engine -- so has no computed value.
1980 break; 1915 break;
1981 case CSSPropertyPerspective: 1916 case CSSPropertyPerspective:
1982 case CSSPropertyWebkitPerspective: 1917 case CSSPropertyWebkitPerspective:
1983 if (!style->hasPerspective()) 1918 if (!style->hasPerspective())
1984 return cssValuePool().createIdentifierValue(CSSValueNone); 1919 return cssValuePool().createIdentifierValue(CSSValueNone);
1985 return pixelValue(style->perspective(), *style); 1920 return pixelValue(style->perspective(), *style);
1986 case CSSPropertyPerspectiveOrigin: 1921 case CSSPropertyPerspectiveOrigin:
1987 case CSSPropertyWebkitPerspectiveOrigin: { 1922 case CSSPropertyWebkitPerspectiveOrigin: {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 break; 2123 break;
2189 2124
2190 /* Other unimplemented properties */ 2125 /* Other unimplemented properties */
2191 case CSSPropertyPage: // for @page 2126 case CSSPropertyPage: // for @page
2192 case CSSPropertyQuotes: // FIXME: needs implementation 2127 case CSSPropertyQuotes: // FIXME: needs implementation
2193 case CSSPropertySize: // for @page 2128 case CSSPropertySize: // for @page
2194 break; 2129 break;
2195 2130
2196 /* Unimplemented -webkit- properties */ 2131 /* Unimplemented -webkit- properties */
2197 case CSSPropertyWebkitBorderRadius: 2132 case CSSPropertyWebkitBorderRadius:
2198 case CSSPropertyWebkitMask:
2199 case CSSPropertyWebkitMaskRepeatX:
2200 case CSSPropertyWebkitMaskRepeatY:
2201 case CSSPropertyWebkitPerspectiveOriginX: 2133 case CSSPropertyWebkitPerspectiveOriginX:
2202 case CSSPropertyWebkitPerspectiveOriginY: 2134 case CSSPropertyWebkitPerspectiveOriginY:
2203 case CSSPropertyWebkitTextStroke: 2135 case CSSPropertyWebkitTextStroke:
2204 case CSSPropertyWebkitTransformOriginX: 2136 case CSSPropertyWebkitTransformOriginX:
2205 case CSSPropertyWebkitTransformOriginY: 2137 case CSSPropertyWebkitTransformOriginY:
2206 case CSSPropertyWebkitTransformOriginZ: 2138 case CSSPropertyWebkitTransformOriginZ:
2207 break; 2139 break;
2208 2140
2209 /* @viewport rule properties */ 2141 /* @viewport rule properties */
2210 case CSSPropertyOrientation: 2142 case CSSPropertyOrientation:
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 2313 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
2382 CSSPropertyB ackgroundClip }; 2314 CSSPropertyB ackgroundClip };
2383 2315
2384 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 2316 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
2385 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 2317 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
2386 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 2318 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
2387 return list.release(); 2319 return list.release();
2388 } 2320 }
2389 2321
2390 } // namespace blink 2322 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/animation/css/CSSPropertyEquality.cpp ('k') | sky/engine/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698