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

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

Issue 1306823004: Split out String, URI and CustomIdent from CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_attr_values
Patch Set: Rebase Created 5 years, 2 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
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
index 1328dcd496502c6534422362391cf4e63878a2d9..92984c05fb6bdfde840c7a850cda100e0ca3af45 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
@@ -86,8 +86,6 @@ public:
Seconds,
Hertz,
Kilohertz,
- CustomIdentifier,
- URI,
RGBColor,
ViewportWidth,
ViewportHeight,
@@ -103,7 +101,6 @@ public:
Calc,
CalcPercentageWithNumber,
CalcPercentageWithLength,
- String,
PropertyID,
ValueID,
@@ -161,7 +158,6 @@ public:
|| type() == UnitType::Gradians
|| type() == UnitType::Turns;
}
- bool isCustomIdent() const { return type() == UnitType::CustomIdentifier; }
bool isFontRelativeLength() const
{
return type() == UnitType::QuirkyEms
@@ -183,9 +179,7 @@ public:
bool isPropertyID() const { return type() == UnitType::PropertyID; }
bool isPx() const { return typeWithCalcResolved() == UnitType::Pixels; }
bool isRGBColor() const { return type() == UnitType::RGBColor; }
- bool isString() const { return type() == UnitType::String; }
bool isTime() const { return type() == UnitType::Seconds || type() == UnitType::Milliseconds; }
- bool isURI() const { return type() == UnitType::URI; }
bool isCalculated() const { return type() == UnitType::Calc; }
bool isCalculatedPercentageWithNumber() const { return typeWithCalcResolved() == UnitType::CalcPercentageWithNumber; }
bool isCalculatedPercentageWithLength() const { return typeWithCalcResolved() == UnitType::CalcPercentageWithLength; }
@@ -213,10 +207,6 @@ public:
{
return adoptRefWillBeNoop(new CSSPrimitiveValue(value, type));
}
- static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(const String& value, UnitType type)
- {
- return adoptRefWillBeNoop(new CSSPrimitiveValue(value, type));
- }
static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(const Length& value, float zoom)
{
return adoptRefWillBeNoop(new CSSPrimitiveValue(value, zoom));
@@ -246,7 +236,6 @@ public:
int getIntValue() const { return getValue<int>(); }
template<typename T> inline T getValue() const { return clampTo<T>(getDoubleValue()); }
- String getStringValue() const;
RGBA32 getRGBA32Value() const { ASSERT(isRGBColor()); return m_value.rgbcolor; }
CSSCalcValue* cssCalcValue() const { ASSERT(isCalculated()); return m_value.calc; }
@@ -275,7 +264,6 @@ private:
CSSPrimitiveValue(CSSPropertyID);
CSSPrimitiveValue(RGBA32 color);
CSSPrimitiveValue(const Length&, float zoom);
- CSSPrimitiveValue(const String&, UnitType);
CSSPrimitiveValue(double, UnitType);
template<typename T> CSSPrimitiveValue(T); // Defined in CSSPrimitiveValueMappings.h
@@ -307,7 +295,6 @@ private:
CSSPropertyID propertyID;
CSSValueID valueID;
double num;
- StringImpl* string;
RGBA32 rgbcolor;
// FIXME: oilpan: Should be a member, but no support for members in unions. Just trace the raw ptr for now.
CSSCalcValue* calc;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698