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

Unified Diff: third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp

Issue 1997503003: Typed CSSOM: Rename LengthValue to CSSLengthValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp b/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
index ccb71cb395c33fa2de8e5a8a1d6f58fb21b05f89..cd51b91acd337089b643e384779879ed31afdb4d 100644
--- a/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
@@ -20,7 +20,7 @@ bool SimpleLength::containsPercent() const
return lengthUnit() == CSSPrimitiveValue::UnitType::Percentage;
}
-LengthValue* SimpleLength::addInternal(const LengthValue* other, ExceptionState& exceptionState)
+CSSLengthValue* SimpleLength::addInternal(const CSSLengthValue* other, ExceptionState& exceptionState)
{
const SimpleLength* o = toSimpleLength(other);
if (m_unit == o->m_unit)
@@ -31,7 +31,7 @@ LengthValue* SimpleLength::addInternal(const LengthValue* other, ExceptionState&
return result->add(other, exceptionState);
}
-LengthValue* SimpleLength::subtractInternal(const LengthValue* other, ExceptionState& exceptionState)
+CSSLengthValue* SimpleLength::subtractInternal(const CSSLengthValue* other, ExceptionState& exceptionState)
{
const SimpleLength* o = toSimpleLength(other);
if (m_unit == o->m_unit)
@@ -42,12 +42,12 @@ LengthValue* SimpleLength::subtractInternal(const LengthValue* other, ExceptionS
return result->subtract(other, exceptionState);
}
-LengthValue* SimpleLength::multiplyInternal(double x, ExceptionState& exceptionState)
+CSSLengthValue* SimpleLength::multiplyInternal(double x, ExceptionState& exceptionState)
{
return create(m_value * x, m_unit);
}
-LengthValue* SimpleLength::divideInternal(double x, ExceptionState& exceptionState)
+CSSLengthValue* SimpleLength::divideInternal(double x, ExceptionState& exceptionState)
{
return create(m_value / x, m_unit);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/SimpleLength.h ('k') | third_party/WebKit/Source/core/css/cssom/SimpleLength.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698