| Index: third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp b/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp
|
| similarity index 50%
|
| rename from third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
|
| rename to third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp
|
| index ccb71cb395c33fa2de8e5a8a1d6f58fb21b05f89..8c48ce2f43bb4c17a9d05e9b6d561b16738831c4 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/SimpleLength.cpp
|
| +++ b/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp
|
| @@ -2,52 +2,52 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "core/css/cssom/SimpleLength.h"
|
| +#include "core/css/cssom/CSSSimpleLength.h"
|
|
|
| #include "core/css/CSSPrimitiveValue.h"
|
| -#include "core/css/cssom/StyleCalcLength.h"
|
| +#include "core/css/cssom/CSSStyleCalcLength.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| namespace blink {
|
|
|
| -CSSValue* SimpleLength::toCSSValue() const
|
| +CSSValue* CSSSimpleLength::toCSSValue() const
|
| {
|
| return cssValuePool().createValue(m_value, m_unit);
|
| }
|
|
|
| -bool SimpleLength::containsPercent() const
|
| +bool CSSSimpleLength::containsPercent() const
|
| {
|
| return lengthUnit() == CSSPrimitiveValue::UnitType::Percentage;
|
| }
|
|
|
| -LengthValue* SimpleLength::addInternal(const LengthValue* other, ExceptionState& exceptionState)
|
| +CSSLengthValue* CSSSimpleLength::addInternal(const CSSLengthValue* other, ExceptionState& exceptionState)
|
| {
|
| - const SimpleLength* o = toSimpleLength(other);
|
| + const CSSSimpleLength* o = toCSSSimpleLength(other);
|
| if (m_unit == o->m_unit)
|
| return create(m_value + o->value(), m_unit);
|
|
|
| // Different units resolve to a calc.
|
| - StyleCalcLength* result = StyleCalcLength::create(this, exceptionState);
|
| + CSSStyleCalcLength* result = CSSStyleCalcLength::create(this, exceptionState);
|
| return result->add(other, exceptionState);
|
| }
|
|
|
| -LengthValue* SimpleLength::subtractInternal(const LengthValue* other, ExceptionState& exceptionState)
|
| +CSSLengthValue* CSSSimpleLength::subtractInternal(const CSSLengthValue* other, ExceptionState& exceptionState)
|
| {
|
| - const SimpleLength* o = toSimpleLength(other);
|
| + const CSSSimpleLength* o = toCSSSimpleLength(other);
|
| if (m_unit == o->m_unit)
|
| return create(m_value - o->value(), m_unit);
|
|
|
| // Different units resolve to a calc.
|
| - StyleCalcLength* result = StyleCalcLength::create(this, exceptionState);
|
| + CSSStyleCalcLength* result = CSSStyleCalcLength::create(this, exceptionState);
|
| return result->subtract(other, exceptionState);
|
| }
|
|
|
| -LengthValue* SimpleLength::multiplyInternal(double x, ExceptionState& exceptionState)
|
| +CSSLengthValue* CSSSimpleLength::multiplyInternal(double x, ExceptionState& exceptionState)
|
| {
|
| return create(m_value * x, m_unit);
|
| }
|
|
|
| -LengthValue* SimpleLength::divideInternal(double x, ExceptionState& exceptionState)
|
| +CSSLengthValue* CSSSimpleLength::divideInternal(double x, ExceptionState& exceptionState)
|
| {
|
| return create(m_value / x, m_unit);
|
| }
|
|
|