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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 2906953002: [DMC #26] Add CompositionMarker::Thickness enum (Closed)
Patch Set: Rebase Created 3 years, 7 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/markers/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index 55800d2253b6131242523bc4b2cea66922843441..df947538c04ec1cf414c13ccbec2b4e42a0e0f77 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -150,15 +150,16 @@ void DocumentMarkerController::AddTextMatchMarker(
// throttling algorithm. crbug.com/6819.
}
-void DocumentMarkerController::AddCompositionMarker(const EphemeralRange& range,
- Color underline_color,
- bool thick,
- Color background_color) {
+void DocumentMarkerController::AddCompositionMarker(
+ const EphemeralRange& range,
+ Color underline_color,
+ CompositionMarker::Thickness thickness,
+ Color background_color) {
DCHECK(!document_->NeedsLayoutTreeUpdate());
- AddMarkerInternal(range, [underline_color, thick, background_color](
+ AddMarkerInternal(range, [underline_color, thickness, background_color](
int start_offset, int end_offset) {
return new CompositionMarker(start_offset, end_offset, underline_color,
- thick, background_color);
+ thickness, background_color);
});
}

Powered by Google App Engine
This is Rietveld 408576698