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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMenuList.cpp

Issue 1525963002: (CANCELED) Improve performance of large option list with CJK text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to PS2 Created 5 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
Index: third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
index 3ee070eb654ace675a568e52ace4e896dbd0139a..48deb2815045bd0497a54b0e96a76426fd84c486 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.cpp
@@ -200,7 +200,7 @@ void LayoutMenuList::updateOptionsWidth()
float LayoutMenuList::computeTextWidth(const String& text) const
{
- return style()->font().width(constructTextRun(style()->font(), text, styleRef()));
+ return style()->font().widthForUnbrokenRun(constructTextRun(style()->font(), text, styleRef()));
}
void LayoutMenuList::updateFromElement()
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/Font.h » ('j') | third_party/WebKit/Source/platform/fonts/Font.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698