Index: Source/core/rendering/RenderTextControl.h |
diff --git a/Source/core/rendering/RenderTextControl.h b/Source/core/rendering/RenderTextControl.h |
index baf8e77ba35e2b782076c8811753f267a8c74362..e4af77a46ea2e19fb6bb4205df9a2b9358b7774c 100644 |
--- a/Source/core/rendering/RenderTextControl.h |
+++ b/Source/core/rendering/RenderTextControl.h |
@@ -64,6 +64,11 @@ protected: |
virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const OVERRIDE; |
virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&); |
+ // We need to override this function because we don't want overflow:hidden on an <input> |
+ // to affect the baseline calculation. This is necessary because we are an inline-block |
+ // element as an implementation detail which would normally be affected by this. |
+ virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE { return lastLineBoxBaseline(direction); } |
+ |
private: |
virtual const char* renderName() const { return "RenderTextControl"; } |
virtual bool isTextControl() const { return true; } |