OLD | NEW |
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 * Copyright (C) 2015 Google Inc. All rights reserved. | 7 * Copyright (C) 2015 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 314 } |
315 | 315 |
316 static PassRefPtrWillBeRawPtr<CSSValue> valueForNinePieceImage(const NinePieceIm
age& image, const ComputedStyle& style) | 316 static PassRefPtrWillBeRawPtr<CSSValue> valueForNinePieceImage(const NinePieceIm
age& image, const ComputedStyle& style) |
317 { | 317 { |
318 if (!image.hasImage()) | 318 if (!image.hasImage()) |
319 return cssValuePool().createIdentifierValue(CSSValueNone); | 319 return cssValuePool().createIdentifierValue(CSSValueNone); |
320 | 320 |
321 // Image first. | 321 // Image first. |
322 RefPtrWillBeRawPtr<CSSValue> imageValue = nullptr; | 322 RefPtrWillBeRawPtr<CSSValue> imageValue = nullptr; |
323 if (image.image()) | 323 if (image.image()) |
324 imageValue = image.image()->cssValue(); | 324 imageValue = image.image()->computedCSSValue(); |
325 | 325 |
326 // Create the image slice. | 326 // Create the image slice. |
327 RefPtrWillBeRawPtr<CSSBorderImageSliceValue> imageSlices = valueForNinePiece
ImageSlice(image); | 327 RefPtrWillBeRawPtr<CSSBorderImageSliceValue> imageSlices = valueForNinePiece
ImageSlice(image); |
328 | 328 |
329 // Create the border area slices. | 329 // Create the border area slices. |
330 RefPtrWillBeRawPtr<CSSValue> borderSlices = valueForNinePieceImageQuad(image
.borderSlices(), style); | 330 RefPtrWillBeRawPtr<CSSValue> borderSlices = valueForNinePieceImageQuad(image
.borderSlices(), style); |
331 | 331 |
332 // Create the border outset. | 332 // Create the border outset. |
333 RefPtrWillBeRawPtr<CSSValue> outset = valueForNinePieceImageQuad(image.outse
t(), style); | 333 RefPtrWillBeRawPtr<CSSValue> outset = valueForNinePieceImageQuad(image.outse
t(), style); |
334 | 334 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 RefPtrWillBeRawPtr<CSSValueList> ret = CSSValueList::createCommaSeparated(); | 419 RefPtrWillBeRawPtr<CSSValueList> ret = CSSValueList::createCommaSeparated(); |
420 const FillLayer* currLayer = &style.backgroundLayers(); | 420 const FillLayer* currLayer = &style.backgroundLayers(); |
421 for (; currLayer; currLayer = currLayer->next()) { | 421 for (; currLayer; currLayer = currLayer->next()) { |
422 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparat
ed(); | 422 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparat
ed(); |
423 RefPtrWillBeRawPtr<CSSValueList> beforeSlash = CSSValueList::createSpace
Separated(); | 423 RefPtrWillBeRawPtr<CSSValueList> beforeSlash = CSSValueList::createSpace
Separated(); |
424 if (!currLayer->next()) { // color only for final layer | 424 if (!currLayer->next()) { // color only for final layer |
425 RefPtrWillBeRawPtr<CSSValue> value = ComputedStyleCSSValueMapping::g
et(CSSPropertyBackgroundColor, style, layoutObject, styledNode, allowVisitedStyl
e); | 425 RefPtrWillBeRawPtr<CSSValue> value = ComputedStyleCSSValueMapping::g
et(CSSPropertyBackgroundColor, style, layoutObject, styledNode, allowVisitedStyl
e); |
426 ASSERT(value); | 426 ASSERT(value); |
427 beforeSlash->append(value); | 427 beforeSlash->append(value); |
428 } | 428 } |
429 beforeSlash->append(currLayer->image() ? currLayer->image()->cssValue()
: cssValuePool().createIdentifierValue(CSSValueNone)); | 429 beforeSlash->append(currLayer->image() ? currLayer->image()->computedCSS
Value() : cssValuePool().createIdentifierValue(CSSValueNone)); |
430 beforeSlash->append(valueForFillRepeat(currLayer->repeatX(), currLayer->
repeatY())); | 430 beforeSlash->append(valueForFillRepeat(currLayer->repeatX(), currLayer->
repeatY())); |
431 beforeSlash->append(cssValuePool().createValue(currLayer->attachment()))
; | 431 beforeSlash->append(cssValuePool().createValue(currLayer->attachment()))
; |
432 beforeSlash->append(createPositionListForLayer(CSSPropertyBackgroundPosi
tion, *currLayer, style)); | 432 beforeSlash->append(createPositionListForLayer(CSSPropertyBackgroundPosi
tion, *currLayer, style)); |
433 list->append(beforeSlash); | 433 list->append(beforeSlash); |
434 RefPtrWillBeRawPtr<CSSValueList> afterSlash = CSSValueList::createSpaceS
eparated(); | 434 RefPtrWillBeRawPtr<CSSValueList> afterSlash = CSSValueList::createSpaceS
eparated(); |
435 afterSlash->append(valueForFillSize(currLayer->size(), style)); | 435 afterSlash->append(valueForFillSize(currLayer->size(), style)); |
436 afterSlash->append(cssValuePool().createValue(currLayer->origin())); | 436 afterSlash->append(cssValuePool().createValue(currLayer->origin())); |
437 afterSlash->append(cssValuePool().createValue(currLayer->clip())); | 437 afterSlash->append(cssValuePool().createValue(currLayer->clip())); |
438 list->append(afterSlash); | 438 list->append(afterSlash); |
439 ret->append(list); | 439 ret->append(list); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 RefPtrWillBeRawPtr<CSSPrimitiveValue> identifier = cssValuePool().cr
eateValue(counter->identifier(), CSSPrimitiveValue::UnitType::CustomIdentifier); | 1005 RefPtrWillBeRawPtr<CSSPrimitiveValue> identifier = cssValuePool().cr
eateValue(counter->identifier(), CSSPrimitiveValue::UnitType::CustomIdentifier); |
1006 RefPtrWillBeRawPtr<CSSPrimitiveValue> separator = cssValuePool().cre
ateValue(counter->separator(), CSSPrimitiveValue::UnitType::CustomIdentifier); | 1006 RefPtrWillBeRawPtr<CSSPrimitiveValue> separator = cssValuePool().cre
ateValue(counter->separator(), CSSPrimitiveValue::UnitType::CustomIdentifier); |
1007 CSSValueID listStyleIdent = CSSValueNone; | 1007 CSSValueID listStyleIdent = CSSValueNone; |
1008 if (counter->listStyle() != NoneListStyle) | 1008 if (counter->listStyle() != NoneListStyle) |
1009 listStyleIdent = static_cast<CSSValueID>(CSSValueDisc + counter-
>listStyle()); | 1009 listStyleIdent = static_cast<CSSValueID>(CSSValueDisc + counter-
>listStyle()); |
1010 RefPtrWillBeRawPtr<CSSPrimitiveValue> listStyle = cssValuePool().cre
ateIdentifierValue(listStyleIdent); | 1010 RefPtrWillBeRawPtr<CSSPrimitiveValue> listStyle = cssValuePool().cre
ateIdentifierValue(listStyleIdent); |
1011 list->append(CSSCounterValue::create(identifier.release(), listStyle
.release(), separator.release())); | 1011 list->append(CSSCounterValue::create(identifier.release(), listStyle
.release(), separator.release())); |
1012 } else if (contentData->isImage()) { | 1012 } else if (contentData->isImage()) { |
1013 const StyleImage* image = toImageContentData(contentData)->image(); | 1013 const StyleImage* image = toImageContentData(contentData)->image(); |
1014 ASSERT(image); | 1014 ASSERT(image); |
1015 list->append(image->cssValue()); | 1015 list->append(image->computedCSSValue()); |
1016 } else if (contentData->isText()) { | 1016 } else if (contentData->isText()) { |
1017 list->append(cssValuePool().createValue(toTextContentData(contentDat
a)->text(), CSSPrimitiveValue::UnitType::String)); | 1017 list->append(cssValuePool().createValue(toTextContentData(contentDat
a)->text(), CSSPrimitiveValue::UnitType::String)); |
1018 } else if (contentData->isQuote()) { | 1018 } else if (contentData->isQuote()) { |
1019 const QuoteType quoteType = toQuoteContentData(contentData)->quote()
; | 1019 const QuoteType quoteType = toQuoteContentData(contentData)->quote()
; |
1020 list->append(cssValuePool().createIdentifierValue(valueForQuoteType(
quoteType))); | 1020 list->append(cssValuePool().createIdentifierValue(valueForQuoteType(
quoteType))); |
1021 } else { | 1021 } else { |
1022 ASSERT_NOT_REACHED(); | 1022 ASSERT_NOT_REACHED(); |
1023 } | 1023 } |
1024 } | 1024 } |
1025 return list.release(); | 1025 return list.release(); |
(...skipping 23 matching lines...) Expand all Loading... |
1049 } | 1049 } |
1050 | 1050 |
1051 static PassRefPtrWillBeRawPtr<CSSValue> valueForShape(const ComputedStyle& style
, ShapeValue* shapeValue) | 1051 static PassRefPtrWillBeRawPtr<CSSValue> valueForShape(const ComputedStyle& style
, ShapeValue* shapeValue) |
1052 { | 1052 { |
1053 if (!shapeValue) | 1053 if (!shapeValue) |
1054 return cssValuePool().createIdentifierValue(CSSValueNone); | 1054 return cssValuePool().createIdentifierValue(CSSValueNone); |
1055 if (shapeValue->type() == ShapeValue::Box) | 1055 if (shapeValue->type() == ShapeValue::Box) |
1056 return cssValuePool().createValue(shapeValue->cssBox()); | 1056 return cssValuePool().createValue(shapeValue->cssBox()); |
1057 if (shapeValue->type() == ShapeValue::Image) { | 1057 if (shapeValue->type() == ShapeValue::Image) { |
1058 if (shapeValue->image()) | 1058 if (shapeValue->image()) |
1059 return shapeValue->image()->cssValue(); | 1059 return shapeValue->image()->computedCSSValue(); |
1060 return cssValuePool().createIdentifierValue(CSSValueNone); | 1060 return cssValuePool().createIdentifierValue(CSSValueNone); |
1061 } | 1061 } |
1062 | 1062 |
1063 ASSERT(shapeValue->type() == ShapeValue::Shape); | 1063 ASSERT(shapeValue->type() == ShapeValue::Shape); |
1064 | 1064 |
1065 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; | 1065 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; |
1066 list->append(valueForBasicShape(style, shapeValue->shape())); | 1066 list->append(valueForBasicShape(style, shapeValue->shape())); |
1067 if (shapeValue->cssBox() != BoxMissing) | 1067 if (shapeValue->cssBox() != BoxMissing) |
1068 list->append(cssValuePool().createValue(shapeValue->cssBox())); | 1068 list->append(cssValuePool().createValue(shapeValue->cssBox())); |
1069 return list.release(); | 1069 return list.release(); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 return nullptr; | 1371 return nullptr; |
1372 | 1372 |
1373 case CSSPropertyBackgroundColor: | 1373 case CSSPropertyBackgroundColor: |
1374 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidColor(sty
le, style.backgroundColor()); | 1374 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidColor(sty
le, style.backgroundColor()); |
1375 case CSSPropertyBackgroundImage: | 1375 case CSSPropertyBackgroundImage: |
1376 case CSSPropertyWebkitMaskImage: { | 1376 case CSSPropertyWebkitMaskImage: { |
1377 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); | 1377 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); |
1378 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskImage ?
&style.maskLayers() : &style.backgroundLayers(); | 1378 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskImage ?
&style.maskLayers() : &style.backgroundLayers(); |
1379 for (; currLayer; currLayer = currLayer->next()) { | 1379 for (; currLayer; currLayer = currLayer->next()) { |
1380 if (currLayer->image()) | 1380 if (currLayer->image()) |
1381 list->append(currLayer->image()->cssValue()); | 1381 list->append(currLayer->image()->computedCSSValue()); |
1382 else | 1382 else |
1383 list->append(cssValuePool().createIdentifierValue(CSSValueNone))
; | 1383 list->append(cssValuePool().createIdentifierValue(CSSValueNone))
; |
1384 } | 1384 } |
1385 return list.release(); | 1385 return list.release(); |
1386 } | 1386 } |
1387 case CSSPropertyBackgroundSize: | 1387 case CSSPropertyBackgroundSize: |
1388 case CSSPropertyWebkitMaskSize: { | 1388 case CSSPropertyWebkitMaskSize: { |
1389 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); | 1389 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); |
1390 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskSize ? &
style.maskLayers() : &style.backgroundLayers(); | 1390 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskSize ? &
style.maskLayers() : &style.backgroundLayers(); |
1391 for (; currLayer; currLayer = currLayer->next()) | 1391 for (; currLayer; currLayer = currLayer->next()) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 list->append(zoomAdjustedPixelValue(style.horizontalBorderSpacing(), sty
le)); | 1468 list->append(zoomAdjustedPixelValue(style.horizontalBorderSpacing(), sty
le)); |
1469 list->append(zoomAdjustedPixelValue(style.verticalBorderSpacing(), style
)); | 1469 list->append(zoomAdjustedPixelValue(style.verticalBorderSpacing(), style
)); |
1470 return list.release(); | 1470 return list.release(); |
1471 } | 1471 } |
1472 case CSSPropertyWebkitBorderHorizontalSpacing: | 1472 case CSSPropertyWebkitBorderHorizontalSpacing: |
1473 return zoomAdjustedPixelValue(style.horizontalBorderSpacing(), style); | 1473 return zoomAdjustedPixelValue(style.horizontalBorderSpacing(), style); |
1474 case CSSPropertyWebkitBorderVerticalSpacing: | 1474 case CSSPropertyWebkitBorderVerticalSpacing: |
1475 return zoomAdjustedPixelValue(style.verticalBorderSpacing(), style); | 1475 return zoomAdjustedPixelValue(style.verticalBorderSpacing(), style); |
1476 case CSSPropertyBorderImageSource: | 1476 case CSSPropertyBorderImageSource: |
1477 if (style.borderImageSource()) | 1477 if (style.borderImageSource()) |
1478 return style.borderImageSource()->cssValue(); | 1478 return style.borderImageSource()->computedCSSValue(); |
1479 return cssValuePool().createIdentifierValue(CSSValueNone); | 1479 return cssValuePool().createIdentifierValue(CSSValueNone); |
1480 case CSSPropertyBorderTopColor: | 1480 case CSSPropertyBorderTopColor: |
1481 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderTopColor).rgb()) : currentColorOrValidColor(styl
e, style.borderTopColor()); | 1481 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderTopColor).rgb()) : currentColorOrValidColor(styl
e, style.borderTopColor()); |
1482 case CSSPropertyBorderRightColor: | 1482 case CSSPropertyBorderRightColor: |
1483 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderRightColor).rgb()) : currentColorOrValidColor(st
yle, style.borderRightColor()); | 1483 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderRightColor).rgb()) : currentColorOrValidColor(st
yle, style.borderRightColor()); |
1484 case CSSPropertyBorderBottomColor: | 1484 case CSSPropertyBorderBottomColor: |
1485 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderBottomColor).rgb()) : currentColorOrValidColor(s
tyle, style.borderBottomColor()); | 1485 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderBottomColor).rgb()) : currentColorOrValidColor(s
tyle, style.borderBottomColor()); |
1486 case CSSPropertyBorderLeftColor: | 1486 case CSSPropertyBorderLeftColor: |
1487 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderLeftColor).rgb()) : currentColorOrValidColor(sty
le, style.borderLeftColor()); | 1487 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBorderLeftColor).rgb()) : currentColorOrValidColor(sty
le, style.borderLeftColor()); |
1488 case CSSPropertyBorderTopStyle: | 1488 case CSSPropertyBorderTopStyle: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 case CSSPropertyTabSize: | 1567 case CSSPropertyTabSize: |
1568 return cssValuePool().createValue( | 1568 return cssValuePool().createValue( |
1569 style.tabSize().getPixelSize(1.0), style.tabSize().isSpaces() ? CSSP
rimitiveValue::UnitType::Number : CSSPrimitiveValue::UnitType::Pixels); | 1569 style.tabSize().getPixelSize(1.0), style.tabSize().isSpaces() ? CSSP
rimitiveValue::UnitType::Number : CSSPrimitiveValue::UnitType::Pixels); |
1570 case CSSPropertyCursor: { | 1570 case CSSPropertyCursor: { |
1571 RefPtrWillBeRawPtr<CSSValueList> list = nullptr; | 1571 RefPtrWillBeRawPtr<CSSValueList> list = nullptr; |
1572 CursorList* cursors = style.cursors(); | 1572 CursorList* cursors = style.cursors(); |
1573 if (cursors && cursors->size() > 0) { | 1573 if (cursors && cursors->size() > 0) { |
1574 list = CSSValueList::createCommaSeparated(); | 1574 list = CSSValueList::createCommaSeparated(); |
1575 for (unsigned i = 0; i < cursors->size(); ++i) { | 1575 for (unsigned i = 0; i < cursors->size(); ++i) { |
1576 if (StyleImage* image = cursors->at(i).image()) | 1576 if (StyleImage* image = cursors->at(i).image()) |
1577 list->append(image->cssValue()); | 1577 list->append(image->computedCSSValue()); |
1578 } | 1578 } |
1579 } | 1579 } |
1580 RefPtrWillBeRawPtr<CSSValue> value = cssValuePool().createValue(style.cu
rsor()); | 1580 RefPtrWillBeRawPtr<CSSValue> value = cssValuePool().createValue(style.cu
rsor()); |
1581 if (list) { | 1581 if (list) { |
1582 list->append(value.release()); | 1582 list->append(value.release()); |
1583 return list.release(); | 1583 return list.release(); |
1584 } | 1584 } |
1585 return value.release(); | 1585 return value.release(); |
1586 } | 1586 } |
1587 case CSSPropertyDirection: | 1587 case CSSPropertyDirection: |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 return cssValuePool().createIdentifierValue(CSSValueNormal); | 1756 return cssValuePool().createIdentifierValue(CSSValueNormal); |
1757 return zoomAdjustedPixelValue(style.letterSpacing(), style); | 1757 return zoomAdjustedPixelValue(style.letterSpacing(), style); |
1758 case CSSPropertyWebkitLineClamp: | 1758 case CSSPropertyWebkitLineClamp: |
1759 if (style.lineClamp().isNone()) | 1759 if (style.lineClamp().isNone()) |
1760 return cssValuePool().createIdentifierValue(CSSValueNone); | 1760 return cssValuePool().createIdentifierValue(CSSValueNone); |
1761 return cssValuePool().createValue(style.lineClamp().value(), style.lineC
lamp().isPercentage() ? CSSPrimitiveValue::UnitType::Percentage : CSSPrimitiveVa
lue::UnitType::Number); | 1761 return cssValuePool().createValue(style.lineClamp().value(), style.lineC
lamp().isPercentage() ? CSSPrimitiveValue::UnitType::Percentage : CSSPrimitiveVa
lue::UnitType::Number); |
1762 case CSSPropertyLineHeight: | 1762 case CSSPropertyLineHeight: |
1763 return valueForLineHeight(style); | 1763 return valueForLineHeight(style); |
1764 case CSSPropertyListStyleImage: | 1764 case CSSPropertyListStyleImage: |
1765 if (style.listStyleImage()) | 1765 if (style.listStyleImage()) |
1766 return style.listStyleImage()->cssValue(); | 1766 return style.listStyleImage()->computedCSSValue(); |
1767 return cssValuePool().createIdentifierValue(CSSValueNone); | 1767 return cssValuePool().createIdentifierValue(CSSValueNone); |
1768 case CSSPropertyListStylePosition: | 1768 case CSSPropertyListStylePosition: |
1769 return cssValuePool().createValue(style.listStylePosition()); | 1769 return cssValuePool().createValue(style.listStylePosition()); |
1770 case CSSPropertyListStyleType: | 1770 case CSSPropertyListStyleType: |
1771 return cssValuePool().createValue(style.listStyleType()); | 1771 return cssValuePool().createValue(style.listStyleType()); |
1772 case CSSPropertyWebkitLocale: | 1772 case CSSPropertyWebkitLocale: |
1773 if (style.locale().isNull()) | 1773 if (style.locale().isNull()) |
1774 return cssValuePool().createIdentifierValue(CSSValueAuto); | 1774 return cssValuePool().createIdentifierValue(CSSValueAuto); |
1775 return cssValuePool().createValue(style.locale(), CSSPrimitiveValue::Uni
tType::String); | 1775 return cssValuePool().createValue(style.locale(), CSSPrimitiveValue::Uni
tType::String); |
1776 case CSSPropertyMarginTop: { | 1776 case CSSPropertyMarginTop: { |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2205 case CSSPropertyWebkitMaskBoxImageOutset: | 2205 case CSSPropertyWebkitMaskBoxImageOutset: |
2206 return valueForNinePieceImageQuad(style.maskBoxImage().outset(), style); | 2206 return valueForNinePieceImageQuad(style.maskBoxImage().outset(), style); |
2207 case CSSPropertyWebkitMaskBoxImageRepeat: | 2207 case CSSPropertyWebkitMaskBoxImageRepeat: |
2208 return valueForNinePieceImageRepeat(style.maskBoxImage()); | 2208 return valueForNinePieceImageRepeat(style.maskBoxImage()); |
2209 case CSSPropertyWebkitMaskBoxImageSlice: | 2209 case CSSPropertyWebkitMaskBoxImageSlice: |
2210 return valueForNinePieceImageSlice(style.maskBoxImage()); | 2210 return valueForNinePieceImageSlice(style.maskBoxImage()); |
2211 case CSSPropertyWebkitMaskBoxImageWidth: | 2211 case CSSPropertyWebkitMaskBoxImageWidth: |
2212 return valueForNinePieceImageQuad(style.maskBoxImage().borderSlices(), s
tyle); | 2212 return valueForNinePieceImageQuad(style.maskBoxImage().borderSlices(), s
tyle); |
2213 case CSSPropertyWebkitMaskBoxImageSource: | 2213 case CSSPropertyWebkitMaskBoxImageSource: |
2214 if (style.maskBoxImageSource()) | 2214 if (style.maskBoxImageSource()) |
2215 return style.maskBoxImageSource()->cssValue(); | 2215 return style.maskBoxImageSource()->computedCSSValue(); |
2216 return cssValuePool().createIdentifierValue(CSSValueNone); | 2216 return cssValuePool().createIdentifierValue(CSSValueNone); |
2217 case CSSPropertyWebkitFontSizeDelta: | 2217 case CSSPropertyWebkitFontSizeDelta: |
2218 // Not a real style property -- used by the editing engine -- so has no
computed value. | 2218 // Not a real style property -- used by the editing engine -- so has no
computed value. |
2219 return nullptr; | 2219 return nullptr; |
2220 case CSSPropertyWebkitMarginBottomCollapse: | 2220 case CSSPropertyWebkitMarginBottomCollapse: |
2221 case CSSPropertyWebkitMarginAfterCollapse: | 2221 case CSSPropertyWebkitMarginAfterCollapse: |
2222 return cssValuePool().createValue(style.marginAfterCollapse()); | 2222 return cssValuePool().createValue(style.marginAfterCollapse()); |
2223 case CSSPropertyWebkitMarginTopCollapse: | 2223 case CSSPropertyWebkitMarginTopCollapse: |
2224 case CSSPropertyWebkitMarginBeforeCollapse: | 2224 case CSSPropertyWebkitMarginBeforeCollapse: |
2225 return cssValuePool().createValue(style.marginBeforeCollapse()); | 2225 return cssValuePool().createValue(style.marginBeforeCollapse()); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 case CSSPropertyAll: | 2693 case CSSPropertyAll: |
2694 return nullptr; | 2694 return nullptr; |
2695 default: | 2695 default: |
2696 break; | 2696 break; |
2697 } | 2697 } |
2698 ASSERT_NOT_REACHED(); | 2698 ASSERT_NOT_REACHED(); |
2699 return nullptr; | 2699 return nullptr; |
2700 } | 2700 } |
2701 | 2701 |
2702 } | 2702 } |
OLD | NEW |