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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.cpp

Issue 2922233002: [ActiveSuggestionMarker #1] Introduce abstract StyleableMarker subclass of DocumentMarker (Closed)
Patch Set: Add test for IsStyleableMarker() Created 3 years, 6 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
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 33eb3153143ba1be44737d404cc2e9c73d067e57..1f2e2e9e8ac8dd2c8bfbcbf7d69b3ba964fcd08f 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -466,8 +466,8 @@ void InputMethodController::AddCompositionUnderlines(
GetDocument().Markers().AddCompositionMarker(
ephemeral_line_range, underline.GetColor(),
- underline.Thick() ? CompositionMarker::Thickness::kThick
- : CompositionMarker::Thickness::kThin,
+ underline.Thick() ? StyleableMarker::Thickness::kThick
+ : StyleableMarker::Thickness::kThin,
underline.BackgroundColor());
}
}
@@ -692,7 +692,7 @@ void InputMethodController::SetComposition(
if (underlines.IsEmpty()) {
GetDocument().Markers().AddCompositionMarker(
EphemeralRange(composition_range_), Color::kBlack,
- CompositionMarker::Thickness::kThin,
+ StyleableMarker::Thickness::kThin,
LayoutTheme::GetTheme().PlatformDefaultCompositionBackgroundColor());
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/markers/CompositionMarker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698