| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 48c5120e1a3c90d399edb2a6627479408dac94e3..dcba2a04788ba68b9e11b7117e5bb94f05419bd9 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -81,7 +81,6 @@
|
| #include "core/page/EventHandler.h"
|
| #include "core/page/FocusController.h"
|
| #include "core/page/FrameTree.h"
|
| -#include "core/page/InjectedStyleSheets.h"
|
| #include "core/page/Page.h"
|
| #include "core/page/PagePopupClient.h"
|
| #include "core/page/PointerLockController.h"
|
| @@ -3899,20 +3898,6 @@ void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor,
|
| #endif
|
| }
|
|
|
| -void WebView::injectStyleSheet(const WebString& sourceCode, const WebVector<WebString>& patternsIn, WebView::StyleInjectionTarget injectIn)
|
| -{
|
| - Vector<String> patterns;
|
| - for (size_t i = 0; i < patternsIn.size(); ++i)
|
| - patterns.append(patternsIn[i]);
|
| -
|
| - InjectedStyleSheets::instance().add(sourceCode, patterns, static_cast<blink::StyleInjectionTarget>(injectIn));
|
| -}
|
| -
|
| -void WebView::removeInjectedStyleSheets()
|
| -{
|
| - InjectedStyleSheets::instance().removeAll();
|
| -}
|
| -
|
| void WebViewImpl::didCommitLoad(bool isNewNavigation, bool isNavigationWithinPage)
|
| {
|
| if (isNewNavigation && !isNavigationWithinPage)
|
|
|