Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
index 5b46a96cc3e4b46234b9885ed4e2c95a28259f69..25da582651273e7d468b5a740df367e8e6e3667a 100644 |
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp |
@@ -444,8 +444,8 @@ void InputMethodController::addCompositionUnderlines( |
continue; |
document().markers().addCompositionMarker( |
- ephemeralLineRange.startPosition(), ephemeralLineRange.endPosition(), |
- underline.color(), underline.thick(), underline.backgroundColor()); |
+ ephemeralLineRange, underline.color(), underline.thick(), |
+ underline.backgroundColor()); |
} |
} |
@@ -691,8 +691,7 @@ void InputMethodController::setComposition( |
if (underlines.isEmpty()) { |
document().markers().addCompositionMarker( |
- m_compositionRange->startPosition(), m_compositionRange->endPosition(), |
- Color::black, false, |
+ EphemeralRange(m_compositionRange), Color::black, false, |
LayoutTheme::theme().platformDefaultCompositionBackgroundColor()); |
return; |
} |