| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 return RenderBlock::scrollLeft(); | 417 return RenderBlock::scrollLeft(); |
| 418 } | 418 } |
| 419 | 419 |
| 420 int RenderTextControlSingleLine::scrollTop() const | 420 int RenderTextControlSingleLine::scrollTop() const |
| 421 { | 421 { |
| 422 if (innerTextElement()) | 422 if (innerTextElement()) |
| 423 return innerTextElement()->scrollTop(); | 423 return innerTextElement()->scrollTop(); |
| 424 return RenderBlock::scrollTop(); | 424 return RenderBlock::scrollTop(); |
| 425 } | 425 } |
| 426 | 426 |
| 427 void RenderTextControlSingleLine::setScrollLeft(int newLeft) | 427 void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollBehavior scro
llBehavior) |
| 428 { | 428 { |
| 429 if (innerTextElement()) | 429 if (innerTextElement()) |
| 430 innerTextElement()->setScrollLeft(newLeft); | 430 innerTextElement()->setScrollLeft(newLeft, scrollBehavior); |
| 431 } | 431 } |
| 432 | 432 |
| 433 void RenderTextControlSingleLine::setScrollTop(int newTop) | 433 void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollBehavior scroll
Behavior) |
| 434 { | 434 { |
| 435 if (innerTextElement()) | 435 if (innerTextElement()) |
| 436 innerTextElement()->setScrollTop(newTop); | 436 innerTextElement()->setScrollTop(newTop, scrollBehavior); |
| 437 } | 437 } |
| 438 | 438 |
| 439 HTMLInputElement* RenderTextControlSingleLine::inputElement() const | 439 HTMLInputElement* RenderTextControlSingleLine::inputElement() const |
| 440 { | 440 { |
| 441 return toHTMLInputElement(node()); | 441 return toHTMLInputElement(node()); |
| 442 } | 442 } |
| 443 | 443 |
| 444 } | 444 } |
| OLD | NEW |