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

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 minor fix 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
Index: Source/core/rendering/RenderTextControlSingleLine.h
diff --git a/Source/core/rendering/RenderTextControlSingleLine.h b/Source/core/rendering/RenderTextControlSingleLine.h
index 91970d643b6c1ba07ce4ba98e40f3d9ba041a127..d4e6e6415db4ef1a38e623e0d012bf835460c379 100644
--- a/Source/core/rendering/RenderTextControlSingleLine.h
+++ b/Source/core/rendering/RenderTextControlSingleLine.h
@@ -113,6 +113,9 @@ public:
RenderTextControlInnerBlock(Element* element) : RenderBlock(element) { }
private:
+ virtual bool isTextField() const { return true; }
+ virtual bool scrollsOverflowX() const OVERRIDE { return hasOverflowClip(); }
+ virtual bool scrollsOverflowY() const OVERRIDE { return hasOverflowClip(); }
tdanderson 2013/08/08 20:01:16 Shouldn't scrollsOverflowY() return false here sin
bokan 2013/08/12 16:19:29 Done.
virtual bool hasLineIfEmpty() const { return true; }
};
« Source/core/rendering/RenderLayer.cpp ('K') | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698