Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp |
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp |
index 5611a89967bdb911bafee30ba9a6fee190df6cf1..d8ea19ddabcefdb9b5c1ce04c38be6ad5d4f8037 100644 |
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp |
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp |
@@ -252,7 +252,7 @@ TEST_F(DocumentMarkerControllerTest, SetMarkerActiveTest) |
EphemeralRange ephemeralRange = EphemeralRange::rangeOfContents(*bElement); |
Position startBElement = toPositionInDOMTree(ephemeralRange.startPosition()); |
Position endBElement = toPositionInDOMTree(ephemeralRange.endPosition()); |
- Range* range = Range::create(document(), startBElement, endBElement); |
+ const EphemeralRange range(startBElement, endBElement); |
// Try to make active a marker that doesn't exist. |
EXPECT_FALSE(markerController().setMarkersActive(range, true)); |