Commit 120a121f authored by Koji Ishii's avatar Koji Ishii Committed by Commit Bot

Reorganize hyphenation files in renderer/platform/BUILD.gn

This patch reorganize hyphenation files in third_party/blink/
renderer/platform/BUILD.gn, so that changing a build switch
`use_minikin_hyphenation` can switch necessary source files.

This patch has no behavior changes.

Bug: 652964
Change-Id: I3bec958fcb32d07116c2833ce8594261f84e1d8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462988Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816028}
parent 843905c6
......@@ -1538,7 +1538,6 @@ component("platform") {
"mac/web_core_ns_cell_extras.mm",
"text/locale_mac.h",
"text/locale_mac.mm",
"text/mac/hyphenation_mac.cc",
]
}
......@@ -1547,7 +1546,6 @@ component("platform") {
"fonts/linux/font_cache_linux.cc",
"fonts/linux/font_unique_name_lookup_linux.cc",
"fonts/linux/font_unique_name_lookup_linux.h",
"text/linux/hyphenation_linux.cc",
]
}
......@@ -1565,7 +1563,6 @@ component("platform") {
"fonts/win/font_unique_name_lookup_win.h",
"text/locale_win.cc",
"text/locale_win.h",
"text/win/hyphenation_win.cc",
]
}
......@@ -1706,10 +1703,7 @@ component("platform") {
}
if (is_fuchsia) {
sources += [
"fonts/fuchsia/font_cache_fuchsia.cc",
"text/fuchsia/hyphenation_fuchsia.cc",
]
sources += [ "fonts/fuchsia/font_cache_fuchsia.cc" ]
}
if (use_minikin_hyphenation) {
......@@ -1719,6 +1713,10 @@ component("platform") {
"text/hyphenation/hyphenator_aosp.cc",
"text/hyphenation/hyphenator_aosp.h",
]
} else if (is_mac) {
sources += [ "text/mac/hyphenation_mac.cc" ]
} else {
sources += [ "text/hyphenation/hyphenation_null.cc" ]
}
if (enable_av1_decoder) {
......
// Copyright 2017 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 "third_party/blink/renderer/platform/text/hyphenation.h"
namespace blink {
scoped_refptr<Hyphenation> Hyphenation::PlatformGetHyphenation(
const AtomicString&) {
return nullptr;
}
} // namespace blink
// 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 "third_party/blink/renderer/platform/text/hyphenation.h"
namespace blink {
scoped_refptr<Hyphenation> Hyphenation::PlatformGetHyphenation(
const AtomicString&) {
return nullptr;
}
} // namespace blink
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment