Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index a702afc94dfd29e9d25ff316072bf0ba60b6486a..b84ce0ce4f2a69aeee1afaf15db9ca5d9374e6e6 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -2962,6 +2962,25 @@ void WebViewImpl::setDeviceScaleFactor(float scaleFactor) |
updateLayerTreeDeviceScaleFactor(); |
} |
+void WebViewImpl::setDeviceColorProfile(const WebVector<char>& colorProfile) |
+{ |
+ if (!page()) |
+ return; |
+ |
+ Vector<char> deviceProfile; |
+ deviceProfile.append(colorProfile.data(), colorProfile.size()); |
+ |
+ page()->setDeviceColorProfile(deviceProfile); |
+} |
+ |
+void WebViewImpl::resetDeviceColorProfile() |
+{ |
+ if (!page()) |
+ return; |
+ |
+ page()->resetDeviceColorProfile(); |
+} |
+ |
void WebViewImpl::enableAutoResizeMode(const WebSize& minSize, const WebSize& maxSize) |
{ |
m_shouldAutoResize = true; |