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

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

Issue 134443003: Implement CSSOM Smooth Scroll API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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.cpp
diff --git a/Source/core/rendering/RenderTextControlSingleLine.cpp b/Source/core/rendering/RenderTextControlSingleLine.cpp
index daa68ce334ab9afce8a667b1fbff93d7248526ca..c04cdaefc16358ba4a28d9553dfb4f692a541044 100644
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp
@@ -400,16 +400,16 @@ LayoutUnit RenderTextControlSingleLine::scrollTop() const
return RenderBlockFlow::scrollTop();
}
-void RenderTextControlSingleLine::setScrollLeft(LayoutUnit newLeft)
+void RenderTextControlSingleLine::setScrollLeft(LayoutUnit newLeft, ScrollBehavior scrollBehavior)
{
if (innerEditorElement())
- innerEditorElement()->setScrollLeft(newLeft);
+ innerEditorElement()->setScrollLeft(newLeft, scrollBehavior);
}
-void RenderTextControlSingleLine::setScrollTop(LayoutUnit newTop)
+void RenderTextControlSingleLine::setScrollTop(LayoutUnit newTop, ScrollBehavior scrollBehavior)
{
if (innerEditorElement())
- innerEditorElement()->setScrollTop(newTop);
+ innerEditorElement()->setScrollTop(newTop, scrollBehavior);
}
HTMLInputElement* RenderTextControlSingleLine::inputElement() const
« no previous file with comments | « Source/core/rendering/RenderTextControlSingleLine.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698