Index: Source/core/html/HTMLTextFormControlElementTest.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElementTest.cpp b/Source/core/html/HTMLTextFormControlElementTest.cpp |
index f6b07699985213fec399d666882101db4c3bc70a..25f75c3be0f29ca05a7a6b3ac0f145e5ca420a60 100644 |
--- a/Source/core/html/HTMLTextFormControlElementTest.cpp |
+++ b/Source/core/html/HTMLTextFormControlElementTest.cpp |
@@ -115,21 +115,21 @@ TEST_F(HTMLTextFormControlElementTest, SetSelectionRangeDoesNotCauseLayout) |
input().setSelectionRange(1, 1); |
FrameSelection& frameSelection = document().frame()->selection(); |
forceLayoutFlag(); |
- LayoutRect oldCaretRect = frameSelection.absoluteCaretBounds(); |
+ LayoutRect oldCaretRect(frameSelection.absoluteCaretBounds()); |
EXPECT_FALSE(oldCaretRect.isEmpty()); |
int startLayoutCount = layoutCount(); |
input().setSelectionRange(1, 1); |
EXPECT_EQ(startLayoutCount, layoutCount()); |
- LayoutRect newCaretRect = frameSelection.absoluteCaretBounds(); |
+ LayoutRect newCaretRect(frameSelection.absoluteCaretBounds()); |
EXPECT_EQ(oldCaretRect, newCaretRect); |
forceLayoutFlag(); |
- oldCaretRect = frameSelection.absoluteCaretBounds(); |
+ oldCaretRect = LayoutRect(frameSelection.absoluteCaretBounds()); |
EXPECT_FALSE(oldCaretRect.isEmpty()); |
startLayoutCount = layoutCount(); |
input().setSelectionRange(2, 2); |
EXPECT_EQ(startLayoutCount, layoutCount()); |
- newCaretRect = frameSelection.absoluteCaretBounds(); |
+ newCaretRect = LayoutRect(frameSelection.absoluteCaretBounds()); |
EXPECT_NE(oldCaretRect, newCaretRect); |
} |