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

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

Issue 686783002: Remove almost all 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/FontFace.cpp ('k') | sky/engine/core/css/invalidation/StyleInvalidator.h » ('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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved.
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 Vector<CSSProperty, 4> m_propertyVector; 241 Vector<CSSProperty, 4> m_propertyVector;
242 }; 242 };
243 243
244 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable (), set.isMutable()); 244 DEFINE_TYPE_CASTS(MutableStylePropertySet, StylePropertySet, set, set->isMutable (), set.isMutable());
245 245
246 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp ertySet>& set) 246 inline MutableStylePropertySet* toMutableStylePropertySet(const RefPtr<StyleProp ertySet>& set)
247 { 247 {
248 return toMutableStylePropertySet(set.get()); 248 return toMutableStylePropertySet(set.get());
249 } 249 }
250 250
251 inline MutableStylePropertySet* toMutableStylePropertySet(const Persistent<Style PropertySet>& set)
252 {
253 return toMutableStylePropertySet(set.get());
254 }
255
256 inline MutableStylePropertySet* toMutableStylePropertySet(const Member<StyleProp ertySet>& set)
257 {
258 return toMutableStylePropertySet(set.get());
259 }
260
261 inline const StylePropertyMetadata& StylePropertySet::PropertyReference::propert yMetadata() const 251 inline const StylePropertyMetadata& StylePropertySet::PropertyReference::propert yMetadata() const
262 { 252 {
263 if (m_propertySet.isMutable()) 253 if (m_propertySet.isMutable())
264 return toMutableStylePropertySet(m_propertySet).m_propertyVector.at(m_in dex).metadata(); 254 return toMutableStylePropertySet(m_propertySet).m_propertyVector.at(m_in dex).metadata();
265 return toImmutableStylePropertySet(m_propertySet).metadataArray()[m_index]; 255 return toImmutableStylePropertySet(m_propertySet).metadataArray()[m_index];
266 } 256 }
267 257
268 inline const CSSValue* StylePropertySet::PropertyReference::propertyValue() cons t 258 inline const CSSValue* StylePropertySet::PropertyReference::propertyValue() cons t
269 { 259 {
270 if (m_propertySet.isMutable()) 260 if (m_propertySet.isMutable())
(...skipping 29 matching lines...) Expand all
300 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 290 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
301 { 291 {
302 if (m_isMutable) 292 if (m_isMutable)
303 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 293 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
304 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 294 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
305 } 295 }
306 296
307 } // namespace blink 297 } // namespace blink
308 298
309 #endif // StylePropertySet_h 299 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFace.cpp ('k') | sky/engine/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698