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

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

Issue 14907011: Support 'paint-order' from SVG2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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) 2007 Eric Seidel <eric@webkit.org> 2 Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 3 Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 if (RefPtr<CSSPrimitiveValue> value = glyphOrientationToCSSPrimitive Value(svgStyle->glyphOrientationVertical())) 185 if (RefPtr<CSSPrimitiveValue> value = glyphOrientationToCSSPrimitive Value(svgStyle->glyphOrientationVertical()))
186 return value.release(); 186 return value.release();
187 187
188 if (svgStyle->glyphOrientationVertical() == GO_AUTO) 188 if (svgStyle->glyphOrientationVertical() == GO_AUTO)
189 return CSSPrimitiveValue::createIdentifier(CSSValueAuto); 189 return CSSPrimitiveValue::createIdentifier(CSSValueAuto);
190 190
191 return 0; 191 return 0;
192 } 192 }
193 case CSSPropertyWebkitSvgShadow: 193 case CSSPropertyWebkitSvgShadow:
194 return valueForShadow(svgStyle->shadow(), propertyID, style); 194 return valueForShadow(svgStyle->shadow(), propertyID, style);
195 case CSSPropertyPaintOrder:
196 return CSSPrimitiveValue::create(svgStyle->paintOrder());
195 case CSSPropertyVectorEffect: 197 case CSSPropertyVectorEffect:
196 return CSSPrimitiveValue::create(svgStyle->vectorEffect()); 198 return CSSPrimitiveValue::create(svgStyle->vectorEffect());
197 case CSSPropertyMaskType: 199 case CSSPropertyMaskType:
198 return CSSPrimitiveValue::create(svgStyle->maskType()); 200 return CSSPrimitiveValue::create(svgStyle->maskType());
199 case CSSPropertyMarker: 201 case CSSPropertyMarker:
200 case CSSPropertyEnableBackground: 202 case CSSPropertyEnableBackground:
201 case CSSPropertyColorProfile: 203 case CSSPropertyColorProfile:
202 // the above properties are not yet implemented in the engine 204 // the above properties are not yet implemented in the engine
203 break; 205 break;
204 default: 206 default:
205 // If you crash here, it's because you added a css property and are not handling it 207 // If you crash here, it's because you added a css property and are not handling it
206 // in either this switch statement or the one in CSSComputedStyleDelcara tion::getPropertyCSSValue 208 // in either this switch statement or the one in CSSComputedStyleDelcara tion::getPropertyCSSValue
207 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); 209 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID);
208 } 210 }
209 LOG_ERROR("unimplemented propertyID: %d", propertyID); 211 LOG_ERROR("unimplemented propertyID: %d", propertyID);
210 return 0; 212 return 0;
211 } 213 }
212 214
213 } 215 }
214 216
215 #endif // ENABLE(SVG) 217 #endif // ENABLE(SVG)
216 218
217 // vim:ts=4:noet 219 // vim:ts=4:noet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698