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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 2504173002: When placing a float, pay attention to its final logical top. (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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/block/float/float-on-line-large-and-small-float-below.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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 9254bcd7543d247f1bde258974d0d18653337882..0ea54917cca50e25c23a1fef7d706c8f4d92d9fb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -3632,7 +3632,7 @@ bool LayoutBlockFlow::positionNewFloats(LayoutUnit logicalTop,
// unplaced floats in our list that come from somewhere else, we have a bug.
DCHECK_EQ(floatingObject.layoutObject()->containingBlock(), this);
- positionAndLayoutFloat(floatingObject, logicalTop);
+ logicalTop = positionAndLayoutFloat(floatingObject, logicalTop);
m_floatingObjects->addPlacedObject(floatingObject);
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/block/float/float-on-line-large-and-small-float-below.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698