| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index f6afffcb4c0b85839401cf100ad3278375c2bf6a..c1d869d5578d8902a442cab24cdaafa24c1b1728 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -2584,6 +2584,20 @@
|
| return toLocalFrame(frame)->selection().selection().isBaseFirst();
|
| }
|
|
|
| +WebVector<WebCompositionUnderline> WebViewImpl::compositionUnderlines() const
|
| +{
|
| + const LocalFrame* focused = toLocalFrame(focusedCoreFrame());
|
| + if (!focused)
|
| + return WebVector<WebCompositionUnderline>();
|
| + const Vector<CompositionUnderline>& underlines = focused->inputMethodController().customCompositionUnderlines();
|
| + WebVector<WebCompositionUnderline> results(underlines.size());
|
| + for (size_t index = 0; index < underlines.size(); ++index) {
|
| + CompositionUnderline underline = underlines[index];
|
| + results[index] = WebCompositionUnderline(underline.startOffset, underline.endOffset, static_cast<WebColor>(underline.color.rgb()), underline.thick, static_cast<WebColor>(underline.backgroundColor.rgb()));
|
| + }
|
| + return results;
|
| +}
|
| +
|
| WebColor WebViewImpl::backgroundColor() const
|
| {
|
| if (isTransparent())
|
|
|