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

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: Rebased Created 6 years, 10 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 3bf5188c5e9f3c4ec41ca79650dc8e33f0beb14f..fa36083019a7ec8178bc0e4a7177df67073bb45e 100644
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp
@@ -424,16 +424,16 @@ int RenderTextControlSingleLine::scrollTop() const
return RenderBlock::scrollTop();
}
-void RenderTextControlSingleLine::setScrollLeft(int newLeft)
+void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollBehavior scrollBehavior)
{
if (innerTextElement())
- innerTextElement()->setScrollLeft(newLeft);
+ innerTextElement()->setScrollLeft(newLeft, scrollBehavior);
}
-void RenderTextControlSingleLine::setScrollTop(int newTop)
+void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollBehavior scrollBehavior)
{
if (innerTextElement())
- innerTextElement()->setScrollTop(newTop);
+ innerTextElement()->setScrollTop(newTop, scrollBehavior);
}
HTMLInputElement* RenderTextControlSingleLine::inputElement() const

Powered by Google App Engine
This is Rietveld 408576698