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

Unified Diff: Source/platform/fonts/SimpleShaper.cpp

Issue 618383003: Remove obsolete canExpandAroundIdeographsInComplexText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/platform/fonts/FontPlatformFeatures.h ('k') | Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/SimpleShaper.cpp
diff --git a/Source/platform/fonts/SimpleShaper.cpp b/Source/platform/fonts/SimpleShaper.cpp
index f41d3ecbc06a5a3872f4e71212819310d672d67b..5e87ce7a4eb71923d8f4bf7e2842f66c4e8a232c 100644
--- a/Source/platform/fonts/SimpleShaper.cpp
+++ b/Source/platform/fonts/SimpleShaper.cpp
@@ -25,7 +25,6 @@
#include "platform/fonts/Character.h"
#include "platform/fonts/Font.h"
-#include "platform/fonts/FontPlatformFeatures.h"
#include "platform/fonts/GlyphBuffer.h"
#include "platform/fonts/Latin1TextIterator.h"
#include "platform/fonts/SimpleFontData.h"
@@ -114,9 +113,8 @@ float SimpleShaper::adjustSpacing(float width, const CharacterData& charData,
if (width)
width += m_font->fontDescription().letterSpacing();
- static bool expandAroundIdeographs = FontPlatformFeatures::canExpandAroundIdeographsInComplexText();
bool treatAsSpace = Character::treatAsSpace(charData.character);
- if (treatAsSpace || (expandAroundIdeographs && Character::isCJKIdeographOrSymbol(charData.character))) {
+ if (treatAsSpace) {
// Distribute the run's total expansion evenly over all expansion opportunities in the run.
if (m_expansion) {
if (!treatAsSpace && !m_isAfterExpansion) {
« no previous file with comments | « Source/platform/fonts/FontPlatformFeatures.h ('k') | Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698