Ignore:
Timestamp:
Sep 25, 2013, 8:40:58 AM (12 years ago)
Author:
[email protected]
Message:

Move wheel event dispatch from Node to Element.
<https://webkit.org/b/121908>

Reviewed by Anders Carlsson.

Wheel events are only ever dispatched on Elements, so move the logic out of Node.

Had to make RenderBox::scroll() and friends return a stopElement instead of a
stopNode (out argument) to make this work, though it was only ever returning
Elements there anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp

    r156314 r156397  
    448448}
    449449
    450 bool RenderTextControlSingleLine::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier, Node** stopNode)
     450bool RenderTextControlSingleLine::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier, Element** stopElement)
    451451{
    452452    RenderBox* renderer = innerTextElement()->renderBox();
     
    456456    if (layer && layer->scroll(direction, granularity, multiplier))
    457457        return true;
    458     return RenderBlock::scroll(direction, granularity, multiplier, stopNode);
    459 }
    460 
    461 bool RenderTextControlSingleLine::logicalScroll(ScrollLogicalDirection direction, ScrollGranularity granularity, float multiplier, Node** stopNode)
     458    return RenderBlock::scroll(direction, granularity, multiplier, stopElement);
     459}
     460
     461bool RenderTextControlSingleLine::logicalScroll(ScrollLogicalDirection direction, ScrollGranularity granularity, float multiplier, Element** stopElement)
    462462{
    463463    RenderLayer* layer = innerTextElement()->renderBox()->layer();
    464464    if (layer && layer->scroll(logicalToPhysical(direction, style()->isHorizontalWritingMode(), style()->isFlippedBlocksWritingMode()), granularity, multiplier))
    465465        return true;
    466     return RenderBlock::logicalScroll(direction, granularity, multiplier, stopNode);
     466    return RenderBlock::logicalScroll(direction, granularity, multiplier, stopElement);
    467467}
    468468
Note: See TracChangeset for help on using the changeset viewer.