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

Side by Side Diff: Source/core/css/StylePropertySet.h

Issue 1136333002: Remove PropertyReference::cssText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 * (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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 { 63 {
64 } 64 }
65 65
66 CSSPropertyID id() const { return static_cast<CSSPropertyID>(propertyMet adata().m_propertyID); } 66 CSSPropertyID id() const { return static_cast<CSSPropertyID>(propertyMet adata().m_propertyID); }
67 CSSPropertyID shorthandID() const { return propertyMetadata().shorthandI D(); } 67 CSSPropertyID shorthandID() const { return propertyMetadata().shorthandI D(); }
68 68
69 bool isImportant() const { return propertyMetadata().m_important; } 69 bool isImportant() const { return propertyMetadata().m_important; }
70 bool isInherited() const { return propertyMetadata().m_inherited; } 70 bool isInherited() const { return propertyMetadata().m_inherited; }
71 bool isImplicit() const { return propertyMetadata().m_implicit; } 71 bool isImplicit() const { return propertyMetadata().m_implicit; }
72 72
73 String cssName() const;
74 String cssText() const;
75
76 const CSSValue* value() const { return propertyValue(); } 73 const CSSValue* value() const { return propertyValue(); }
77 // FIXME: We should try to remove this mutable overload. 74 // FIXME: We should try to remove this mutable overload.
78 CSSValue* value() { return const_cast<CSSValue*>(propertyValue()); } 75 CSSValue* value() { return const_cast<CSSValue*>(propertyValue()); }
79 76
80 // FIXME: Remove this. 77 // FIXME: Remove this.
81 CSSProperty toCSSProperty() const { return CSSProperty(propertyMetadata( ), const_cast<CSSValue*>(propertyValue())); } 78 CSSProperty toCSSProperty() const { return CSSProperty(propertyMetadata( ), const_cast<CSSValue*>(propertyValue())); }
82 79
83 const StylePropertyMetadata& propertyMetadata() const; 80 const StylePropertyMetadata& propertyMetadata() const;
84 81
85 private: 82 private:
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const 293 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
297 { 294 {
298 if (m_isMutable) 295 if (m_isMutable)
299 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); 296 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID);
300 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); 297 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID);
301 } 298 }
302 299
303 } // namespace blink 300 } // namespace blink
304 301
305 #endif // StylePropertySet_h 302 #endif // StylePropertySet_h
OLDNEW
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698