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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarker.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/markers/DocumentMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
index eaf5c8ba476b638f4b47ec92aa1e3d7ec8de1a0b..9aceee0f0d56b4c91b6ad501f9f15e7be045a2fc 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
@@ -155,14 +155,19 @@ DocumentMarker::DocumentMarker(unsigned startOffset,
unsigned endOffset,
Color underlineColor,
bool thick,
- Color backgroundColor)
- : m_type(DocumentMarker::Composition),
- m_startOffset(startOffset),
+ Color backgroundColor,
+ bool persist)
+ : m_startOffset(startOffset),
m_endOffset(endOffset),
m_details(TextCompositionMarkerDetails::create(underlineColor,
thick,
backgroundColor)),
- m_hash(0) {}
+ m_hash(0) {
+ if (persist)
+ m_type = DocumentMarker::PersistingComposition;
+ else
+ m_type = DocumentMarker::Composition;
+}
DocumentMarker::DocumentMarker(const DocumentMarker& marker)
: m_type(marker.type()),

Powered by Google App Engine
This is Rietveld 408576698