Changeset 141352 in webkit


Ignore:
Timestamp:
Jan 30, 2013 5:39:37 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Add WebFrame::visibleContentRect()
https://bugs.webkit.org/show_bug.cgi?id=108311

Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-01-30
Reviewed by James Robinson.

  • public/WebFrame.h:
  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::visibleContentRect):
(WebKit):

  • src/WebFrameImpl.h:

(WebFrameImpl):

Location:
trunk/Source/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r141346 r141352  
     12013-01-30  Tien-Ren Chen  <trchen@chromium.org>
     2
     3        [chromium] Add WebFrame::visibleContentRect()
     4        https://bugs.webkit.org/show_bug.cgi?id=108311
     5
     6        Reviewed by James Robinson.
     7
     8        * public/WebFrame.h:
     9        * src/WebFrameImpl.cpp:
     10        (WebKit::WebFrameImpl::visibleContentRect):
     11        (WebKit):
     12        * src/WebFrameImpl.h:
     13        (WebFrameImpl):
     14
    1152013-01-30  Kentaro Hara  <haraken@chromium.org>
    216
  • trunk/Source/WebKit/chromium/public/WebFrame.h

    r140621 r141352  
    171171    virtual bool hasVisibleContent() const = 0;
    172172
     173    // Returns the visible content rect (minus scrollbars, in absolute coordinate)
     174    virtual WebRect visibleContentRect() const = 0;
     175
    173176    virtual bool hasHorizontalScrollbar() const = 0;
    174177    virtual bool hasVerticalScrollbar() const = 0;
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r141234 r141352  
    646646}
    647647
     648WebRect WebFrameImpl::visibleContentRect() const
     649{
     650    return frame()->view()->visibleContentRect();
     651}
     652
    648653bool WebFrameImpl::hasHorizontalScrollbar() const
    649654{
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.h

    r138893 r141352  
    9090    virtual int documentElementScrollHeight() const;
    9191    virtual bool hasVisibleContent() const;
     92    virtual WebRect visibleContentRect() const;
    9293    virtual bool hasHorizontalScrollbar() const;
    9394    virtual bool hasVerticalScrollbar() const;
Note: See TracChangeset for help on using the changeset viewer.