summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-11-24 13:26:16 -0500
committerCary Clark <cary@android.com>2009-11-24 13:26:16 -0500
commitb6355d33f38634ba0e2ddc26b809ead9dcdb17cc (patch)
tree0fb2ff8bc88505d82f1f9089c6086ae21eb027c7 /WebCore/rendering
parentecf268d482528c4778b1bca2eea6a2d49e477c3f (diff)
downloadexternal_webkit-b6355d33f38634ba0e2ddc26b809ead9dcdb17cc.zip
external_webkit-b6355d33f38634ba0e2ddc26b809ead9dcdb17cc.tar.gz
external_webkit-b6355d33f38634ba0e2ddc26b809ead9dcdb17cc.tar.bz2
remove obsolete code block
This block was commented out in Android to improve performance. It has now been removed from webkit altogether. It needs to be removed to allow webkit to build for Safari, since the interfaces it references are now obsolete.
Diffstat (limited to 'WebCore/rendering')
-rw-r--r--WebCore/rendering/RenderTextControl.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/WebCore/rendering/RenderTextControl.cpp b/WebCore/rendering/RenderTextControl.cpp
index c8b4e0f..f430399 100644
--- a/WebCore/rendering/RenderTextControl.cpp
+++ b/WebCore/rendering/RenderTextControl.cpp
@@ -492,17 +492,6 @@ void RenderTextControl::calcPrefWidths()
m_minPrefWidth += toAdd;
m_maxPrefWidth += toAdd;
-#if !PLATFORM(ANDROID)
- // FIXME: This causes cnn.com loading way slow. Comment it out for now
- Frame* frame = document()->frame();
- if (frame && frame->settings()->layoutAlgorithm() == Settings::kLayoutFitColumnToScreen) {
- int maxWidth = frame->view()->visibleWidth() - 2 * ANDROID_FCTS_MARGIN_PADDING;
- if (maxWidth > 0 && maxWidth < m_minPrefWidth)
- m_minPrefWidth = maxWidth;
- if (maxWidth > 0 && maxWidth < m_maxPrefWidth)
- m_maxPrefWidth = maxWidth;
- }
-#endif
setPrefWidthsDirty(false);
}