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

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySet.h

Issue 2032613007: Change ImmutableStylePropertySet to store const CSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@+make_elementstyleresources_store_const
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StylePropertySet.h
diff --git a/third_party/WebKit/Source/core/css/StylePropertySet.h b/third_party/WebKit/Source/core/css/StylePropertySet.h
index 147bd6060a4e6407c86e7ee88b6275fd7268c52c..6c2d3e6853cb83261927e049a27d9d4034197cfe 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySet.h
+++ b/third_party/WebKit/Source/core/css/StylePropertySet.h
@@ -157,7 +157,7 @@ public:
unsigned propertyCount() const { return m_arraySize; }
- const Member<CSSValue>* valueArray() const;
+ const Member<const CSSValue>* valueArray() const;
const StylePropertyMetadata* metadataArray() const;
template<typename T> // CSSPropertyID or AtomicString
@@ -176,9 +176,9 @@ private:
ImmutableStylePropertySet(const CSSProperty*, unsigned count, CSSParserMode);
};
-inline const Member<CSSValue>* ImmutableStylePropertySet::valueArray() const
+inline const Member<const CSSValue>* ImmutableStylePropertySet::valueArray() const
{
- return reinterpret_cast<const Member<CSSValue>*>(const_cast<const void**>(&(this->m_storage)));
+ return reinterpret_cast<const Member<const CSSValue>*>(const_cast<const void**>(&(this->m_storage)));
}
inline const StylePropertyMetadata* ImmutableStylePropertySet::metadataArray() const
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698