Index: Source/core/rendering/RenderTextControlSingleLine.h |
diff --git a/Source/core/rendering/RenderTextControlSingleLine.h b/Source/core/rendering/RenderTextControlSingleLine.h |
index 91970d643b6c1ba07ce4ba98e40f3d9ba041a127..b45f41951b57150f465138f8aafcece23c494841 100644 |
--- a/Source/core/rendering/RenderTextControlSingleLine.h |
+++ b/Source/core/rendering/RenderTextControlSingleLine.h |
@@ -113,7 +113,13 @@ public: |
RenderTextControlInnerBlock(Element* element) : RenderBlock(element) { } |
private: |
- virtual bool hasLineIfEmpty() const { return true; } |
+ virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) const OVERRIDE |
+ { |
+ return orientation == HorizontalScrollbar; |
+ } |
+ virtual bool scrollsOverflowX() const OVERRIDE { return hasOverflowClip(); } |
+ virtual bool scrollsOverflowY() const OVERRIDE { return false; } |
+ virtual bool hasLineIfEmpty() const OVERRIDE { return true; } |
}; |
} |