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

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

Issue 2363833003: FATAL:DCHECK failed on BreakingContext::rewindToMidWordBreak() (Closed)
Patch Set: FATAL:DCHECK failed on BreakingContext::rewindToMidWordBreak() Created 4 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 | « third_party/WebKit/LayoutTests/fast/text/breaking-context-inline-crash.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 c8f2fc65a6464cb5c05d6c2939e0843005a2401c..68fc1c0beaf2476f581beee3068e032a2cc144b7 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
@@ -1005,6 +1005,8 @@ inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool
if (!hyphenated && isBreakAtSoftHyphen() && !disableSoftHyphen) {
hyphenated = true;
m_atEnd = true;
+ } else if (!m_ignoringSpaces && canBreakMidWord && m_width.committedWidth()) {
+ m_atEnd = true;
}
}
return false;
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/text/breaking-context-inline-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698