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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "core/css/CSSValuePool.h" | 50 #include "core/css/CSSValuePool.h" |
51 #include "core/layout/LayoutBlock.h" | 51 #include "core/layout/LayoutBlock.h" |
52 #include "core/layout/LayoutBox.h" | 52 #include "core/layout/LayoutBox.h" |
53 #include "core/layout/LayoutGrid.h" | 53 #include "core/layout/LayoutGrid.h" |
54 #include "core/layout/LayoutObject.h" | 54 #include "core/layout/LayoutObject.h" |
55 #include "core/style/ComputedStyle.h" | 55 #include "core/style/ComputedStyle.h" |
56 #include "core/style/ContentData.h" | 56 #include "core/style/ContentData.h" |
57 #include "core/style/PathStyleMotionPath.h" | 57 #include "core/style/PathStyleMotionPath.h" |
58 #include "core/style/QuotesData.h" | 58 #include "core/style/QuotesData.h" |
59 #include "core/style/ShadowList.h" | 59 #include "core/style/ShadowList.h" |
| 60 #include "core/svg/SVGPathUtilities.h" |
60 #include "platform/LengthFunctions.h" | 61 #include "platform/LengthFunctions.h" |
61 | 62 |
62 namespace blink { | 63 namespace blink { |
63 | 64 |
64 inline static bool isFlexOrGrid(const ComputedStyle* style) | 65 inline static bool isFlexOrGrid(const ComputedStyle* style) |
65 { | 66 { |
66 return style && style->isDisplayFlexibleOrGridBox(); | 67 return style && style->isDisplayFlexibleOrGridBox(); |
67 } | 68 } |
68 | 69 |
69 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) | 70 inline static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> zoomAdjustedPixelValue(d
ouble value, const ComputedStyle& style) |
(...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2616 return CSSPrimitiveValue::create(svgStyle.bufferedRendering()); | 2617 return CSSPrimitiveValue::create(svgStyle.bufferedRendering()); |
2617 case CSSPropertyPaintOrder: | 2618 case CSSPropertyPaintOrder: |
2618 return paintOrderToCSSValueList(svgStyle); | 2619 return paintOrderToCSSValueList(svgStyle); |
2619 case CSSPropertyVectorEffect: | 2620 case CSSPropertyVectorEffect: |
2620 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); | 2621 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); |
2621 case CSSPropertyMaskType: | 2622 case CSSPropertyMaskType: |
2622 return CSSPrimitiveValue::create(svgStyle.maskType()); | 2623 return CSSPrimitiveValue::create(svgStyle.maskType()); |
2623 case CSSPropertyMarker: | 2624 case CSSPropertyMarker: |
2624 // the above properties are not yet implemented in the engine | 2625 // the above properties are not yet implemented in the engine |
2625 return nullptr; | 2626 return nullptr; |
| 2627 case CSSPropertyD: |
| 2628 return svgStyle.d(); |
2626 case CSSPropertyCx: | 2629 case CSSPropertyCx: |
2627 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style); | 2630 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style); |
2628 case CSSPropertyCy: | 2631 case CSSPropertyCy: |
2629 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style); | 2632 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style); |
2630 case CSSPropertyX: | 2633 case CSSPropertyX: |
2631 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); | 2634 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); |
2632 case CSSPropertyY: | 2635 case CSSPropertyY: |
2633 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); | 2636 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); |
2634 case CSSPropertyR: | 2637 case CSSPropertyR: |
2635 return zoomAdjustedPixelValueForLength(svgStyle.r(), style); | 2638 return zoomAdjustedPixelValueForLength(svgStyle.r(), style); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2720 case CSSPropertyAll: | 2723 case CSSPropertyAll: |
2721 return nullptr; | 2724 return nullptr; |
2722 default: | 2725 default: |
2723 break; | 2726 break; |
2724 } | 2727 } |
2725 ASSERT_NOT_REACHED(); | 2728 ASSERT_NOT_REACHED(); |
2726 return nullptr; | 2729 return nullptr; |
2727 } | 2730 } |
2728 | 2731 |
2729 } | 2732 } |
OLD | NEW |