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

Side by Side Diff: Source/core/css/LayoutStyleCSSValueMapping.cpp

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 case CSSPropertyPaintOrder: 2557 case CSSPropertyPaintOrder:
2558 return paintOrderToCSSValueList(svgStyle.paintOrder()); 2558 return paintOrderToCSSValueList(svgStyle.paintOrder());
2559 case CSSPropertyVectorEffect: 2559 case CSSPropertyVectorEffect:
2560 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); 2560 return CSSPrimitiveValue::create(svgStyle.vectorEffect());
2561 case CSSPropertyMaskType: 2561 case CSSPropertyMaskType:
2562 return CSSPrimitiveValue::create(svgStyle.maskType()); 2562 return CSSPrimitiveValue::create(svgStyle.maskType());
2563 case CSSPropertyMarker: 2563 case CSSPropertyMarker:
2564 case CSSPropertyEnableBackground: 2564 case CSSPropertyEnableBackground:
2565 // the above properties are not yet implemented in the engine 2565 // the above properties are not yet implemented in the engine
2566 return nullptr; 2566 return nullptr;
2567 case CSSPropertyCx:
2568 return zoomAdjustedPixelValueForLength(svgStyle.cx(), style);
2569 case CSSPropertyCy:
2570 return zoomAdjustedPixelValueForLength(svgStyle.cy(), style);
2567 case CSSPropertyX: 2571 case CSSPropertyX:
2568 return zoomAdjustedPixelValueForLength(svgStyle.x(), style); 2572 return zoomAdjustedPixelValueForLength(svgStyle.x(), style);
2569 case CSSPropertyY: 2573 case CSSPropertyY:
2570 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); 2574 return zoomAdjustedPixelValueForLength(svgStyle.y(), style);
2575 case CSSPropertyR:
2576 return zoomAdjustedPixelValueForLength(svgStyle.r(), style);
2571 case CSSPropertyRx: 2577 case CSSPropertyRx:
2572 return zoomAdjustedPixelValueForLength(svgStyle.rx(), style); 2578 return zoomAdjustedPixelValueForLength(svgStyle.rx(), style);
2573 case CSSPropertyRy: 2579 case CSSPropertyRy:
2574 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style); 2580 return zoomAdjustedPixelValueForLength(svgStyle.ry(), style);
2575 2581
2576 case CSSPropertyAll: 2582 case CSSPropertyAll:
2577 return nullptr; 2583 return nullptr;
2578 } 2584 }
2579 ASSERT_NOT_REACHED(); 2585 ASSERT_NOT_REACHED();
2580 return nullptr; 2586 return nullptr;
2581 } 2587 }
2582 2588
2583 } 2589 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698