Changeset 39042 in webkit


Ignore:
Timestamp:
Dec 5, 2008 2:10:27 PM (15 years ago)
Author:
eric@webkit.org
Message:

2008-12-05 Finnur Thorarinsson <finnur.webkit@gmail.com>

Reviewed by Darin Adler.

Bug 22579: Providing a function to ScrollbarClient.h which allows us to get at the tickmarks
without relying on high-level WebCore types, as requested by Dave Hyatt.

No functional changes, thus no test cases.

  • page/FrameView.cpp: (WebCore::FrameView::getTickmarks):
  • page/FrameView.h:
  • platform/ScrollbarClient.h:
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r39037 r39042  
     12008-12-05  Finnur Thorarinsson  <finnur.webkit@gmail.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Bug 22579: Providing a function to ScrollbarClient.h which allows us to get at the tickmarks
     6        without relying on high-level WebCore types, as requested by Dave Hyatt.
     7       
     8        No functional changes, thus no test cases.
     9
     10        * page/FrameView.cpp:
     11        (WebCore::FrameView::getTickmarks):
     12        * page/FrameView.h:
     13        * platform/ScrollbarClient.h:
     14
    1152008-12-05  Dean Jackson  <dino@apple.com>
    216
  • trunk/WebCore/page/FrameView.cpp

    r38553 r39042  
    10791079}
    10801080
     1081void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const
     1082{
     1083    tickmarks = frame()->document()->renderedRectsForMarkers(DocumentMarker::TextMatch);
     1084}
     1085
    10811086IntRect FrameView::windowResizerRect() const
    10821087{
  • trunk/WebCore/page/FrameView.h

    r38553 r39042  
    116116    virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&);
    117117    virtual void valueChanged(Scrollbar*);
    118    
     118    virtual void getTickmarks(Vector<IntRect>&) const;
     119
    119120    virtual IntRect windowResizerRect() const;
    120121
  • trunk/WebCore/platform/ScrollbarClient.h

    r37562 r39042  
    2828
    2929#include "IntRect.h"
     30#include <wtf/Vector.h>
    3031
    3132namespace WebCore {
     
    4344   
    4445    virtual bool scrollbarCornerPresent() const = 0;
     46
     47    virtual void getTickmarks(Vector<IntRect>&) const { }
    4548};
    4649
Note: See TracChangeset for help on using the changeset viewer.