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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.cpp

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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/platform/fonts/Font.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
index 4028270a4bf9ef7e5219f75e4bacad6748f74d84..1a9fab05f06e8a9ceb88239de6bb995b23e30e2c 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
@@ -401,7 +401,7 @@ int Font::offsetForPosition(const TextRun& run, float x, bool includePartialGlyp
{
FontCachePurgePreventer purgePreventer;
- if (codePath(TextRunPaintInfo(run)) != ComplexPath && !fontDescription().typesettingFeatures())
+ if (codePath(TextRunPaintInfo(run)) != ComplexPath && !fontDescription().getTypesettingFeatures())
return offsetForPositionForSimpleText(run, x, includePartialGlyphs);
return offsetForPositionForComplexText(run, x, includePartialGlyphs);
@@ -420,7 +420,7 @@ CodePath Font::codePath(const TextRunPaintInfo& runInfo) const
const TextRun& run = runInfo.run;
- if (fontDescription().typesettingFeatures() && (runInfo.from || runInfo.to != run.length()))
+ if (fontDescription().getTypesettingFeatures() && (runInfo.from || runInfo.to != run.length()))
return ComplexPath;
if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings()->size() > 0)
@@ -432,7 +432,7 @@ CodePath Font::codePath(const TextRunPaintInfo& runInfo) const
if (m_fontDescription.widthVariant() != RegularWidth)
return ComplexPath;
- if (run.length() > 1 && fontDescription().typesettingFeatures())
+ if (run.length() > 1 && fontDescription().getTypesettingFeatures())
return ComplexPath;
// FIXME: This really shouldn't be needed but for some reason the
@@ -459,11 +459,11 @@ bool Font::canShapeWordByWord() const
bool Font::computeCanShapeWordByWord() const
{
- if (!fontDescription().typesettingFeatures())
+ if (!fontDescription().getTypesettingFeatures())
return true;
const FontPlatformData& platformData = primaryFont()->platformData();
- TypesettingFeatures features = fontDescription().typesettingFeatures();
+ TypesettingFeatures features = fontDescription().getTypesettingFeatures();
return !platformData.hasSpaceInLigaturesOrKerning(features);
};

Powered by Google App Engine
This is Rietveld 408576698