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

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

Issue 111833006: Avoiding multiple text/string parsing while creating TextRun (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@FontOptPatch1
Patch Set: Fixing review comments for rebasing files Created 7 years 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 | Source/core/rendering/RenderText.h » ('j') | Source/core/rendering/RenderText.h » ('J')
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 60a35deccf1253ac5df7bbcae293e5ccc1ae2019..d63e63e8a77577094a9b4a275f5af06a41ec2b06 100644
--- a/Source/core/rendering/InlineTextBox.cpp
+++ b/Source/core/rendering/InlineTextBox.cpp
@@ -1523,6 +1523,7 @@ TextRun InlineTextBox::constructTextRun(RenderStyle* style, const Font& font, St
TextRun run(string, textPos(), expansion(), expansionBehavior(), direction(), dirOverride() || style->rtlOrdering() == VisualOrder, !textRenderer->canUseSimpleFontCodePath());
run.setTabSize(!style->collapseWhiteSpace(), style->tabSize());
+ run.setCharacterScanForCodePath(!textRenderer->canUseSimpleFontCodePath());
eae 2013/12/30 19:29:14 Why do we only need to do this for the complex cod
h.joshi 2013/12/31 06:07:43 We can have three cases for text, One; String with
if (textRunNeedsRenderingContext(font))
run.setRenderingContext(SVGTextRunRenderingContext::create(textRenderer));
« no previous file with comments | « no previous file | Source/core/rendering/RenderText.h » ('j') | Source/core/rendering/RenderText.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698