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 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2640 if (operation->type() == ClipPathOperation::REFERENCE) | 2640 if (operation->type() == ClipPathOperation::REFERENCE) |
2641 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); | 2641 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); |
2642 } | 2642 } |
2643 return cssValuePool().createIdentifierValue(CSSValueNone); | 2643 return cssValuePool().createIdentifierValue(CSSValueNone); |
2644 case CSSPropertyShapeMargin: | 2644 case CSSPropertyShapeMargin: |
2645 return cssValuePool().createValue(style.shapeMargin(), style); | 2645 return cssValuePool().createValue(style.shapeMargin(), style); |
2646 case CSSPropertyShapeImageThreshold: | 2646 case CSSPropertyShapeImageThreshold: |
2647 return cssValuePool().createValue(style.shapeImageThreshold(), CSSPrimit
iveValue::UnitType::Number); | 2647 return cssValuePool().createValue(style.shapeImageThreshold(), CSSPrimit
iveValue::UnitType::Number); |
2648 case CSSPropertyShapeOutside: | 2648 case CSSPropertyShapeOutside: |
2649 return valueForShape(style, style.shapeOutside()); | 2649 return valueForShape(style, style.shapeOutside()); |
2650 case CSSPropertyWebkitFilter: | 2650 case CSSPropertyFilter: |
2651 return valueForFilter(style, style.filter()); | 2651 return valueForFilter(style, style.filter()); |
2652 case CSSPropertyBackdropFilter: | 2652 case CSSPropertyBackdropFilter: |
2653 return valueForFilter(style, style.backdropFilter()); | 2653 return valueForFilter(style, style.backdropFilter()); |
2654 case CSSPropertyMixBlendMode: | 2654 case CSSPropertyMixBlendMode: |
2655 return cssValuePool().createValue(style.blendMode()); | 2655 return cssValuePool().createValue(style.blendMode()); |
2656 | 2656 |
2657 case CSSPropertyBackgroundBlendMode: { | 2657 case CSSPropertyBackgroundBlendMode: { |
2658 CSSValueList* list = CSSValueList::createCommaSeparated(); | 2658 CSSValueList* list = CSSValueList::createCommaSeparated(); |
2659 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer;
currLayer = currLayer->next()) | 2659 for (const FillLayer* currLayer = &style.backgroundLayers(); currLayer;
currLayer = currLayer->next()) |
2660 list->append(cssValuePool().createValue(currLayer->blendMode())); | 2660 list->append(cssValuePool().createValue(currLayer->blendMode())); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2831 case CSSPropertyTextAnchor: | 2831 case CSSPropertyTextAnchor: |
2832 return CSSPrimitiveValue::create(svgStyle.textAnchor()); | 2832 return CSSPrimitiveValue::create(svgStyle.textAnchor()); |
2833 case CSSPropertyClipPath: | 2833 case CSSPropertyClipPath: |
2834 if (!svgStyle.clipperResource().isEmpty()) | 2834 if (!svgStyle.clipperResource().isEmpty()) |
2835 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.cl
ipperResource())); | 2835 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.cl
ipperResource())); |
2836 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2836 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
2837 case CSSPropertyMask: | 2837 case CSSPropertyMask: |
2838 if (!svgStyle.maskerResource().isEmpty()) | 2838 if (!svgStyle.maskerResource().isEmpty()) |
2839 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); | 2839 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); |
2840 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2840 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
2841 case CSSPropertyFilter: | |
2842 if (!svgStyle.filterResource().isEmpty()) | |
2843 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.fi
lterResource())); | |
2844 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | |
2845 case CSSPropertyFloodColor: | 2841 case CSSPropertyFloodColor: |
2846 return currentColorOrValidColor(style, svgStyle.floodColor()); | 2842 return currentColorOrValidColor(style, svgStyle.floodColor()); |
2847 case CSSPropertyLightingColor: | 2843 case CSSPropertyLightingColor: |
2848 return currentColorOrValidColor(style, svgStyle.lightingColor()); | 2844 return currentColorOrValidColor(style, svgStyle.lightingColor()); |
2849 case CSSPropertyStopColor: | 2845 case CSSPropertyStopColor: |
2850 return currentColorOrValidColor(style, svgStyle.stopColor()); | 2846 return currentColorOrValidColor(style, svgStyle.stopColor()); |
2851 case CSSPropertyFill: | 2847 case CSSPropertyFill: |
2852 return adjustSVGPaintForCurrentColor(svgStyle.fillPaintType(), svgStyle.
fillPaintUri(), svgStyle.fillPaintColor(), style.color()); | 2848 return adjustSVGPaintForCurrentColor(svgStyle.fillPaintType(), svgStyle.
fillPaintUri(), svgStyle.fillPaintColor(), style.color()); |
2853 case CSSPropertyMarkerEnd: | 2849 case CSSPropertyMarkerEnd: |
2854 if (!svgStyle.markerEndResource().isEmpty()) | 2850 if (!svgStyle.markerEndResource().isEmpty()) |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3007 case CSSPropertyAll: | 3003 case CSSPropertyAll: |
3008 return nullptr; | 3004 return nullptr; |
3009 default: | 3005 default: |
3010 break; | 3006 break; |
3011 } | 3007 } |
3012 ASSERT_NOT_REACHED(); | 3008 ASSERT_NOT_REACHED(); |
3013 return nullptr; | 3009 return nullptr; |
3014 } | 3010 } |
3015 | 3011 |
3016 } // namespace blink | 3012 } // namespace blink |
OLD | NEW |