| Index: third_party/WebKit/Source/core/layout/ng/ng_direction.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_direction.cc b/third_party/WebKit/Source/core/layout/ng/ng_direction.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3db89c3c3157af6618833c1b9d23c9d29d9bde0f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_direction.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/ng_direction.h"
|
| +
|
| +#include "platform/text/TextDirection.h"
|
| +#include "wtf/Assertions.h"
|
| +
|
| +namespace blink {
|
| +
|
| +NGDirection FromPlatformDirection(TextDirection direction) {
|
| + switch (direction) {
|
| + case LTR:
|
| + return LeftToRight;
|
| + case RTL:
|
| + return RightToLeft;
|
| + default:
|
| + NOTREACHED();
|
| + return LeftToRight;
|
| + }
|
| +}
|
| +
|
| +} // namespace blink
|
|
|