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 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2612 return CSSPrimitiveValue::create(svgStyle.bufferedRendering()); | 2613 return CSSPrimitiveValue::create(svgStyle.bufferedRendering()); |
2613 case CSSPropertyPaintOrder: | 2614 case CSSPropertyPaintOrder: |
2614 return paintOrderToCSSValueList(svgStyle); | 2615 return paintOrderToCSSValueList(svgStyle); |
2615 case CSSPropertyVectorEffect: | 2616 case CSSPropertyVectorEffect: |
2616 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); | 2617 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); |
2617 case CSSPropertyMaskType: | 2618 case CSSPropertyMaskType: |
2618 return CSSPrimitiveValue::create(svgStyle.maskType()); | 2619 return CSSPrimitiveValue::create(svgStyle.maskType()); |
2619 case CSSPropertyMarker: | 2620 case CSSPropertyMarker: |
2620 // the above properties are not yet implemented in the engine | 2621 // the above properties are not yet implemented in the engine |
2621 return nullptr; | 2622 return nullptr; |
| 2623 case CSSPropertyD: |
| 2624 return svgStyle.d(); |
2622 case CSSPropertyCx: | 2625 case CSSPropertyCx: |
2623 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style); | 2626 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style); |
2624 case CSSPropertyCy: | 2627 case CSSPropertyCy: |
2625 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style); | 2628 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style); |
2626 case CSSPropertyX: | 2629 case CSSPropertyX: |
2627 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); | 2630 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); |
2628 case CSSPropertyY: | 2631 case CSSPropertyY: |
2629 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); | 2632 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); |
2630 case CSSPropertyR: | 2633 case CSSPropertyR: |
2631 return zoomAdjustedPixelValueForLength(svgStyle.r(), style); | 2634 return zoomAdjustedPixelValueForLength(svgStyle.r(), style); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2716 case CSSPropertyAll: | 2719 case CSSPropertyAll: |
2717 return nullptr; | 2720 return nullptr; |
2718 default: | 2721 default: |
2719 break; | 2722 break; |
2720 } | 2723 } |
2721 ASSERT_NOT_REACHED(); | 2724 ASSERT_NOT_REACHED(); |
2722 return nullptr; | 2725 return nullptr; |
2723 } | 2726 } |
2724 | 2727 |
2725 } | 2728 } |
OLD | NEW |