| 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 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2644 return CSSPrimitiveValue::createIdentifier(CSSValueVerticalRight); | 2644 return CSSPrimitiveValue::createIdentifier(CSSValueVerticalRight); |
| 2645 case CSSPropertyTextOrientation: | 2645 case CSSPropertyTextOrientation: |
| 2646 return CSSPrimitiveValue::create(style.getTextOrientation()); | 2646 return CSSPrimitiveValue::create(style.getTextOrientation()); |
| 2647 case CSSPropertyContent: | 2647 case CSSPropertyContent: |
| 2648 return valueForContentData(style); | 2648 return valueForContentData(style); |
| 2649 case CSSPropertyCounterIncrement: | 2649 case CSSPropertyCounterIncrement: |
| 2650 return valueForCounterDirectives(style, propertyID); | 2650 return valueForCounterDirectives(style, propertyID); |
| 2651 case CSSPropertyCounterReset: | 2651 case CSSPropertyCounterReset: |
| 2652 return valueForCounterDirectives(style, propertyID); | 2652 return valueForCounterDirectives(style, propertyID); |
| 2653 case CSSPropertyWebkitClipPath: | 2653 case CSSPropertyWebkitClipPath: |
| 2654 if (ClipPathOperation* operation = style.clipPath()) { | 2654 case CSSPropertyClipPath: |
| 2655 if (ClipPathOperation* operation = propertyID == CSSPropertyWebkitClipPa
th |
| 2656 ? style.clipPath() : style.svgStyle().clipPath()) { |
| 2655 if (operation->type() == ClipPathOperation::SHAPE) | 2657 if (operation->type() == ClipPathOperation::SHAPE) |
| 2656 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); | 2658 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); |
| 2657 if (operation->type() == ClipPathOperation::REFERENCE) | 2659 if (operation->type() == ClipPathOperation::REFERENCE) |
| 2658 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); | 2660 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); |
| 2659 } | 2661 } |
| 2660 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2662 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
| 2661 case CSSPropertyShapeMargin: | 2663 case CSSPropertyShapeMargin: |
| 2662 return CSSPrimitiveValue::create(style.shapeMargin(), style); | 2664 return CSSPrimitiveValue::create(style.shapeMargin(), style); |
| 2663 case CSSPropertyShapeImageThreshold: | 2665 case CSSPropertyShapeImageThreshold: |
| 2664 return CSSPrimitiveValue::create(style.shapeImageThreshold(), CSSPrimiti
veValue::UnitType::Number); | 2666 return CSSPrimitiveValue::create(style.shapeImageThreshold(), CSSPrimiti
veValue::UnitType::Number); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 case CSSPropertyStrokeMiterlimit: | 2842 case CSSPropertyStrokeMiterlimit: |
| 2841 return CSSPrimitiveValue::create(svgStyle.strokeMiterLimit(), CSSPrimiti
veValue::UnitType::Number); | 2843 return CSSPrimitiveValue::create(svgStyle.strokeMiterLimit(), CSSPrimiti
veValue::UnitType::Number); |
| 2842 case CSSPropertyStrokeOpacity: | 2844 case CSSPropertyStrokeOpacity: |
| 2843 return CSSPrimitiveValue::create(svgStyle.strokeOpacity(), CSSPrimitiveV
alue::UnitType::Number); | 2845 return CSSPrimitiveValue::create(svgStyle.strokeOpacity(), CSSPrimitiveV
alue::UnitType::Number); |
| 2844 case CSSPropertyAlignmentBaseline: | 2846 case CSSPropertyAlignmentBaseline: |
| 2845 return CSSPrimitiveValue::create(svgStyle.alignmentBaseline()); | 2847 return CSSPrimitiveValue::create(svgStyle.alignmentBaseline()); |
| 2846 case CSSPropertyDominantBaseline: | 2848 case CSSPropertyDominantBaseline: |
| 2847 return CSSPrimitiveValue::create(svgStyle.dominantBaseline()); | 2849 return CSSPrimitiveValue::create(svgStyle.dominantBaseline()); |
| 2848 case CSSPropertyTextAnchor: | 2850 case CSSPropertyTextAnchor: |
| 2849 return CSSPrimitiveValue::create(svgStyle.textAnchor()); | 2851 return CSSPrimitiveValue::create(svgStyle.textAnchor()); |
| 2850 case CSSPropertyClipPath: | |
| 2851 if (!svgStyle.clipperResource().isEmpty()) | |
| 2852 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.cl
ipperResource())); | |
| 2853 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | |
| 2854 case CSSPropertyMask: | 2852 case CSSPropertyMask: |
| 2855 if (!svgStyle.maskerResource().isEmpty()) | 2853 if (!svgStyle.maskerResource().isEmpty()) |
| 2856 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); | 2854 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma
skerResource())); |
| 2857 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2855 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
| 2858 case CSSPropertyFloodColor: | 2856 case CSSPropertyFloodColor: |
| 2859 return currentColorOrValidColor(style, svgStyle.floodColor()); | 2857 return currentColorOrValidColor(style, svgStyle.floodColor()); |
| 2860 case CSSPropertyLightingColor: | 2858 case CSSPropertyLightingColor: |
| 2861 return currentColorOrValidColor(style, svgStyle.lightingColor()); | 2859 return currentColorOrValidColor(style, svgStyle.lightingColor()); |
| 2862 case CSSPropertyStopColor: | 2860 case CSSPropertyStopColor: |
| 2863 return currentColorOrValidColor(style, svgStyle.stopColor()); | 2861 return currentColorOrValidColor(style, svgStyle.stopColor()); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3020 case CSSPropertyAll: | 3018 case CSSPropertyAll: |
| 3021 return nullptr; | 3019 return nullptr; |
| 3022 default: | 3020 default: |
| 3023 break; | 3021 break; |
| 3024 } | 3022 } |
| 3025 ASSERT_NOT_REACHED(); | 3023 ASSERT_NOT_REACHED(); |
| 3026 return nullptr; | 3024 return nullptr; |
| 3027 } | 3025 } |
| 3028 | 3026 |
| 3029 } // namespace blink | 3027 } // namespace blink |
| OLD | NEW |