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 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: | |
2654 case CSSPropertyClipPath: | 2653 case CSSPropertyClipPath: |
2655 if (ClipPathOperation* operation = propertyID == CSSPropertyWebkitClipPa
th | 2654 if (ClipPathOperation* operation = style.clipPath()) { |
2656 ? style.clipPath() : style.svgStyle().clipPath()) { | |
2657 if (operation->type() == ClipPathOperation::SHAPE) | 2655 if (operation->type() == ClipPathOperation::SHAPE) |
2658 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); | 2656 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); |
2659 if (operation->type() == ClipPathOperation::REFERENCE) | 2657 if (operation->type() == ClipPathOperation::REFERENCE) |
2660 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); | 2658 return CSSURIValue::create(toReferenceClipPathOperation(operatio
n)->url()); |
2661 } | 2659 } |
2662 return CSSPrimitiveValue::createIdentifier(CSSValueNone); | 2660 return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
2663 case CSSPropertyShapeMargin: | 2661 case CSSPropertyShapeMargin: |
2664 return CSSPrimitiveValue::create(style.shapeMargin(), style); | 2662 return CSSPrimitiveValue::create(style.shapeMargin(), style); |
2665 case CSSPropertyShapeImageThreshold: | 2663 case CSSPropertyShapeImageThreshold: |
2666 return CSSPrimitiveValue::create(style.shapeImageThreshold(), CSSPrimiti
veValue::UnitType::Number); | 2664 return CSSPrimitiveValue::create(style.shapeImageThreshold(), CSSPrimiti
veValue::UnitType::Number); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3018 case CSSPropertyAll: | 3016 case CSSPropertyAll: |
3019 return nullptr; | 3017 return nullptr; |
3020 default: | 3018 default: |
3021 break; | 3019 break; |
3022 } | 3020 } |
3023 ASSERT_NOT_REACHED(); | 3021 ASSERT_NOT_REACHED(); |
3024 return nullptr; | 3022 return nullptr; |
3025 } | 3023 } |
3026 | 3024 |
3027 } // namespace blink | 3025 } // namespace blink |
OLD | NEW |