Changeset 18253 in webkit
- Timestamp:
- Dec 16, 2006 2:47:35 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r18252 r18253 1 2006-12-16 Hunter L. Williams <hlwebkit@gmail.com> 2 3 Reviewed by Adele. 4 5 Fix mouse wheel scrolling in <textarea> controls. 6 7 * rendering/RenderTextControl.cpp: 8 * rendering/RenderTextControl.h: 9 Override |scroll| on RenderTextControl to forward the call to the RenderObject of the 10 inner m_innerText, which has a layer that can be scrolled. 11 1 12 2006-12-16 Adele Peterson <adele@apple.com> 2 13 -
trunk/WebCore/rendering/RenderTextControl.cpp
r18248 r18253 952 952 } 953 953 954 } 954 bool RenderTextControl::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier) 955 { 956 RenderLayer *l = m_innerText->renderer()->layer(); 957 if (l && l->scroll(direction, granularity, multiplier)) 958 return true; 959 return RenderObject::scroll(direction, granularity, multiplier); 960 } 961 962 } -
trunk/WebCore/rendering/RenderTextControl.h
r18248 r18253 75 75 virtual void setScrollLeft(int); 76 76 virtual void setScrollTop(int); 77 virtual bool scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier = 1.0); 77 78 78 79 VisiblePosition visiblePositionForIndex(int index);
Note: See TracChangeset
for help on using the changeset viewer.