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

Unified Diff: Source/core/rendering/InlineTextBox.cpp

Issue 608083003: Don't populate GlyphBuffer in InlineTextBox::characterWidths (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/InlineTextBox.cpp
diff --git a/Source/core/rendering/InlineTextBox.cpp b/Source/core/rendering/InlineTextBox.cpp
index 91a40b6194949653122f5f1b679477adcf0a77af..30ce5e0113a19ee27a1f26ba262bfddd4dca7653 100644
--- a/Source/core/rendering/InlineTextBox.cpp
+++ b/Source/core/rendering/InlineTextBox.cpp
@@ -1237,12 +1237,11 @@ void InlineTextBox::characterWidths(Vector<float>& widths) const
TextRun textRun = constructTextRun(styleToUse, font);
- GlyphBuffer glyphBuffer;
SimpleShaper shaper(&font, textRun);
float lastWidth = 0;
widths.resize(m_len);
for (unsigned i = 0; i < m_len; i++) {
- shaper.advance(i + 1, &glyphBuffer);
+ shaper.advance(i + 1);
widths[i] = shaper.m_runWidthSoFar - lastWidth;
lastWidth = shaper.m_runWidthSoFar;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698