summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLGenericFormElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLGenericFormElement.cpp')
-rw-r--r--WebCore/html/HTMLGenericFormElement.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/WebCore/html/HTMLGenericFormElement.cpp b/WebCore/html/HTMLGenericFormElement.cpp
index c40599c..2eab0a8 100644
--- a/WebCore/html/HTMLGenericFormElement.cpp
+++ b/WebCore/html/HTMLGenericFormElement.cpp
@@ -37,6 +37,10 @@
#include "RenderTheme.h"
#include "Tokenizer.h"
+#if USE(LOW_BANDWIDTH_DISPLAY)
+#include "FrameLoader.h"
+#endif
+
namespace WebCore {
using namespace EventNames;
@@ -258,4 +262,15 @@ void HTMLFormControlElementWithState::finishParsingChildren()
}
}
+#if USE(LOW_BANDWIDTH_DISPLAY)
+bool HTMLGenericFormElement::rendererIsNeeded(RenderStyle* style)
+{
+ if (document()->inLowBandwidthDisplay()) {
+ document()->frame()->loader()->needToSwitchOutLowBandwidthDisplay();
+ return false;
+ }
+ return HTMLElement::rendererIsNeeded(style);
+}
+#endif
+
} // namespace Webcore