Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: Source/core/paint/LayerClipRecorderTest.cpp

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/InlineFlowBoxPainter.cpp ('k') | Source/core/paint/LayoutObjectDrawingRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
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());
}
« no previous file with comments | « Source/core/paint/InlineFlowBoxPainter.cpp ('k') | Source/core/paint/LayoutObjectDrawingRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698