#include "HTMLParserIdioms.h"
#include "ScriptEventListener.h"
-#ifdef ANDROID_META_SUPPORT
-#include "PlatformBridge.h"
-#include "Settings.h"
-#endif
-
namespace WebCore {
using namespace HTMLNames;
setAttribute(marginheightAttr, String::number(marginHeight));
}
-#ifdef ANDROID_META_SUPPORT
- Settings * settings = document()->settings();
- if (settings) {
- String host = document()->baseURI().host().lower();
- if (settings->viewportWidth() == -1 && (host.startsWith("m.") || host.startsWith("mobile.")
- || host.startsWith("wap.") || host.contains(".m.") || host.contains(".mobile.") || host.contains(".wap."))) {
- // fit mobile sites directly in the screen
- document()->processViewport("width=device-width");
- }
- }
-#endif
-
// FIXME: This call to scheduleRelayout should not be needed here.
// But without it we hang during WebKit tests; need to fix that and remove this.
if (FrameView* view = document()->view())