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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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/shaping/SimpleShaper.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.cpp
index f8d0ef571dbe66bc337548cc30dbbfd583f98d02..f1bc7a1c431e2296d15b27ae6fde1a5b4388e09d 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.cpp
@@ -87,7 +87,7 @@ float SimpleShaper::adjustSpacing(float width, const CharacterData& charData)
{
// Account for letter-spacing.
if (width)
- width += m_font->fontDescription().letterSpacing();
+ width += m_font->getFontDescription().letterSpacing();
bool isExpansionOpportunity = Character::treatAsSpace(charData.character) || (m_textRun.getTextJustify() == TextJustifyDistribute);
if (isExpansionOpportunity || (m_textRun.getTextJustify() == TextJustifyAuto && Character::isCJKIdeographOrSymbol(charData.character))) {
@@ -113,8 +113,8 @@ float SimpleShaper::adjustSpacing(float width, const CharacterData& charData)
// We apply additional space between "words" by adding width to the space character.
if (isExpansionOpportunity && (charData.character != tabulationCharacter || !m_textRun.allowTabs())
&& (charData.characterOffset || charData.character == noBreakSpaceCharacter)
- && m_font->fontDescription().wordSpacing()) {
- width += m_font->fontDescription().wordSpacing();
+ && m_font->getFontDescription().wordSpacing()) {
+ width += m_font->getFontDescription().wordSpacing();
}
} else {
m_isAfterExpansion = false;
@@ -126,7 +126,7 @@ float SimpleShaper::adjustSpacing(float width, const CharacterData& charData)
template <typename TextIterator>
unsigned SimpleShaper::advanceInternal(TextIterator& textIterator, GlyphBuffer* glyphBuffer)
{
- bool hasExtraSpacing = (m_font->fontDescription().letterSpacing() || m_font->fontDescription().wordSpacing() || m_expansion)
+ bool hasExtraSpacing = (m_font->getFontDescription().letterSpacing() || m_font->getFontDescription().wordSpacing() || m_expansion)
&& !m_textRun.spacingDisabled();
const SimpleFontData* lastFontData = m_font->primaryFont();

Powered by Google App Engine
This is Rietveld 408576698