| Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
|
| index dd4c212ba412e46193b3e76ffb6d968a0316c6bc..44d99c4d07c1e955bfabe8b404aa77cbb3a48d66 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
|
| @@ -101,7 +101,7 @@ public:
|
|
|
| LayoutUnit availableLogicalWidthForLine(LayoutUnit position, IndentTextOrNot indentText, LayoutUnit logicalHeight = LayoutUnit()) const
|
| {
|
| - return (logicalRightOffsetForLine(position, indentText, logicalHeight) - logicalLeftOffsetForLine(position, indentText, logicalHeight)).clampToZero();
|
| + return (logicalRightOffsetForLine(position, indentText, logicalHeight) - logicalLeftOffsetForLine(position, indentText, logicalHeight)).clampNegativeToZero();
|
| }
|
| LayoutUnit logicalRightOffsetForLine(LayoutUnit position, IndentTextOrNot indentText, LayoutUnit logicalHeight = LayoutUnit()) const
|
| {
|
| @@ -311,11 +311,11 @@ protected:
|
|
|
| void addOverflowFromFloats();
|
|
|
| - LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, IndentTextOrNot applyTextIndent, LayoutUnit logicalHeight = 0) const
|
| + LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, IndentTextOrNot applyTextIndent, LayoutUnit logicalHeight = LayoutUnit()) const
|
| {
|
| return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(logicalTop, fixedOffset, logicalHeight), applyTextIndent);
|
| }
|
| - LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, IndentTextOrNot applyTextIndent, LayoutUnit logicalHeight = 0) const
|
| + LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedOffset, IndentTextOrNot applyTextIndent, LayoutUnit logicalHeight = LayoutUnit()) const
|
| {
|
| return adjustLogicalLeftOffsetForLine(logicalLeftFloatOffsetForLine(logicalTop, fixedOffset, logicalHeight), applyTextIndent);
|
| }
|
| @@ -467,19 +467,19 @@ public:
|
|
|
| static LayoutUnit positiveMarginBeforeDefault(const LayoutBlockFlow* block)
|
| {
|
| - return block->marginBefore().clampToZero();
|
| + return block->marginBefore().clampNegativeToZero();
|
| }
|
| static LayoutUnit negativeMarginBeforeDefault(const LayoutBlockFlow* block)
|
| {
|
| - return (-block->marginBefore()).clampToZero();
|
| + return (-block->marginBefore()).clampNegativeToZero();
|
| }
|
| static LayoutUnit positiveMarginAfterDefault(const LayoutBlockFlow* block)
|
| {
|
| - return block->marginAfter().clampToZero();
|
| + return block->marginAfter().clampNegativeToZero();
|
| }
|
| static LayoutUnit negativeMarginAfterDefault(const LayoutBlockFlow* block)
|
| {
|
| - return (-block->marginAfter()).clampToZero();
|
| + return (-block->marginAfter()).clampNegativeToZero();
|
| }
|
|
|
| MarginValues m_margins;
|
|
|