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

Unified Diff: Source/core/html/HTMLTextFormControlElementTest.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/html/HTMLCanvasElement.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698