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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextCombine.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/core/layout/LayoutTextCombine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
index 37b58288a6f171c2530129e76188b9999b8bd662..1f9f8aac7b2cb15ae9b63ccfff4d08cd65d7fd9c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
@@ -60,7 +60,7 @@ float LayoutTextCombine::width(unsigned from, unsigned length, const Font& font,
return 0;
if (m_isCombined)
- return font.fontDescription().computedSize();
+ return font.getFontDescription().computedSize();
return LayoutText::width(from, length, font, xPosition, direction, fallbackFonts, glyphBounds);
}
@@ -132,7 +132,7 @@ void LayoutTextCombine::updateFont()
unsigned offset = 0;
TextRun run = constructTextRun(originalFont(), this, offset, textLength(), styleRef(), style()->direction());
- FontDescription description = originalFont().fontDescription();
+ FontDescription description = originalFont().getFontDescription();
float emWidth = description.computedSize();
if (!(style()->textDecorationsInEffect() & (TextDecorationUnderline | TextDecorationOverline)))
emWidth *= textCombineMargin;
@@ -140,7 +140,7 @@ void LayoutTextCombine::updateFont()
description.setOrientation(FontOrientation::Horizontal); // We are going to draw combined text horizontally.
m_combinedTextWidth = originalFont().width(run);
- FontSelector* fontSelector = style()->font().fontSelector();
+ FontSelector* fontSelector = style()->font().getFontSelector();
bool shouldUpdateFont = mutableStyleRef().setFontDescription(description); // Need to change font orientation to horizontal.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextCombine.h ('k') | third_party/WebKit/Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698