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 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2549 case CSSPropertyPaintOrder: | 2549 case CSSPropertyPaintOrder: |
2550 return paintOrderToCSSValueList(svgStyle.paintOrder()); | 2550 return paintOrderToCSSValueList(svgStyle.paintOrder()); |
2551 case CSSPropertyVectorEffect: | 2551 case CSSPropertyVectorEffect: |
2552 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); | 2552 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); |
2553 case CSSPropertyMaskType: | 2553 case CSSPropertyMaskType: |
2554 return CSSPrimitiveValue::create(svgStyle.maskType()); | 2554 return CSSPrimitiveValue::create(svgStyle.maskType()); |
2555 case CSSPropertyMarker: | 2555 case CSSPropertyMarker: |
2556 case CSSPropertyEnableBackground: | 2556 case CSSPropertyEnableBackground: |
2557 // the above properties are not yet implemented in the engine | 2557 // the above properties are not yet implemented in the engine |
2558 return nullptr; | 2558 return nullptr; |
| 2559 case CSSPropertyCx: |
| 2560 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style); |
| 2561 case CSSPropertyCy: |
| 2562 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style); |
2559 case CSSPropertyX: | 2563 case CSSPropertyX: |
2560 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); | 2564 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); |
2561 case CSSPropertyY: | 2565 case CSSPropertyY: |
2562 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); | 2566 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); |
| 2567 case CSSPropertyR: |
| 2568 return zoomAdjustedPixelValueForLength(svgStyle.r(), style); |
2563 case CSSPropertyRx: | 2569 case CSSPropertyRx: |
2564 return zoomAdjustedPixelValueForLength(svgStyle.rx(), style); | 2570 return zoomAdjustedPixelValueForLength(svgStyle.rx(), style); |
2565 case CSSPropertyRy: | 2571 case CSSPropertyRy: |
2566 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style); | 2572 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style); |
2567 | 2573 |
2568 case CSSPropertyAll: | 2574 case CSSPropertyAll: |
2569 return nullptr; | 2575 return nullptr; |
2570 } | 2576 } |
2571 ASSERT_NOT_REACHED(); | 2577 ASSERT_NOT_REACHED(); |
2572 return nullptr; | 2578 return nullptr; |
2573 } | 2579 } |
2574 | 2580 |
2575 } | 2581 } |
OLD | NEW |