summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLGenericFormElement.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch)
treed49911209b132da58d838efa852daf28d516df21 /WebCore/html/HTMLGenericFormElement.cpp
parent87eb0cb35bad8784770ebc807e6c982432e47107 (diff)
downloadexternal_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz
external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2
Initial Contribution
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