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

Unified Diff: third_party/WebKit/Source/core/css/cssom/PositionValue.h

Issue 1958943002: Typed CSSOM: Rename PositionValue to CSSPositionValue (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/PositionValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/PositionValue.h b/third_party/WebKit/Source/core/css/cssom/PositionValue.h
deleted file mode 100644
index c4f01705af3fa1468e12d816e3714449d29f2fcc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/PositionValue.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PositionValue_h
-#define PositionValue_h
-
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CoreExport.h"
-#include "core/css/cssom/StyleValue.h"
-
-namespace blink {
-
-class LengthValue;
-
-class CORE_EXPORT PositionValue final : public StyleValue {
- WTF_MAKE_NONCOPYABLE(PositionValue);
- DEFINE_WRAPPERTYPEINFO();
-public:
- static PositionValue* create(const LengthValue* x, const LengthValue* y)
- {
- return new PositionValue(x, y);
- }
-
- // Bindings require a non const return value.
- LengthValue* x() const { return const_cast<LengthValue*>(m_x.get()); }
- LengthValue* y() const { return const_cast<LengthValue*>(m_y.get()); }
-
- StyleValueType type() const override { return PositionType; }
-
- CSSValue* toCSSValue() const override;
-
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- visitor->trace(m_x);
- visitor->trace(m_y);
- StyleValue::trace(visitor);
- }
-
-protected:
- PositionValue(const LengthValue* x, const LengthValue* y)
- : m_x(x)
- , m_y(y)
- {
- }
-
- Member<const LengthValue> m_x;
- Member<const LengthValue> m_y;
-
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698