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

Unified Diff: Source/core/css/CSSPrimitiveValue.h

Issue 1314783002: Made all const methods on CSSPrimitiveValue have the const keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_quad
Patch Set: Rebase branch onto master Created 5 years, 4 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 | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValue.h
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h
index 48c2d6e0d7077347718ae19fba0e68818c2518ef..47d1afbb4626e1cc641dd24cc9183d615deaf045 100644
--- a/Source/core/css/CSSPrimitiveValue.h
+++ b/Source/core/css/CSSPrimitiveValue.h
@@ -254,13 +254,13 @@ public:
UnitType typeWithCalcResolved() const;
double computeDegrees() const;
- double computeSeconds();
+ double computeSeconds() const;
// Computes a length in pixels, resolving relative lengths
- template<typename T> T computeLength(const CSSToLengthConversionData&);
+ template<typename T> T computeLength(const CSSToLengthConversionData&) const;
// Converts to a Length (Fixed, Percent or Calculated)
- Length convertToLength(const CSSToLengthConversionData&);
+ Length convertToLength(const CSSToLengthConversionData&) const;
double getDoubleValue() const;
float getFloatValue() const { return getValue<float>(); }
@@ -287,7 +287,7 @@ public:
static const char* unitTypeToString(UnitType);
String customCSSText() const;
- bool isQuirkValue() { return m_isQuirkValue; }
+ bool isQuirkValue() const { return m_isQuirkValue; }
bool equals(const CSSPrimitiveValue&) const;
@@ -335,7 +335,7 @@ private:
void init(PassRefPtrWillBeRawPtr<CSSBasicShape>);
void init(PassRefPtrWillBeRawPtr<CSSCalcValue>);
- double computeLengthDouble(const CSSToLengthConversionData&);
+ double computeLengthDouble(const CSSToLengthConversionData&) const;
inline UnitType type() const { return static_cast<UnitType>(m_primitiveUnitType); }
« no previous file with comments | « no previous file | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698