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

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

Issue 137723002: Split words on text direction boundaries when computing preffered width (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 11 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 | « LayoutTests/fast/text/international/inline-block-with-mixed-direction-words-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderText.cpp
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp
index 829758b217ec07f5586e868d935ac68a657925c0..e7ce4d78727ccb343fb20c2ee1b1126887a8a3c5 100644
--- a/Source/core/rendering/RenderText.cpp
+++ b/Source/core/rendering/RenderText.cpp
@@ -1020,6 +1020,8 @@ void RenderText::computePreferredLogicalWidths(float leadWidth, HashSet<const Si
}
}
+ // Terminate word boundary at bidi run boundary.
+ j = min(j, run->stop());
int wordLen = j - i;
if (wordLen) {
bool isSpace = (j < len) && c == ' ';
« no previous file with comments | « LayoutTests/fast/text/international/inline-block-with-mixed-direction-words-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698