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

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

Issue 2425593002: Remove DCHECK in BreakingContextInlineHeader that wasn't much useful (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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 e8d3640237bfe637097e2f0b0531186e570902c3..92d696f19dc9e35c9963e50b8ee46976eb8f5a8f 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
@@ -819,8 +819,6 @@ ALWAYS_INLINE bool BreakingContext::rewindToMidWordBreak(
len = end - start;
}
FloatRect rect = font.selectionRectForText(run, FloatPoint(), 0, 0, len);
- DCHECK(m_width.fitsOnLine(rect.width() -
- 1)); // avoid failure when rect is rounded up.
return rewindToMidWordBreak(wordMeasurement, end, rect.width());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698