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

Side by Side Diff: sky/engine/core/css/CSSValuePool.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/css/CSSValueList.cpp ('k') | sky/engine/core/css/CSSValuePool.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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 PassRefPtr<CSSInitialValue> createExplicitInitialValue() { return m_explicit InitialValue; } 49 PassRefPtr<CSSInitialValue> createExplicitInitialValue() { return m_explicit InitialValue; }
50 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSValueID identifier); 50 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSValueID identifier);
51 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSPropertyID identifier ); 51 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSPropertyID identifier );
52 PassRefPtr<CSSPrimitiveValue> createColorValue(unsigned rgbValue); 52 PassRefPtr<CSSPrimitiveValue> createColorValue(unsigned rgbValue);
53 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::U nitType); 53 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::U nitType);
54 PassRefPtr<CSSPrimitiveValue> createValue(const String& value, CSSPrimitiveV alue::UnitType type) { return CSSPrimitiveValue::create(value, type); } 54 PassRefPtr<CSSPrimitiveValue> createValue(const String& value, CSSPrimitiveV alue::UnitType type) { return CSSPrimitiveValue::create(value, type); }
55 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value, const RenderS tyle&); 55 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value, const RenderS tyle&);
56 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value) { return CSSP rimitiveValue::create(value); } 56 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value) { return CSSP rimitiveValue::create(value); }
57 template<typename T> static PassRefPtr<CSSPrimitiveValue> createValue(T valu e) { return CSSPrimitiveValue::create(value); } 57 template<typename T> static PassRefPtr<CSSPrimitiveValue> createValue(T valu e) { return CSSPrimitiveValue::create(value); }
58 58
59 void trace(Visitor*);
60
61 private: 59 private:
62 CSSValuePool(); 60 CSSValuePool();
63 61
64 RefPtr<CSSInheritedValue> m_inheritedValue; 62 RefPtr<CSSInheritedValue> m_inheritedValue;
65 RefPtr<CSSInitialValue> m_implicitInitialValue; 63 RefPtr<CSSInitialValue> m_implicitInitialValue;
66 RefPtr<CSSInitialValue> m_explicitInitialValue; 64 RefPtr<CSSInitialValue> m_explicitInitialValue;
67 65
68 Vector<RefPtr<CSSPrimitiveValue>, numCSSValueKeywords> m_identifierValueCach e; 66 Vector<RefPtr<CSSPrimitiveValue>, numCSSValueKeywords> m_identifierValueCach e;
69 67
70 typedef HashMap<unsigned, RefPtr<CSSPrimitiveValue> > ColorValueCache; 68 typedef HashMap<unsigned, RefPtr<CSSPrimitiveValue> > ColorValueCache;
(...skipping 15 matching lines...) Expand all
86 FontFamilyValueCache m_fontFamilyValueCache; 84 FontFamilyValueCache m_fontFamilyValueCache;
87 85
88 friend CSSValuePool& cssValuePool(); 86 friend CSSValuePool& cssValuePool();
89 }; 87 };
90 88
91 CSSValuePool& cssValuePool(); 89 CSSValuePool& cssValuePool();
92 90
93 } 91 }
94 92
95 #endif 93 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSValueList.cpp ('k') | sky/engine/core/css/CSSValuePool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698