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 2483023002: Let positionNewFloats() take a logicalTop parameter. (Closed)
Patch Set: Created 4 years, 1 month 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 9442a3172f7acec8a13418db517212650cff2954..03bf794d0016a12d7ea4ebd1cd38171fa6a3e9c1 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
@@ -496,7 +496,7 @@ inline void BreakingContext::handleFloat() {
m_width.fitsOnLine(
m_block.logicalWidthForFloat(*floatingObject).toFloat(),
ExcludeWhitespace)) {
- m_block.positionNewFloats(&m_width);
+ m_block.positionNewFloats(m_block.logicalHeight(), &m_width);
if (m_lineBreak.getLineLayoutItem() == m_current.getLineLayoutItem()) {
ASSERT(!m_lineBreak.offset());
m_lineBreak.increment();

Powered by Google App Engine
This is Rietveld 408576698