summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderTextControlSingleLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/RenderTextControlSingleLine.cpp')
-rw-r--r--WebCore/rendering/RenderTextControlSingleLine.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/WebCore/rendering/RenderTextControlSingleLine.cpp b/WebCore/rendering/RenderTextControlSingleLine.cpp
index 84ed8aa..b6c2916 100644
--- a/WebCore/rendering/RenderTextControlSingleLine.cpp
+++ b/WebCore/rendering/RenderTextControlSingleLine.cpp
@@ -216,20 +216,13 @@ void RenderTextControlSingleLine::layout()
int oldHeight = height();
calcHeight();
-#ifdef ANDROID_LAYOUT
- int oldVisibleWidth = m_visibleWidth;
-#endif
-
int oldWidth = width();
calcWidth();
bool relayoutChildren = oldHeight != height() || oldWidth != width();
#ifdef ANDROID_LAYOUT
- if (oldVisibleWidth != m_visibleWidth
- && document()->settings()->layoutAlgorithm() == Settings::kLayoutFitColumnToScreen) {
- relayoutChildren = true;
- }
+ checkAndSetRelayoutChildren(&relayoutChildren);
#endif
RenderBox* innerTextRenderer = innerTextElement()->renderBox();