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

Side by Side Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2312713002: Unprefix -webkit-clip-path (Closed)
Patch Set: Baselines Created 4 years, 3 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 * 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 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 if (style.getTextOrientation() == TextOrientationMixed) 2643 if (style.getTextOrientation() == TextOrientationMixed)
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 CSSPropertyClipPath:
2654 if (ClipPathOperation* operation = style.clipPath()) { 2654 if (ClipPathOperation* operation = style.clipPath()) {
2655 if (operation->type() == ClipPathOperation::SHAPE) 2655 if (operation->type() == ClipPathOperation::SHAPE)
2656 return valueForBasicShape(style, toShapeClipPathOperation(operat ion)->basicShape()); 2656 return valueForBasicShape(style, toShapeClipPathOperation(operat ion)->basicShape());
2657 if (operation->type() == ClipPathOperation::REFERENCE) 2657 if (operation->type() == ClipPathOperation::REFERENCE)
2658 return CSSURIValue::create(toReferenceClipPathOperation(operatio n)->url()); 2658 return CSSURIValue::create(toReferenceClipPathOperation(operatio n)->url());
2659 } 2659 }
2660 return CSSPrimitiveValue::createIdentifier(CSSValueNone); 2660 return CSSPrimitiveValue::createIdentifier(CSSValueNone);
2661 case CSSPropertyShapeMargin: 2661 case CSSPropertyShapeMargin:
2662 return CSSPrimitiveValue::create(style.shapeMargin(), style); 2662 return CSSPrimitiveValue::create(style.shapeMargin(), style);
2663 case CSSPropertyShapeImageThreshold: 2663 case CSSPropertyShapeImageThreshold:
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 case CSSPropertyStrokeMiterlimit: 2840 case CSSPropertyStrokeMiterlimit:
2841 return CSSPrimitiveValue::create(svgStyle.strokeMiterLimit(), CSSPrimiti veValue::UnitType::Number); 2841 return CSSPrimitiveValue::create(svgStyle.strokeMiterLimit(), CSSPrimiti veValue::UnitType::Number);
2842 case CSSPropertyStrokeOpacity: 2842 case CSSPropertyStrokeOpacity:
2843 return CSSPrimitiveValue::create(svgStyle.strokeOpacity(), CSSPrimitiveV alue::UnitType::Number); 2843 return CSSPrimitiveValue::create(svgStyle.strokeOpacity(), CSSPrimitiveV alue::UnitType::Number);
2844 case CSSPropertyAlignmentBaseline: 2844 case CSSPropertyAlignmentBaseline:
2845 return CSSPrimitiveValue::create(svgStyle.alignmentBaseline()); 2845 return CSSPrimitiveValue::create(svgStyle.alignmentBaseline());
2846 case CSSPropertyDominantBaseline: 2846 case CSSPropertyDominantBaseline:
2847 return CSSPrimitiveValue::create(svgStyle.dominantBaseline()); 2847 return CSSPrimitiveValue::create(svgStyle.dominantBaseline());
2848 case CSSPropertyTextAnchor: 2848 case CSSPropertyTextAnchor:
2849 return CSSPrimitiveValue::create(svgStyle.textAnchor()); 2849 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: 2850 case CSSPropertyMask:
2855 if (!svgStyle.maskerResource().isEmpty()) 2851 if (!svgStyle.maskerResource().isEmpty())
2856 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma skerResource())); 2852 return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.ma skerResource()));
2857 return CSSPrimitiveValue::createIdentifier(CSSValueNone); 2853 return CSSPrimitiveValue::createIdentifier(CSSValueNone);
2858 case CSSPropertyFloodColor: 2854 case CSSPropertyFloodColor:
2859 return currentColorOrValidColor(style, svgStyle.floodColor()); 2855 return currentColorOrValidColor(style, svgStyle.floodColor());
2860 case CSSPropertyLightingColor: 2856 case CSSPropertyLightingColor:
2861 return currentColorOrValidColor(style, svgStyle.lightingColor()); 2857 return currentColorOrValidColor(style, svgStyle.lightingColor());
2862 case CSSPropertyStopColor: 2858 case CSSPropertyStopColor:
2863 return currentColorOrValidColor(style, svgStyle.stopColor()); 2859 return currentColorOrValidColor(style, svgStyle.stopColor());
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
3020 case CSSPropertyAll: 3016 case CSSPropertyAll:
3021 return nullptr; 3017 return nullptr;
3022 default: 3018 default:
3023 break; 3019 break;
3024 } 3020 }
3025 ASSERT_NOT_REACHED(); 3021 ASSERT_NOT_REACHED();
3026 return nullptr; 3022 return nullptr;
3027 } 3023 }
3028 3024
3029 } // namespace blink 3025 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698