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

Unified Diff: third_party/WebKit/Source/core/layout/ng/geometry/ng_static_position.cc

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Created 3 years, 10 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/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

Powered by Google App Engine
This is Rietveld 408576698