| 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 1f6b1d6bb93d8c76eacbe07f31dac2b7a3127f87..3dd8c8981e7b4b912d6ad1f5923df97d790f3235 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;
|
|
|
|
|