| Index: third_party/WebKit/Source/core/layout/line/RootInlineBox.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/RootInlineBox.h b/third_party/WebKit/Source/core/layout/line/RootInlineBox.h
|
| index b1c0554695ba190bd3cc00a294ef074e801f1ccd..77a8982f0b2370d0519719aea047a999320ab3b0 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/RootInlineBox.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/RootInlineBox.h
|
| @@ -61,10 +61,10 @@ public:
|
|
|
| LayoutUnit selectionTop() const;
|
| LayoutUnit selectionBottom() const;
|
| - LayoutUnit selectionHeight() const { return max<LayoutUnit>(0, selectionBottom() - selectionTop()); }
|
| + LayoutUnit selectionHeight() const { return (selectionBottom() - selectionTop()).clampNegativeToZero(); }
|
|
|
| LayoutUnit selectionTopAdjustedForPrecedingBlock() const;
|
| - LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return max<LayoutUnit>(0, selectionBottom() - selectionTopAdjustedForPrecedingBlock()); }
|
| + LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return (selectionBottom() - selectionTopAdjustedForPrecedingBlock()).clampNegativeToZero(); }
|
|
|
| LayoutUnit blockDirectionPointInLine() const;
|
|
|
|
|