Changeset 18253 in webkit


Ignore:
Timestamp:
Dec 16, 2006 2:47:35 AM (17 years ago)
Author:
ap
Message:

2006-12-16 Hunter L. Williams <hlwebkit@gmail.com>

Reviewed by Adele.

Fix mouse wheel scrolling in <textarea> controls.

  • rendering/RenderTextControl.cpp:
  • rendering/RenderTextControl.h: Override |scroll| on RenderTextControl to forward the call to the RenderObject of the inner m_innerText, which has a layer that can be scrolled.
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r18252 r18253  
     12006-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
    1122006-12-16  Adele Peterson  <adele@apple.com>
    213
  • trunk/WebCore/rendering/RenderTextControl.cpp

    r18248 r18253  
    952952}
    953953
    954 }
     954bool 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  
    7575    virtual void setScrollLeft(int);
    7676    virtual void setScrollTop(int);
     77    virtual bool scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier = 1.0);
    7778
    7879    VisiblePosition visiblePositionForIndex(int index);
Note: See TracChangeset for help on using the changeset viewer.