Changeset 91727 in webkit


Ignore:
Timestamp:
Jul 25, 2011 5:12:29 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

WebFrame should have a method to determine its visual emptiness
https://bugs.webkit.org/show_bug.cgi?id=64223

Patch by Ian Henderson <ianh@apple.com> on 2011-07-25
Reviewed by Dan Bernstein.

Source/WebCore:

  • page/FrameView.h:

(WebCore::FrameView::isVisuallyNonEmpty): Add an accessor to FrameView
so we can tell whether it's visually non-empty.

Source/WebKit/mac:

  • WebView/WebFrame.mm:

(-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
through WebKit.

  • WebView/WebFramePrivate.h:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91725 r91727  
     12011-07-25  Ian Henderson  <ianh@apple.com>
     2
     3        WebFrame should have a method to determine its visual emptiness
     4        https://bugs.webkit.org/show_bug.cgi?id=64223
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * page/FrameView.h:
     9        (WebCore::FrameView::isVisuallyNonEmpty): Add an accessor to FrameView
     10        so we can tell whether it's visually non-empty.
     11
    1122011-07-25  Scott Graham  <scottmg@chromium.org>
    213
  • trunk/Source/WebCore/page/FrameView.h

    r91542 r91727  
    233233    void incrementVisuallyNonEmptyPixelCount(const IntSize&);
    234234    void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
     235    bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
    235236
    236237    void forceLayout(bool allowSubtree = false);
  • trunk/Source/WebKit/mac/ChangeLog

    r91331 r91727  
     12011-07-25  Ian Henderson  <ianh@apple.com>
     2
     3        WebFrame should have a method to determine its visual emptiness
     4        https://bugs.webkit.org/show_bug.cgi?id=64223
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * WebView/WebFrame.mm:
     9        (-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
     10        through WebKit.
     11        * WebView/WebFramePrivate.h:
     12
    1132011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
    214
  • trunk/Source/WebKit/mac/WebView/WebFrame.mm

    r89440 r91727  
    914914}
    915915
     916- (BOOL)_isVisuallyNonEmpty
     917{
     918    if (FrameView* view = _private->coreFrame->view())
     919        return view->isVisuallyNonEmpty();
     920    return NO;
     921}
     922
    916923- (WebFrameLoadType)_loadType
    917924{
  • trunk/Source/WebKit/mac/WebView/WebFramePrivate.h

    r85256 r91727  
    7575- (BOOL)_isFrameSet;
    7676- (BOOL)_firstLayoutDone;
     77- (BOOL)_isVisuallyNonEmpty;
    7778- (WebFrameLoadType)_loadType;
    7879
Note: See TracChangeset for help on using the changeset viewer.