Chromium Code Reviews| Index: Source/core/paint/LayerClipRecorderTest.cpp |
| diff --git a/Source/core/paint/LayerClipRecorderTest.cpp b/Source/core/paint/LayerClipRecorderTest.cpp |
| index 0ef680413f81ac446ebd02760ddbe671bde9d38b..e05a1b9b100ac24b9286eec9b6d9c37fd8f720f5 100644 |
| --- a/Source/core/paint/LayerClipRecorderTest.cpp |
| +++ b/Source/core/paint/LayerClipRecorderTest.cpp |
| @@ -48,14 +48,14 @@ private: |
| bool m_originalSlimmingPaintEnabled; |
| }; |
| -void drawEmptyClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase phase, const FloatRect& bound) |
| +void drawEmptyClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase phase) |
| { |
| LayoutRect rect(1, 1, 9, 9); |
| ClipRect clipRect(rect); |
| LayerClipRecorder LayerClipRecorder(context, *layoutView.compositor()->rootLayer()->layoutObject(), DisplayItem::ClipLayerForeground, clipRect, 0, LayoutPoint(), PaintLayerFlags()); |
| } |
| -void drawRectInClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase phase, const FloatRect& bound) |
| +void drawRectInClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase phase, const LayoutRect& bound) |
|
jbroman
2015/08/26 19:06:43
Unsure, but maybe I think should stay FloatRect; w
chrishtr
2015/08/26 20:53:51
Same reply as for other test.
|
| { |
| IntRect rect(1, 1, 9, 9); |
| ClipRect clipRect((LayoutRect(rect))); |
| @@ -69,7 +69,7 @@ void drawRectInClip(GraphicsContext& context, LayoutView& layoutView, PaintPhase |
| TEST_F(LayerClipRecorderTest, Single) |
| { |
| GraphicsContext context(&rootDisplayItemList()); |
| - FloatRect bound = layoutView().viewRect(); |
| + LayoutRect bound = layoutView().viewRect(); |
| EXPECT_EQ((size_t)0, rootDisplayItemList().displayItems().size()); |
| drawRectInClip(context, layoutView(), PaintPhaseForeground, bound); |
| @@ -83,10 +83,9 @@ TEST_F(LayerClipRecorderTest, Single) |
| TEST_F(LayerClipRecorderTest, Empty) |
| { |
| GraphicsContext context(&rootDisplayItemList()); |
| - FloatRect bound = layoutView().viewRect(); |
| EXPECT_EQ((size_t)0, rootDisplayItemList().displayItems().size()); |
| - drawEmptyClip(context, layoutView(), PaintPhaseForeground, bound); |
| + drawEmptyClip(context, layoutView(), PaintPhaseForeground); |
| rootDisplayItemList().commitNewDisplayItems(); |
| EXPECT_EQ((size_t)0, rootDisplayItemList().displayItems().size()); |
| } |