Index: third_party/WebKit/Source/core/layout/ng/geometry/ng_static_position.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_static_position.cc b/third_party/WebKit/Source/core/layout/ng/geometry/ng_static_position.cc |
deleted file mode 100644 |
index 43e3d04d7b385dbb82d9110c88054d9326a9eac9..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_static_position.cc |
+++ /dev/null |
@@ -1,35 +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. |
- |
-#include "core/layout/ng/geometry/ng_static_position.h" |
- |
-namespace blink { |
- |
-NGStaticPosition NGStaticPosition::Create(NGWritingMode writing_mode, |
- TextDirection direction, |
- NGPhysicalOffset offset) { |
- NGStaticPosition position; |
- position.offset = offset; |
- switch (writing_mode) { |
- case kHorizontalTopBottom: |
- position.type = (direction == TextDirection::kLtr) ? kTopLeft : kTopRight; |
- break; |
- case kVerticalRightLeft: |
- case kSidewaysRightLeft: |
- position.type = |
- (direction == TextDirection::kLtr) ? kTopRight : kBottomRight; |
- break; |
- case kVerticalLeftRight: |
- position.type = |
- (direction == TextDirection::kLtr) ? kTopLeft : kBottomLeft; |
- break; |
- case kSidewaysLeftRight: |
- position.type = |
- (direction == TextDirection::kLtr) ? kBottomLeft : kTopLeft; |
- break; |
- } |
- return position; |
-} |
- |
-} // namespace blink |