// ANDROID
// TODO: Upstream to webkit.org. See https://bugs.webkit.org/show_bug.cgi?id=34082
static bool isWebViewPaused(const FrameView*);
-
- static bool canScroll(const FrameView*);
static String resolveFilePathForContentUri(const String&);
};
#include "IntRect.h"
#include "PlatformBridge.h"
#include "SkRegion.h"
+#include "WebCoreFrameBridge.h"
#include "WebCoreViewBridge.h"
#include "WebViewCore.h"
{
if (parent()) // don't attempt to scroll subframes; they're fully visible
return;
- if (isFrameView() && !PlatformBridge::canScroll(static_cast<FrameView*>(this)))
- return;
android::WebViewCore::getWebViewCore(this)->scrollTo(pt.x(), pt.y());
}
#include "KeyGeneratorClient.h"
#include "PluginView.h"
#include "Settings.h"
-#include "WebCoreFrameBridge.h"
#include "WebRequestContext.h"
#include "WebViewCore.h"
#include "npruntime.h"
return webViewCore->isPaused();
}
-bool PlatformBridge::canScroll(const WebCore::FrameView* frameView)
-{
- // We want to ignore requests to scroll that were not initiated by the
- // user. An example of this is when text is inserted into a
- // textfield/area, which results in a scroll. We ignore this because
- // we know how to do this ourselves in the UI thread.
- // An example of it being initiated by the user is if the user clicks
- // an anchor element which simply scrolls the page.
- return android::WebFrame::getWebFrame(frameView->frame())->userInitiatedAction();
-}
-
bool PlatformBridge::popupsAllowed(NPP)
{
return false;