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

Side by Side Diff: Source/WebCore/rendering/RenderTextControlSingleLine.cpp

Issue 10442005: Merge 116476 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderScrollbar.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 if (layer && layer->scroll(logicalToPhysical(direction, style()->isHorizonta lWritingMode(), style()->isFlippedBlocksWritingMode()), granularity, multiplier) ) 743 if (layer && layer->scroll(logicalToPhysical(direction, style()->isHorizonta lWritingMode(), style()->isFlippedBlocksWritingMode()), granularity, multiplier) )
744 return true; 744 return true;
745 return RenderBlock::logicalScroll(direction, granularity, multiplier, stopNo de); 745 return RenderBlock::logicalScroll(direction, granularity, multiplier, stopNo de);
746 } 746 }
747 747
748 PassRefPtr<Scrollbar> RenderTextControlSingleLine::createScrollbar(ScrollableAre a* scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize contro lSize) 748 PassRefPtr<Scrollbar> RenderTextControlSingleLine::createScrollbar(ScrollableAre a* scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize contro lSize)
749 { 749 {
750 RefPtr<Scrollbar> widget; 750 RefPtr<Scrollbar> widget;
751 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR); 751 bool hasCustomScrollbarStyle = style()->hasPseudoStyle(SCROLLBAR);
752 if (hasCustomScrollbarStyle) 752 if (hasCustomScrollbarStyle)
753 widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientat ion, this); 753 widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientat ion, this->node());
754 else 754 else
755 widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, c ontrolSize); 755 widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, c ontrolSize);
756 return widget.release(); 756 return widget.release();
757 } 757 }
758 758
759 HTMLInputElement* RenderTextControlSingleLine::inputElement() const 759 HTMLInputElement* RenderTextControlSingleLine::inputElement() const
760 { 760 {
761 return node()->toInputElement(); 761 return node()->toInputElement();
762 } 762 }
763 763
764 } 764 }
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderScrollbar.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698