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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup Created 5 years, 10 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
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 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 case CSSPropertyPaintOrder: 2552 case CSSPropertyPaintOrder:
2553 return paintOrderToCSSValueList(svgStyle.paintOrder()); 2553 return paintOrderToCSSValueList(svgStyle.paintOrder());
2554 case CSSPropertyVectorEffect: 2554 case CSSPropertyVectorEffect:
2555 return CSSPrimitiveValue::create(svgStyle.vectorEffect()); 2555 return CSSPrimitiveValue::create(svgStyle.vectorEffect());
2556 case CSSPropertyMaskType: 2556 case CSSPropertyMaskType:
2557 return CSSPrimitiveValue::create(svgStyle.maskType()); 2557 return CSSPrimitiveValue::create(svgStyle.maskType());
2558 case CSSPropertyMarker: 2558 case CSSPropertyMarker:
2559 case CSSPropertyEnableBackground: 2559 case CSSPropertyEnableBackground:
2560 // the above properties are not yet implemented in the engine 2560 // the above properties are not yet implemented in the engine
2561 return nullptr; 2561 return nullptr;
2562 case CSSPropertyX:
2563 return zoomAdjustedPixelValueForLength(svgStyle.x(), style);
2564 case CSSPropertyY:
2565 return zoomAdjustedPixelValueForLength(svgStyle.y(), style);
2562 2566
2563 case CSSPropertyAll: 2567 case CSSPropertyAll:
2564 return nullptr; 2568 return nullptr;
2565 } 2569 }
2566 ASSERT_NOT_REACHED(); 2570 ASSERT_NOT_REACHED();
2567 return nullptr; 2571 return nullptr;
2568 } 2572 }
2569 2573
2570 } 2574 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698