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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 return CSSPrimitiveValue::create(90.0f, CSSPrimitiveValue::CSS_DEG); 38 return CSSPrimitiveValue::create(90.0f, CSSPrimitiveValue::CSS_DEG);
39 case GO_180DEG: 39 case GO_180DEG:
40 return CSSPrimitiveValue::create(180.0f, CSSPrimitiveValue::CSS_DEG) ; 40 return CSSPrimitiveValue::create(180.0f, CSSPrimitiveValue::CSS_DEG) ;
41 case GO_270DEG: 41 case GO_270DEG:
42 return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG) ; 42 return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG) ;
43 default: 43 default:
44 return nullptr; 44 return nullptr;
45 } 45 }
46 } 46 }
47 47
48 static PassRefPtrWillBeRawPtr<CSSValue> strokeDashArrayToCSSValueList(PassRefPtr <SVGLengthList> passDashes) 48 static PassRefPtrWillBeRawPtr<CSSValue> strokeDashArrayToCSSValueList(PassRefPtr WillBeRawPtr<SVGLengthList> passDashes)
49 { 49 {
50 RefPtr<SVGLengthList> dashes = passDashes; 50 RefPtrWillBeRawPtr<SVGLengthList> dashes = passDashes;
51 51
52 if (dashes->isEmpty()) 52 if (dashes->isEmpty())
53 return CSSPrimitiveValue::createIdentifier(CSSValueNone); 53 return CSSPrimitiveValue::createIdentifier(CSSValueNone);
54 54
55 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated() ; 55 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated() ;
56 SVGLengthList::ConstIterator it = dashes->begin(); 56 SVGLengthList::ConstIterator it = dashes->begin();
57 SVGLengthList::ConstIterator itEnd = dashes->end(); 57 SVGLengthList::ConstIterator itEnd = dashes->end();
58 for (; it != itEnd; ++it) 58 for (; it != itEnd; ++it)
59 list->append(SVGLength::toCSSPrimitiveValue(*it)); 59 list->append(SVGLength::toCSSPrimitiveValue(*it));
60 60
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 default: 239 default:
240 // If you crash here, it's because you added a css property and are not handling it 240 // If you crash here, it's because you added a css property and are not handling it
241 // in either this switch statement or the one in CSSComputedStyleDelcara tion::getPropertyCSSValue 241 // in either this switch statement or the one in CSSComputedStyleDelcara tion::getPropertyCSSValue
242 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID); 242 ASSERT_WITH_MESSAGE(0, "unimplemented propertyID: %d", propertyID);
243 } 243 }
244 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID); 244 WTF_LOG_ERROR("unimplemented propertyID: %d", propertyID);
245 return nullptr; 245 return nullptr;
246 } 246 }
247 247
248 } 248 }
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698