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

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

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/VideoPainter.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ViewDisplayListTest.cpp
diff --git a/Source/core/paint/ViewDisplayListTest.cpp b/Source/core/paint/ViewDisplayListTest.cpp
index c3b8632183c4cd817f53d7218156d59ed0617b1d..353953fef4f73e9f05c3fed9ed1eb8e8f5a38e19 100644
--- a/Source/core/paint/ViewDisplayListTest.cpp
+++ b/Source/core/paint/ViewDisplayListTest.cpp
@@ -96,7 +96,7 @@ void drawRect(GraphicsContext* context, LayoutObject* renderer, PaintPhase phase
void drawClippedRect(GraphicsContext* context, LayoutBoxModelObject* renderer, PaintPhase phase, const FloatRect& bound)
{
- IntRect rect(1, 1, 9, 9);
+ LayoutRect rect(1, 1, 9, 9);
ClipRect clipRect(rect);
LayerClipRecorder layerClipRecorder(renderer, context, DisplayItem::ClipLayerForeground, clipRect, 0, LayoutPoint(), PaintLayerFlags());
drawRect(context, renderer, phase, bound);
@@ -341,7 +341,7 @@ TEST_F(ViewDisplayListTest, UpdateClip)
LayoutBoxModelObject* secondRenderer = toLayoutBoxModelObject(document().body()->firstChild()->firstChild()->renderer());
GraphicsContext context(nullptr, &rootDisplayItemList());
- ClipRect firstClipRect(IntRect(1, 1, 2, 2));
+ ClipRect firstClipRect(LayoutRect(1, 1, 2, 2));
{
LayerClipRecorder layerClipRecorder(firstRenderer, &context, DisplayItem::ClipLayerForeground, firstClipRect, 0, LayoutPoint(), PaintLayerFlags());
drawRect(&context, firstRenderer, PaintPhaseBlockBackground, FloatRect(100, 100, 150, 150));
@@ -366,7 +366,7 @@ TEST_F(ViewDisplayListTest, UpdateClip)
rootDisplayItemList().invalidate(secondRenderer->displayItemClient());
drawRect(&context, firstRenderer, PaintPhaseBlockBackground, FloatRect(100, 100, 150, 150));
- ClipRect secondClipRect(IntRect(1, 1, 2, 2));
+ ClipRect secondClipRect(LayoutRect(1, 1, 2, 2));
{
LayerClipRecorder layerClipRecorder(secondRenderer, &context, DisplayItem::ClipLayerForeground, secondClipRect, 0, LayoutPoint(), PaintLayerFlags());
drawRect(&context, secondRenderer, PaintPhaseBlockBackground, FloatRect(100, 100, 150, 150));
« no previous file with comments | « Source/core/paint/VideoPainter.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698