| Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| index fa67cdc151484c6588b623eab414ed03d0f089e8..4bfc662c1d71e2e3b252e93b50f6a75650ed7c7f 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -1495,11 +1495,13 @@ void LayoutBlock::computeBlockPreferredLogicalWidths(
|
| if (child->isFloating() ||
|
| (child->isBox() && toLayoutBox(child)->avoidsFloats())) {
|
| LayoutUnit floatTotalWidth = floatLeftWidth + floatRightWidth;
|
| - if (childStyle->clear() & ClearLeft) {
|
| + if (childStyle->clear() == ClearBoth ||
|
| + childStyle->clear() == ClearLeft) {
|
| maxLogicalWidth = std::max(floatTotalWidth, maxLogicalWidth);
|
| floatLeftWidth = LayoutUnit();
|
| }
|
| - if (childStyle->clear() & ClearRight) {
|
| + if (childStyle->clear() == ClearBoth ||
|
| + childStyle->clear() == ClearRight) {
|
| maxLogicalWidth = std::max(floatTotalWidth, maxLogicalWidth);
|
| floatRightWidth = LayoutUnit();
|
| }
|
|
|