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

Unified Diff: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h

Issue 2564263002: Merge 2924: Fix not to double count the widths of hyphens (Closed)
Patch Set: Created 4 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 | « third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
diff --git a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
index a27dfbd0a5282eb7f06b499360991c18fa518d46..d7daadd88e4b7af220139a239a014dfc61ad1af2 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
@@ -886,7 +886,7 @@ ALWAYS_INLINE bool BreakingContext::hyphenate(
// ignores the kerning between the last letter and the hyphen.
return rewindToMidWordBreak(
wordMeasurement, start + prefixLength,
- font.getCharacterRange(run, 0, prefixLength).width() + hyphenWidth);
+ font.getCharacterRange(run, 0, prefixLength).width());
}
ALWAYS_INLINE bool BreakingContext::isBreakAtSoftHyphen() const {
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698