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

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

Issue 2099513002: [Typed OM] Rename TransformValue -> CSSTransformValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformcomponent
Patch Set: sync to head 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
Index: third_party/WebKit/Source/core/css/cssom/CSSTransformValue.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/TransformValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSTransformValue.cpp
similarity index 78%
rename from third_party/WebKit/Source/core/css/cssom/TransformValue.cpp
rename to third_party/WebKit/Source/core/css/cssom/CSSTransformValue.cpp
index d1466743b7a7ee3e2b27e4fbd5e5ab9714d7b479..888760e30c4dac90680ddc880863132f571b4807 100644
--- a/third_party/WebKit/Source/core/css/cssom/TransformValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTransformValue.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/css/cssom/TransformValue.h"
+#include "core/css/cssom/CSSTransformValue.h"
#include "core/css/CSSValueList.h"
#include "core/css/cssom/CSSTransformComponent.h"
@@ -13,7 +13,7 @@ namespace {
class TransformValueIterationSource final : public ValueIterable<CSSTransformComponent*>::IterationSource {
public:
- explicit TransformValueIterationSource(TransformValue* transformValue)
+ explicit TransformValueIterationSource(CSSTransformValue* transformValue)
: m_transformValue(transformValue)
{
}
@@ -34,12 +34,12 @@ public:
}
private:
- const Member<TransformValue> m_transformValue;
+ const Member<CSSTransformValue> m_transformValue;
};
} // namespace
-TransformValue* TransformValue::fromCSSValue(const CSSValue& cssValue)
+CSSTransformValue* CSSTransformValue::fromCSSValue(const CSSValue& cssValue)
{
if (!cssValue.isValueList()) {
// TODO(meade): Also need to check the separator here if we care.
@@ -52,15 +52,15 @@ TransformValue* TransformValue::fromCSSValue(const CSSValue& cssValue)
return nullptr;
components.append(component);
}
- return TransformValue::create(components);
+ return CSSTransformValue::create(components);
}
-ValueIterable<CSSTransformComponent*>::IterationSource* TransformValue::startIteration(ScriptState*, ExceptionState&)
+ValueIterable<CSSTransformComponent*>::IterationSource* CSSTransformValue::startIteration(ScriptState*, ExceptionState&)
{
return new TransformValueIterationSource(this);
}
-bool TransformValue::is2D() const
+bool CSSTransformValue::is2D() const
{
for (size_t i = 0; i < m_transformComponents.size(); i++) {
if (!m_transformComponents[i]->is2DComponent()) {
@@ -70,7 +70,7 @@ bool TransformValue::is2D() const
return true;
}
-CSSValue* TransformValue::toCSSValue() const
+CSSValue* CSSTransformValue::toCSSValue() const
{
CSSValueList* transformCSSValue = CSSValueList::createSpaceSeparated();
for (size_t i = 0; i < m_transformComponents.size(); i++) {

Powered by Google App Engine
This is Rietveld 408576698