Commit 7ad40e8d authored by Etienne Bergeron's avatar Etienne Bergeron Committed by Commit Bot

Remove unused usage of Typesetter::NATIVE

This CL is basically removign dead code.

There is an old bug still going on to remove the NATIVE typesetter on
MAC.

CC=​benck@google.com
R=tapted@chromium.org

Bug: 889152, 454835
Change-Id: If1e2814a22aced9030b914b6c1ab60b2f4bf39eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1645143
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#666449}
parent b40adc51
......@@ -788,19 +788,6 @@ int ElideRectangleText(const base::string16& input,
Typesetter::HARFBUZZ, lines);
}
#if defined(OS_MACOSX)
int ElideRectangleTextForNativeUi(const base::string16& input,
const FontList& font_list,
float available_pixel_width,
int available_pixel_height,
WordWrapBehavior wrap_behavior,
std::vector<base::string16>* lines) {
return RectangleText::Elide(input, font_list, available_pixel_width,
available_pixel_height, wrap_behavior,
Typesetter::NATIVE, lines);
}
#endif
base::string16 TruncateString(const base::string16& string,
size_t length,
BreakType break_type) {
......
......@@ -141,17 +141,6 @@ GFX_EXPORT int ElideRectangleText(const base::string16& text,
WordWrapBehavior wrap_behavior,
std::vector<base::string16>* lines);
#if defined(OS_MACOSX)
// As above, but uses the native platform typesetter (CoreText on Mac).
GFX_EXPORT int ElideRectangleTextForNativeUi(
const base::string16& input,
const FontList& font_list,
float available_pixel_width,
int available_pixel_height,
WordWrapBehavior wrap_behavior,
std::vector<base::string16>* lines);
#endif // OS_MACOSX
// Truncates |string| to |length| characters. This breaks the string according
// to the specified |break_type|, which must be either WORD_BREAK or
// CHARACTER_BREAK, and adds the horizontal ellipsis character (unicode
......
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