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 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2633 if (operation->type() == ClipPathOperation::REFERENCE) | 2633 if (operation->type() == ClipPathOperation::REFERENCE) |
2634 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); | 2634 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); |
2635 } | 2635 } |
2636 return cssValuePool().createIdentifierValue(CSSValueNone); | 2636 return cssValuePool().createIdentifierValue(CSSValueNone); |
2637 case CSSPropertyShapeMargin: | 2637 case CSSPropertyShapeMargin: |
2638 return cssValuePool().createValue(style.shapeMargin(), style); | 2638 return cssValuePool().createValue(style.shapeMargin(), style); |
2639 case CSSPropertyShapeImageThreshold: | 2639 case CSSPropertyShapeImageThreshold: |
2640 return cssValuePool().createValue(style.shapeImageThreshold(), CSSPrimit
iveValue::UnitType::Number); | 2640 return cssValuePool().createValue(style.shapeImageThreshold(), CSSPrimit
iveValue::UnitType::Number); |
2641 case CSSPropertyShapeOutside: | 2641 case CSSPropertyShapeOutside: |
2642 return valueForShape(style, style.shapeOutside()); | 2642 return valueForShape(style, style.shapeOutside()); |
2643 case CSSPropertyWebkitFilter: | 2643 case CSSPropertyFilter: |
2644 return valueForFilter(style, style.filter()); | 2644 return valueForFilter(style, style.filter()); |
2645 case CSSPropertyBackdropFilter: | 2645 case CSSPropertyBackdropFilter: |
2646 return valueForFilter(style, style.backdropFilter()); | 2646 return valueForFilter(style, style.backdropFilter()); |
2647 case CSSPropertyMixBlendMode: | 2647 case CSSPropertyMixBlendMode: |
2648 return cssValuePool().createValue(style.blendMode()); | 2648 return cssValuePool().createValue(style.blendMode()); |
2649 | 2649 |
2650 case CSSPropertyBackgroundBlendMode: { | 2650 case CSSPropertyBackgroundBlendMode: { |
2651 CSSValueList* list = CSSValueList::createCommaSeparated(); | 2651 CSSValueList* list = CSSValueList::createCommaSeparated(); |
2652 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer;
currLayer = currLayer->next()) | 2652 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer;
currLayer = currLayer->next()) |
2653 list->append(cssValuePool().createValue(currLayer->blendMode())); | 2653 list->append(cssValuePool().createValue(currLayer->blendMode())); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2824 case CSSPropertyTextAnchor: | 2824 case CSSPropertyTextAnchor: |
2825 return CSSPrimitiveValue::create(svgStyle.textAnchor()); | 2825 return CSSPrimitiveValue::create(svgStyle.textAnchor()); |
2826 case CSSPropertyClipPath: | 2826 case CSSPropertyClipPath: |
2827 if (!svgStyle.clipperResource().isEmpty()) | 2827 if (!svgStyle.clipperResource().isEmpty()) |
2828 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.cl
ipperResource())); | 2828 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.cl
ipperResource())); |
2829 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2829 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
2830 case CSSPropertyMask: | 2830 case CSSPropertyMask: |
2831 if (!svgStyle.maskerResource().isEmpty()) | 2831 if (!svgStyle.maskerResource().isEmpty()) |
2832 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); | 2832 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); |
2833 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2833 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
2834 case CSSPropertyFilter: | |
2835 if (!svgStyle.filterResource().isEmpty()) | |
2836 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.fi
lterResource())); | |
2837 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | |
2838 case CSSPropertyFloodColor: | 2834 case CSSPropertyFloodColor: |
2839 return currentColorOrValidColor(style, svgStyle.floodColor()); | 2835 return currentColorOrValidColor(style, svgStyle.floodColor()); |
2840 case CSSPropertyLightingColor: | 2836 case CSSPropertyLightingColor: |
2841 return currentColorOrValidColor(style, svgStyle.lightingColor()); | 2837 return currentColorOrValidColor(style, svgStyle.lightingColor()); |
2842 case CSSPropertyStopColor: | 2838 case CSSPropertyStopColor: |
2843 return currentColorOrValidColor(style, svgStyle.stopColor()); | 2839 return currentColorOrValidColor(style, svgStyle.stopColor()); |
2844 case CSSPropertyFill: | 2840 case CSSPropertyFill: |
2845 return adjustSVGPaintForCurrentColor(svgStyle.fillPaintType(), svgStyle.
fillPaintUri(), svgStyle.fillPaintColor(), style.color()); | 2841 return adjustSVGPaintForCurrentColor(svgStyle.fillPaintType(), svgStyle.
fillPaintUri(), svgStyle.fillPaintColor(), style.color()); |
2846 case CSSPropertyMarkerEnd: | 2842 case CSSPropertyMarkerEnd: |
2847 if (!svgStyle.markerEndResource().isEmpty()) | 2843 if (!svgStyle.markerEndResource().isEmpty()) |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3000 case CSSPropertyAll: | 2996 case CSSPropertyAll: |
3001 return nullptr; | 2997 return nullptr; |
3002 default: | 2998 default: |
3003 break; | 2999 break; |
3004 } | 3000 } |
3005 ASSERT_NOT_REACHED(); | 3001 ASSERT_NOT_REACHED(); |
3006 return nullptr; | 3002 return nullptr; |
3007 } | 3003 } |
3008 | 3004 |
3009 } // namespace blink | 3005 } // namespace blink |
OLD | NEW |