Index: third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
index 32fbfe5c4488431415cf20f508d4e13f211addd5..436717f2647023a8fa3681b8ee57565b4c0faea5 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp |
@@ -359,8 +359,10 @@ PassRefPtr<ComputedStyle> LayoutTextControlSingleLine::createInnerEditorStyle(co |
textBlockStyle->setWhiteSpace(PRE); |
textBlockStyle->setOverflowWrap(NormalOverflowWrap); |
- textBlockStyle->setOverflowX(OHIDDEN); |
- textBlockStyle->setOverflowY(OHIDDEN); |
+ // Note that although overflowX/Y is set to scroll, the scrollbars will be |
+ // hidden by the webkit-scrollbar selector in the default style sheet (html.css). |
+ textBlockStyle->setOverflowX(OSCROLL); |
skobes
2015/09/30 22:31:14
Do we need these two lines, or is the default (OAU
ymalik
2015/10/01 22:25:31
Yes we need these two lines.OAUTO causes the text
|
+ textBlockStyle->setOverflowY(OSCROLL); |
textBlockStyle->setTextOverflow(textShouldBeTruncated() ? TextOverflowEllipsis : TextOverflowClip); |
if (m_desiredInnerEditorLogicalHeight >= 0) |