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

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

Issue 2611813002: Add support for persisting CompositionUnderlines in InputMethodController (Closed)
Patch Set: Try one more time Created 3 years, 12 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/CompositionUnderline.cpp
diff --git a/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp b/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp
index e404879b86ccb7b461d896f3eaeda749d8783b57..846b67b1f886c9ffa5494adbefcbf3c59241f6f1 100644
--- a/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp
+++ b/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp
@@ -10,8 +10,12 @@ CompositionUnderline::CompositionUnderline(unsigned startOffset,
unsigned endOffset,
const Color& color,
bool thick,
- const Color& backgroundColor)
- : m_color(color), m_thick(thick), m_backgroundColor(backgroundColor) {
+ const Color& backgroundColor,
+ bool persist)
+ : m_color(color),
+ m_thick(thick),
+ m_backgroundColor(backgroundColor),
+ m_persist(persist) {
// Sanitize offsets by ensuring a valid range corresponding to the last
// possible position.
// TODO(wkorman): Consider replacing with DCHECK_LT(startOffset, endOffset).

Powered by Google App Engine
This is Rietveld 408576698