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

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

Issue 2725933002: Fix LayoutUnit snapping of widths in line breaker (Closed)
Patch Set: Add test cases for m_uncommittedWidth and !m_uncommittedWidth Created 3 years, 10 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
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 07d43ece65b97bcf069bac23c6554eab51dd45e8..580cea082ce674de0c964ca12a39741b67cc09a6 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
@@ -382,7 +382,7 @@ inline void BreakingContext::increment() {
// When the line box tree is created, this position in the line will be
// snapped to LayoutUnit's, and those measurements will be used by the paint
// code. Do the equivalent snapping here, to get consistent line measurements.
- m_width.snapUncommittedWidth();
+ m_width.snapAtNodeBoundary();
m_atStart = false;
}

Powered by Google App Engine
This is Rietveld 408576698