Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1251)

Unified Diff: Source/core/rendering/RenderTextControlSingleLine.h

Issue 22488004: Made text inside <input> elements scrollable using touch gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout test fixes Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
};
}
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698